aboutsummaryrefslogtreecommitdiff
path: root/sdl/osx/Makefile
diff options
context:
space:
mode:
authorTakamichi Horikawa <takamichiho@gmail.com>2018-10-29 22:00:34 +0900
committerTakamichi Horikawa <takamichiho@gmail.com>2018-10-29 22:00:34 +0900
commitdf38031f493c0cdb35218fda566077103ee1a68e (patch)
tree1a90f2dec0e9a3a6d195bfbca7b4a54958d639bf /sdl/osx/Makefile
parent8f72d89b6c39e9f516fda8133db146b01bad4560 (diff)
fixed SDL OSX build
Diffstat (limited to 'sdl/osx/Makefile')
-rw-r--r--sdl/osx/Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/sdl/osx/Makefile b/sdl/osx/Makefile
index b04d76e..7cb67d9 100644
--- a/sdl/osx/Makefile
+++ b/sdl/osx/Makefile
@@ -5,31 +5,33 @@ vpath %.c ../../libopna
vpath %.c ../../common
vpath %.c ../../fmdriver
vpath %.c ../../fft
-XCRUN:=xcrun --sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/
+#XCRUN:=xcrun --sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/
+XCRUN:=xcrun
CC:=$(XCRUN) cc
OBJS:=main.o
OBJS+=pacc-gl.o
-OBJS+=fmdsp-pacc.o font_fmdsp_small.o fmdsp_platform_mach.o
+OBJS+=fmdsp-pacc.o font_fmdsp_small.o fmdsp_platform_mach.o font_rom.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
+OBJS+=fmplayer_file.o fmplayer_work_opna.o fmplayer_file_unix.o fmplayer_drumrom_unix.o fmplayer_fontrom_unix.o
OBJS+=fft.o
TARGET:=98fmplayersdl
CFLAGS:=-Wall -Wextra -O2 -g
+CFLAGS:=-DLIBOPNA_ENABLE_LEVELDATA
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:=-framework SDL2 -framework OpenGL -liconv
LIBS+=-F/Library/Frameworks
$(TARGET): $(OBJS)
$(CC) -o $@ $^ $(LIBS)
clean:
- rm -f $(TARGET) $(OBJS)
+ rm -rf $(TARGET).app $(TARGET) $(OBJS)
bundle: $(TARGET)
rm -rf $(TARGET).app