aboutsummaryrefslogtreecommitdiff
path: root/sdl/unix/Makefile
diff options
context:
space:
mode:
authorTakamichi Horikawa <takamichiho@gmail.com>2017-09-08 23:26:30 +0900
committerTakamichi Horikawa <takamichiho@gmail.com>2017-09-08 23:26:30 +0900
commit694da2ee4f6bf7dd8e5f592f9d9ecf0c5a7ceb24 (patch)
tree6dca19b69324008e67b4614efcee6fd568747689 /sdl/unix/Makefile
parent50c75c12597b230cec4d7a29559cde263025eeb2 (diff)
sdl: for testing pacc
Diffstat (limited to 'sdl/unix/Makefile')
-rw-r--r--sdl/unix/Makefile30
1 files changed, 30 insertions, 0 deletions
diff --git a/sdl/unix/Makefile b/sdl/unix/Makefile
new file mode 100644
index 0000000..686943f
--- /dev/null
+++ b/sdl/unix/Makefile
@@ -0,0 +1,30 @@
+vpath %.c ..
+vpath %.c ../../pacc
+vpath %.c ../../fmdsp
+vpath %.c ../../libopna
+vpath %.c ../../common
+vpath %.c ../../fmdriver
+SDLCONFIG:=sdl2-config
+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../..
+CFLAGS+=$(shell $(SDLCONFIG) --cflags)
+LIBS:=-lGL
+LIBS+=$(shell $(SDLCONFIG) --libs)
+
+$(TARGET): $(OBJS)
+ $(CC) -o $@ $^ $(LIBS)
+
+clean:
+ rm -f $(TARGET) $(OBJS)
+