forked from nir9/lightwm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
24 lines (18 loc) · 943 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
EXE_SRCS = wm.c tiling.c error.c keyboard.c shared_mem.c
DLL_SRCS = wm_dll.c error.c shared_mem.c
all: debug release
debug: prep wm.c
cl /DDEBUG /Zi /W3 $(EXE_SRCS) /link kernel32.lib user32.lib /out:debug/lightwm.exe /subsystem:windows /entry:wWinMain
cl /DDEBUG /Zi /W3 $(DLL_SRCS) /LD /link kernel32.lib user32.lib /out:debug/lightwm_dll.dll /subsystem:windows /entry:DllMain
release: prep wm.c
cl /Ox $(EXE_SRCS) /link kernel32.lib user32.lib /out:release/lightwm.exe /subsystem:windows /entry:wWinMain
cl /Ox $(DLL_SRCS) /LD /link kernel32.lib user32.lib /out:release/lightwm_dll.dll /subsystem:windows /entry:DllMain
prep:
cmd /c IF NOT EXIST debug mkdir debug
cmd /c IF NOT EXIST release mkdir release
clean:
del *.obj *.exe *.dll *.lib *.exp *.ilk *.pdb *.res
cmd /c IF EXIST debug del /S /Q debug
cmd /c IF EXIST release del /S /Q release
cmd /c IF EXIST debug rd /S /Q debug
cmd /c IF EXIST release rd /S /Q release