-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (33 loc) · 783 Bytes
/
Makefile
File metadata and controls
43 lines (33 loc) · 783 Bytes
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
INCLUDE = -I. -Itestboat -Iboaster -Iboastgl
LDFLAGS = -L./testboat/lib -L./boaster/lib -L./boastgl/lib -L./boastmath/lib
all: modules samples
samples: main glmain executor parrotdemo
modules:
$(MAKE) -C testboat
$(MAKE) -C boaster
$(MAKE) -C boastgl
$(MAKE) -C boastmath
main: ensure_out
$(CC) $(INCLUDE) $(LDFLAGS) \
samples/main.c \
-lm -lpthread -lboaster \
-o out/main
glmain: ensure_out
$(CC) $(INCLUDE) $(LDFLAGS) \
samples/glmain.c \
-lm -lboaster -lboastgl \
-lglfw3 -lGL -pthread -ldl -lrt -lXrandr -lX11 \
-o out/glmain
parrotdemo:
$(MAKE) -C parrotdemo
executor: ensure_out
$(CC) $(INCLUDE) $(LDFLAGS) \
samples/executor.c \
-lpthread -lboaster \
-o out/executor
ensure_out:
mkdir -p out
clean:
rm -rf out
cleanall:
rm -rf **/out