forked from harry159821/QJS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
80 lines (67 loc) · 1.29 KB
/
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
INCLUDES = \
-Iincludes \
-Isrc \
-Ideps/imgui
LIBS = \
deps/matoya.lib \
deps/quickjs.lib \
deps/parsec32.lib \
bcrypt.lib \
d3d11.lib \
d3d9.lib \
hid.lib \
uuid.lib \
dxguid.lib \
opengl32.lib \
ws2_32.lib \
user32.lib \
gdi32.lib \
xinput9_1_0.lib \
ole32.lib \
shell32.lib \
windowscodecs.lib \
shlwapi.lib \
imm32.lib \
winmm.lib \
Advapi32.lib \
Userenv.lib \
Winhttp.lib \
Crypt32.lib \
Secur32.lib
CFILES = \
src/main.c \
src/utils.c \
src/libmatoya.c \
src/libparsec.c \
src/libmtymap.c \
src/libimgui.c \
CPPFiles = \
deps/imgui/im.cpp
OBJS = \
main.bc \
utils.bc \
libmatoya.bc \
libparsec.bc \
libmtymap.bc \
libimgui.bc \
im.bc
INCLUDES = \
-Iincludes \
-Isrc
FLAGS = \
-Os
CFLAGS = $(INCLUDES) $(FLAGS)
all:
@del includes\defaultjs.h
@del includes\parsec_embed.h
@binary_to_compressed_c -nocompress main.js mainjs > includes/defaultjs.h
@binary_to_compressed_c -nocompress deps/parsec32.dll p32 > includes/parsec_embed.h
@clang $(CFILES) $(CPPFiles) $(CFLAGS) -c -emit-llvm
@rc /nologo resources/.rc
@del debug.exe
@lld-link $(OBJS) $(LIBS) /NOLOGO resources/.res /SUBSYSTEM:Console /OUT:debug.exe /debug
@del release.exe
@lld-link $(OBJS) $(LIBS) /NOLOGO resources/.res /SUBSYSTEM:WINDOWS /OUT:release.exe
@del $(OBJS)
run:
debug.exe