diff options
author | erdgeist <erdgeist@erdgeist.org> | 2023-05-31 15:39:59 +0200 |
---|---|---|
committer | erdgeist <erdgeist@erdgeist.org> | 2023-05-31 15:39:59 +0200 |
commit | 32773a08eb11d286682ca8cad41171ce804f1631 (patch) | |
tree | aee35b1dadbf06d4c09e2004f96d3a4e11716f87 /Makefile | |
parent | 825d3442c320c5567317109947c8d1267704645b (diff) |
Works
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
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 @@ | |||
1 | all: main | ||
2 | |||
3 | SDL_LIBRARIES=/usr/local/lib/libSDL2.a /usr/local/lib/libSDL2main.a /usr/local/lib/libSDL2_gfx.a | ||
4 | SDL_DEPEND_FRAMEWORKS=-framework Carbon -framework Cocoa -framework CoreAudio -framework AudioToolbox -framework CoreVideo -framework ForceFeedback -framework IOKit -framework CoreHaptics -framework GameController -framework Metal | ||
5 | SDL_DEPEND_LIBRARIES=/usr/local/lib/libpng.a /usr/local/lib/libfreetype.a -lbz2 -liconv -lz | ||
6 | |||
7 | main: 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 | ||
11 | clean: | ||
12 | rm -f CCCBDisplay | ||