From 0c920c9dc7b7c5ee050747a13d4a06e136397bcb Mon Sep 17 00:00:00 2001 From: erdgeist Date: Wed, 4 Apr 2018 02:30:05 +0200 Subject: statify --- Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 185eceb..861ddb7 100644 --- a/Makefile +++ b/Makefile @@ -6,9 +6,14 @@ GenBkBasB.c: GenBkBasB.ttf SourceCodePro-Semibold.c: SourceCodePro-Semibold.ttf xxd -i $< $@ +SDL_LIBRARIES=/usr/local/lib/libSDL2.a /usr/local/lib/libSDL2main.a /usr/local/lib/libSDL2_gfx.a /usr/local/lib/libSDL2_ttf.a +SDL_DEPEND_FRAMEWORKS=-framework Carbon -framework Cocoa -framework CoreAudio -framework AudioToolbox -framework CoreVideo -framework ForceFeedback -framework IOKit +SDL_DEPEND_LIBRARIES=/usr/local/lib/libpng.a /usr/local/lib/libfreetype.a -lbz2 -liconv -lz + main: main-sdl.c calib.c calib.h config.c config.h display.c display.h engine.c engine.h geometry.c geometry.h menu.c menu.h midi-noop.c midi.h SourceCodePro-Semibold.c - cc -g -o Laserharfe main-sdl.c calib.c config.c display.c engine.c geometry.c menu.c midi-noop.c SourceCodePro-Semibold.c -I /usr/local/include -lm -L/usr/local/lib -lSDL2 -framework Cocoa -lSDL2main -lSDL2_ttf -lSDL2_gfx + cc -O2 -o Laserharfe main-sdl.c calib.c config.c display.c engine.c geometry.c menu.c midi-noop.c SourceCodePro-Semibold.c -I /usr/local/include -lm $(SDL_LIBRARIES) $(SDL_DEPEND_FRAMEWORKS) $(SDL_DEPEND_LIBRARIES) +# cc -g -o Laserharfe main-sdl.c calib.c config.c display.c engine.c geometry.c menu.c midi-noop.c SourceCodePro-Semibold.c -I /usr/local/include -lm -L/usr/local/lib -lSDL2 -framework Cocoa -lSDL2main -lSDL2_ttf -lSDL2_gfx -static .PHONY: clean clean: - rm -f Laserharfe GenBkBasB.c + rm -f Laserharfe GenBkBasB.c SourceCodePro-Semibold.c -- cgit v1.2.3