forked from EimaMei/Silicon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
64 lines (55 loc) · 1.58 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
LIBS = -framework Cocoa
ARGS = -g -o0 -Wall
example:
make opengl
make mac-load
make hello-world
make save-file
make button
make checkbox
make combobox
make menu
make trackbar
make basic
make iphone
debug:
gcc $(ARGS) examples/general/basic.c -I./ -framework Cocoa -o basic
./basic
button:
gcc $(ARGS) examples/controls/button.c -I./ -framework Cocoa -o button
checkbox:
gcc $(ARGS) examples/controls/checkbox.c -I./ -framework Cocoa -o checkbox
combobox:
gcc $(ARGS) examples/controls/combobox.c -I./ -framework Cocoa -o combobox
menu:
gcc $(ARGS) examples/controls/menu.c -I./ -framework Cocoa -o menu
trackbar:
gcc $(ARGS) examples/controls/trackbar.c -I./ -framework Cocoa -o trackbar
save-file:
gcc $(ARGS) examples/dialogs/save-file.c -I./ -framework Cocoa -o save-file
basic:
gcc $(ARGS) examples/general/basic.c -I./ -framework Cocoa -o basic
mac-load:
gcc $(ARGS) examples/general/mac-load.c -I./ -framework Cocoa -o mac-load
hello-world:
gcc $(ARGS) examples/general/hello-world.c -I./ -framework Cocoa -o hello-world
events:
gcc $(ARGS) examples/general/events.c -I./ -framework Cocoa -o events
opengl:
gcc $(ARGS) examples/graphics/opengl.c -I./ -framework Cocoa -framework OpenGL -framework CoreVideo -o opengl
iphone:
gcc $(ARGS) examples/iphone/print.c -I./ -framework Cocoa -o iphone_print
runExamples:
./opengl
./mac-load
./hello-world
./save-file
./button
./checkbox
./combobox
./menu
./trackbar
./basic
./iphone_print
clean:
rm -r -f main.m opengl mac-load basic events menu trackbar checkbox combobox button save-file hello-world iphone_print *.dSYM