-
Notifications
You must be signed in to change notification settings - Fork 55
/
Copy pathGNUmakefile
56 lines (43 loc) · 806 Bytes
/
GNUmakefile
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
UNAME_S = $(shell uname -s)
ARCH = $(shell uname -m)
BIN = \
mty
CFLAGS = \
-I../src \
-O3 \
-Wall \
-Wextra \
-Wno-unused-parameter
ifeq ($(UNAME_S), Darwin)
LIBS = \
../bin/macosx/$(ARCH)/libmatoya.a \
-framework AppKit \
-framework Carbon \
-framework IOKit \
-framework Metal \
-framework QuartzCore \
-framework WebKit
else
CFLAGS := $(CFLAGS) -Wno-format-overflow
LIBS = \
../bin/linux/$(ARCH)/libmatoya.a \
-lc \
-lm
endif
test: clean clear
$(CC) $(CFLAGS) -o $(BIN) src/[email protected] $(LIBS)
@./mty
0-minimal: clean clear
$(CC) $(CFLAGS) -o $(BIN) src/[email protected] $(LIBS)
@./mty
1-draw: clean clear
$(CC) $(CFLAGS) -o $(BIN) src/[email protected] $(LIBS)
@./mty
2-threaded: clean clear
$(CC) $(CFLAGS) -o $(BIN) src/[email protected] $(LIBS)
@./mty
clean:
@rm -f $(BIN)
@rm -rf test_dir
clear:
clear