-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
executable file
·57 lines (48 loc) · 1.72 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
CFLAGS = -std=gnu99 -O2 -rdynamic -Iinclude -Ithirdparty/jsmn -Werror -Wextra -pedantic -lm
LDFLAGS = -Lthirdparty/jsmn -Lthirdparty/sigie -lm -ljsmn -lsigie -lpthread -ldl
FILES = main.c \
kernel/interface/json_input.c \
kernel/net/url.c \
kernel/plugin/plugin.c \
kernel/cache/simple.c \
kernel/integration/runge_kutta.c \
kernel/integration/cmplx_runge_kutta.c \
kernel/core/catastrophe_common.c \
kernel/core/catastrophe_parallel.c \
catastrophe/catastrophe_Asub3.c \
catastrophe/catastrophe_Asub1sup4.c \
catastrophe/catastrophe_Ksub4_2.c \
catastrophe/cmplx_catastrophe_Asub3.c \
catastrophe/cmplx_catastrophe_Csub3.c \
catastrophe/cmplx_catastrophe_Esub6.c \
catastrophe/cmplx_catastrophe_Psub8.c \
catastrophe/cmplx_catastrophe_Fsub1_0.c \
catastrophe/cmplx_catastrophe_Csub4.c \
catastrophe/cmplx_catastrophe_Fsub4.c \
catastrophe/cmplx_catastrophe_Asub1sup4.c \
catastrophe/cmplx_catastrophe_Bsub3.c \
catastrophe/cmplx_catastrophe_Dsub4.c \
catastrophe/cmplx_catastrophe_Asub1Asub2Asub1Asub1.c
all: tplibs
gcc $(CFLAGS) $(FILES) -o wavecat.exe $(LDFLAGS)
tplibs:
make -C thirdparty/jsmn
make -C thirdparty/sigie
thirdpartyclean:
make clean -C thirdparty/jsmn
make clean -C thirdparty/sigie
server:
make -C thirdparty/mongoose/examples/web_server
serverclean:
make clean -C thirdparty/mongoose/examples/web_server
test: all server
cp wavecat.exe web/
thirdparty/mongoose/examples/web_server/web_server -document_root ../../../../web -cgi_pattern **.exe$$ &
stoptest:
killall web_server
rm -rf web/wavecat.exe
clean: thirdpartyclean serverclean
rm -rf wavecat.exe
find . -name '*.o' -print0 | xargs -0 rm -f
find . -name '*~' -print0 | xargs -0 rm -f
.PHONY = clean