diff options
author | Takamichi Horikawa <takamichiho@gmail.com> | 2017-09-10 00:03:09 +0900 |
---|---|---|
committer | Takamichi Horikawa <takamichiho@gmail.com> | 2017-09-10 00:03:09 +0900 |
commit | ba8dfb7d04853beab94cb8be3652c6095938e978 (patch) | |
tree | a1def13a8ba091f425b65ad8d814ece4b7ba21fb /sdl/osx/Makefile | |
parent | b814490d33cac8a91fd2b2f72e743fd4ddc9632e (diff) |
sdl: add osx
Diffstat (limited to 'sdl/osx/Makefile')
-rw-r--r-- | sdl/osx/Makefile | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/sdl/osx/Makefile b/sdl/osx/Makefile new file mode 100644 index 0000000..e52fb78 --- /dev/null +++ b/sdl/osx/Makefile @@ -0,0 +1,38 @@ +vpath %.c .. +vpath %.c ../../pacc +vpath %.c ../../fmdsp +vpath %.c ../../libopna +vpath %.c ../../common +vpath %.c ../../fmdriver +XCRUN:=xcrun --sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/ +CC:=$(XCRUN) cc +OBJS:=main.o +OBJS+=pacc-gl.o +OBJS+=fmdsp-pacc.o font_fmdsp_small.o +OBJS+=opna.o opnafm.o opnassg.o opnadrum.o opnaadpcm.o opnatimer.o opnassg-sinc-c.o opnassg-sinc-sse2.o +OBJS+=fmdriver_pmd.o fmdriver_fmp.o ppz8.o fmdriver_common.o +OBJS+=fmplayer_file.o fmplayer_work_opna.o fmplayer_file_unix.o fmplayer_drumrom_unix.o +TARGET:=fmplayersdl +CFLAGS:=-Wall -Wextra -O2 -g +CFLAGS+=-DPACC_GL_3 +#CFLAGS+=-DPACC_GL_ES +#CFLAGS+=-DPACC_GL_ES -DPACC_GL_3 +CFLAGS+=-I. -I.. -I../.. +SDLFW:=/Library/Frameworks/SDL2.framework +CFLAGS+=-I$(SDLFW)/Headers +LIBS:=-framework SDL2 -framework OpenGL +LIBS+=-F/Library/Frameworks + +$(TARGET): $(OBJS) + $(CC) -o $@ $^ $(LIBS) + +clean: + rm -f $(TARGET) $(OBJS) + +bundle: $(TARGET) + rm -rf $(TARGET).app + mkdir -p $(TARGET).app/Contents/MacOS + cp Info.plist $(TARGET).app/Contents + cp $(TARGET) $(TARGET).app/Contents/MacOS + mkdir $(TARGET).app/Contents/Frameworks + cp -r $(SDLFW) $(TARGET).app/Contents/Frameworks |