forked from MalfoyJW/parsec-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
55 lines (47 loc) · 736 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
!IF [if /I "%Platform%" EQU "x64" exit 1]
BITS = 64
!ELSE
BITS = 32
!ENDIF
BIN_NAME = client.exe
OBJS = main.obj
CFLAGS = \
/nologo \
/W4 \
/O2 \
/MT \
/MP \
-I../../sdk \
-Iinclude \
-DBITS=$(BITS) \
-DWIN32_LEAN_AND_MEAN \
-DUNICODE
SHARED_LIBS = \
libvcruntime.lib \
libucrt.lib \
libcmt.lib \
kernel32.lib \
gdi32.lib \
winmm.lib \
imm32.lib \
shell32.lib \
advapi32.lib \
ole32.lib \
oleaut32.lib \
opengl32.lib \
user32.lib \
uuid.lib \
version.lib \
setupapi.lib
STATIC_LIBS = \
lib/windows/SDL2-$(BITS).lib
LD_FLAGS = \
/nodefaultlib \
/nologo
all: clean clear $(OBJS)
link $(LD_FLAGS) /out:$(BIN_NAME) *.obj $(STATIC_LIBS) $(SHARED_LIBS)
clean:
-@del $(BIN_NAME)
-@del *.obj
clear:
cls