summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2023-05-31 15:39:59 +0200
committererdgeist <erdgeist@erdgeist.org>2023-05-31 15:39:59 +0200
commit32773a08eb11d286682ca8cad41171ce804f1631 (patch)
treeaee35b1dadbf06d4c09e2004f96d3a4e11716f87 /Makefile
parent825d3442c320c5567317109947c8d1267704645b (diff)
Works
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..6ec9f52
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,12 @@
1all: main
2
3SDL_LIBRARIES=/usr/local/lib/libSDL2.a /usr/local/lib/libSDL2main.a /usr/local/lib/libSDL2_gfx.a
4SDL_DEPEND_FRAMEWORKS=-framework Carbon -framework Cocoa -framework CoreAudio -framework AudioToolbox -framework CoreVideo -framework ForceFeedback -framework IOKit -framework CoreHaptics -framework GameController -framework Metal
5SDL_DEPEND_LIBRARIES=/usr/local/lib/libpng.a /usr/local/lib/libfreetype.a -lbz2 -liconv -lz
6
7main: main.c
8 cc -g -O3 -o CCCBDisplay main.c -I /usr/local/include -lm $(SDL_LIBRARIES) $(SDL_DEPEND_FRAMEWORKS) $(SDL_DEPEND_LIBRARIES)
9
10.PHONY: clean
11clean:
12 rm -f CCCBDisplay