summaryrefslogtreecommitdiff
path: root/python/which/Makefile.win
blob: c400aafd4b855416ca42151aa52c5f50ee18d0e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Copyright (c) 2002-2003 ActiveState Corp.
# Author: Trent Mick (TrentM@ActiveState.com)
#
# A Makefile to do this: launcher.cpp -> foo.exe

APPNAME=which

# for release:
CFLAGS=-D_CONSOLE -D_MBCS -DWIN32 -W3 -Ox -DNDEBUG -D_NDEBUG -MD 
LDFLAGS=/subsystem:console kernel32.lib user32.lib gdi32.lib advapi32.lib shlwapi.lib
# for debug:
#  CFLAGS = -D_CONSOLE -D_MBCS /DWIN32 /Zi /Od /DDEBUG /D_DEBUG /MDd
#  LDFLAGS += /DEBUG

$(APPNAME).exe: launcher.cpp
	cl -nologo $(CFLAGS) -c launcher.cpp
	link -nologo $(LDFLAGS) launcher.obj -out:$(APPNAME).exe

clean:
	if exist launcher.obj; del launcher.obj
    if exist $(APPNAME).exe; del $(APPNAME).exe