forked from ceu-lang/ceu-sdl
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
48 lines (39 loc) · 1.46 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
CFLAGS = -DCEU_DEBUG #-DCEU_DEBUG_TRAILS
#CFLAGS = -DSDL_MATH
all:
ceu --cpp-args "-I ." $(CEUFILE)
#gcc main.c $(CFLAGS) -lSDL2
gcc -g -Os main.c $(CFLAGS) -lpthread -lm \
-lSDL2 -lSDL2_image -lSDL2_mixer -lSDL2_ttf -lSDL2_net -lSDL2_gfx \
-o $(basename $(CEUFILE)).exe
sim:
ceu --timemachine --cpp-args "-I . -DCEUFILE=$(CEUFILE)" sim.ceu
#gcc main.c $(CFLAGS) -lSDL2
gcc -g -Os -DCEU_TIMEMACHINE $(CFLAGS) main.c -lpthread -lm \
-lSDL2 -lSDL2_image -lSDL2_mixer -lSDL2_ttf -lSDL2_net -lSDL2_gfx \
-o $(basename $(CEUFILE)).exe
sim-tst:
ceu ---timemachine -cpp-args "-I . -DCEU_TIMEMACHINE" sim-tst.ceu
#gcc main.c $(CFLAGS) -lSDL2
gcc -g -Os -DCEU_TIMEMACHINE $(CFLAGS) main.c -lpthread -lm \
-lSDL2 -lSDL2_image -lSDL2_mixer -lSDL2_ttf -lSDL2_net -lSDL2_gfx \
-o sim-tst.exe
demo:
ceu --cpp-args "-I . -DALL" samples/all.ceu
#gcc main.c $(CFLAGS) -lSDL2
gcc -g -Os main.c -DALL $(CFLAGS) -lpthread -lm \
-lSDL2 -lSDL2_image -lSDL2_mixer -lSDL2_ttf -lSDL2_net -lSDL2_gfx \
-o samples/all.exe
ui-scroll:
ceu --cpp-args "-D __UI_SCROLL_CEU" ui-scroll.ceu
gcc -g main.c $(CFLAGS) -lSDL2 -lSDL2_gfx -lSDL2_image -lSDL2_ttf -lm
ui-grid:
ceu --cpp-args "-D __UI_GRID_CEU" ui-grid.ceu
gcc -g main.c $(CFLAGS) -lSDL2 -lSDL2_gfx -lm
ui-texture:
ceu --cpp-args "-D __UI_TEXTURE_CEU" ui-texture.ceu
gcc main.c $(CFLAGS) -lSDL2 -lSDL2_image -lSDL2_gfx -lSDL2_ttf -lm
clean:
find . -name "*.exe" | xargs rm -f
find . -name "_ceu_*" | xargs rm -f
.PHONY: all clean