-
Notifications
You must be signed in to change notification settings - Fork 0
/
msvc8.mak
33 lines (23 loc) · 897 Bytes
/
msvc8.mak
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.762 for 80x86
# aka Visual Studio 2005
OBJS=eolfix.obj fnmatch.obj getopt.obj
EXE=eolfix.exe
LINK32=link.exe
CFLAGS=/nologo /W3 /EHsc /FD /c /D "WIN32" /D "_CONSOLE" /D "_MBCS" /wd4996 /wd4710 /wd4711
LINK32_FLAGS=/nologo /subsystem:console /machine:I386 # setargv.obj
!if defined(debug) || defined(DEBUG)
CFLAGS=$(CFLAGS) /Od /D "_DEBUG" /Gm /ZI /RTC1
LINK32_FLAGS=$(LINK32_FLAGS) /incremental:yes /debug
!else
CFLAGS=$(CFLAGS) /O2 /D "NDEBUG"
LINK32_FLAGS=$(LINK32_FLAGS) /incremental:no
!endif
.PHONY: all clean
all: $(EXE)
$(EXE): $(OBJS)
$(LINK32) /out:$@ $** $(LINK32_FLAGS)
eolfix.obj: eolfix.c compiler.h version.h
fnmatch.obj: fnmatch.c fnmatch.h
getopt.obj: getopt.c getopt.h
clean:
-del $(EXE) $(OBJS) *.idb *.ilk *.ncb *.opt *.pch *.pdb *.plg >nul 2>nul