diff options
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 | ||
