-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.nmake
35 lines (24 loc) · 1.03 KB
/
Makefile.nmake
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
34
35
TARGET = dye
INCLUDE_DIR = .\include
SOURCE_DIR = .\src
BUILD_DIR = .\build
SOURCES = $(SOURCE_DIR)\dye.c
CC = cl.exe
CCFLAGS = /nologo /c /I"$(INCLUDE_DIR)" /D"WIN32" /D"UNICODE" /D"_UNICODE" /analyze- /fp:precise /W4 /WX- /Zc:wchar_t /Zc:inline /Zc:forScope /GS /Gm- /Oy- /TP /UTF-8 /EHsc
LM = lib.exe
LMFLAGS = /nologo
MD = -mkdir
MDFLAGS =
RD = -rmdir
RDFLAGS = /Q /S
all: release debug
release:
$(MD) $(MDFLAGS) "$(BUILD_DIR)\$@" 1>nul 2>nul
$(CC) $(CCFLAGS) /D"NDEBUG" /Zi /Gy /Gd /MD /O2 /Oi /Fo"$(BUILD_DIR)\$@\\" /Fd"$(BUILD_DIR)\$@\$(TARGET).pdb" $(UCCFLAGS) $(SOURCES)
$(LM) $(LMFLAGS) /out:"$(BUILD_DIR)\$@\$(TARGET).lib" $(ULMFLAGS) "$(BUILD_DIR)\$@\dye.obj"
debug:
$(MD) $(MDFLAGS) "$(BUILD_DIR)\$@" 1>nul 2>nul
$(CC) $(CCFLAGS) /D"DEBUG" /D"_DEBUG" /ZI /JMC /Gd /MDd /Od /TP /Fo"$(BUILD_DIR)\$@\\" /Fd"$(BUILD_DIR)\$@\$(TARGET).pdb" $(UCCFLAGS) $(SOURCES)
$(LM) $(LMFLAGS) /out:"$(BUILD_DIR)\$@\$(TARGET).lib" $(ULMFLAGS) "$(BUILD_DIR)\$@\dye.obj"
clean:
$(RD) $(RDFLAGS) $(BUILD_DIR) 1>nul 2>nul