michael@0: # Copyright (c) 2002-2003 ActiveState Corp. michael@0: # Author: Trent Mick (TrentM@ActiveState.com) michael@0: # michael@0: # A Makefile to do this: launcher.cpp -> foo.exe michael@0: michael@0: APPNAME=which michael@0: michael@0: # for release: michael@0: CFLAGS=-D_CONSOLE -D_MBCS -DWIN32 -W3 -Ox -DNDEBUG -D_NDEBUG -MD michael@0: LDFLAGS=/subsystem:console kernel32.lib user32.lib gdi32.lib advapi32.lib shlwapi.lib michael@0: # for debug: michael@0: # CFLAGS = -D_CONSOLE -D_MBCS /DWIN32 /Zi /Od /DDEBUG /D_DEBUG /MDd michael@0: # LDFLAGS += /DEBUG michael@0: michael@0: $(APPNAME).exe: launcher.cpp michael@0: cl -nologo $(CFLAGS) -c launcher.cpp michael@0: link -nologo $(LDFLAGS) launcher.obj -out:$(APPNAME).exe michael@0: michael@0: clean: michael@0: if exist launcher.obj; del launcher.obj michael@0: if exist $(APPNAME).exe; del $(APPNAME).exe