-
Notifications
You must be signed in to change notification settings - Fork 0
/
msvc7.mak
33 lines (23 loc) · 892 Bytes
/
msvc7.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 13.10.3077 for 80x86
# aka Visual Studio .NET (2002 & 2003)
OBJS=eolfix.obj fnmatch.obj getopt.obj
EXE=eolfix.exe
LINK32=link.exe
CFLAGS=/nologo /W4 /GX /YX /FD /c /D "WIN32" /D "_CONSOLE" /D "_MBCS"
LINK32_FLAGS=/nologo /subsystem:console /machine:I386 # setargv.obj
!if defined(debug) || defined(DEBUG)
CFLAGS=$(CFLAGS) /MLd /Od /D "_DEBUG" /Gm /ZI /GZ
LINK32_FLAGS=$(LINK32_FLAGS) /incremental:yes /debug
!else
CFLAGS=$(CFLAGS) /ML /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