From 694da2ee4f6bf7dd8e5f592f9d9ecf0c5a7ceb24 Mon Sep 17 00:00:00 2001 From: Takamichi Horikawa Date: Fri, 8 Sep 2017 23:26:30 +0900 Subject: sdl: for testing pacc --- sdl/win/Makefile | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 sdl/win/Makefile (limited to 'sdl/win') diff --git a/sdl/win/Makefile b/sdl/win/Makefile new file mode 100644 index 0000000..587bac8 --- /dev/null +++ b/sdl/win/Makefile @@ -0,0 +1,34 @@ +vpath %.c .. +vpath %.c ../../pacc +vpath %.c ../../fmdsp +vpath %.c ../../libopna +vpath %.c ../../common +vpath %.c ../../fmdriver +SDLCONFIG:=i686-w64-mingw32-sdl2-config +CC:=i686-w64-mingw32-gcc +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_win.o fmplayer_drumrom_win.o +TARGET:=fmplayersdl.exe + +CFLAGS:=-Wall -Wextra -O2 +CFLAGS+=-DFMPLAYER_FILE_WIN_UTF8 +#CFLAGS+=-DPACC_GL_3 +#CFLAGS+=-DPACC_GL_ES +#CFLAGS+=-DPACC_GL_ES -DPACC_GL_3 +CFLAGS+=-I.. -I../.. +CFLAGS+=$(shell $(SDLCONFIG) --cflags) +LIBS:=-lshlwapi +LIBS+=-static $(shell $(SDLCONFIG) --static-libs) -lopengl32 + +$(TARGET): $(OBJS) + $(CC) -o $@ $^ $(LIBS) + +clean: + rm -f $(TARGET) $(OBJS) + +opnassg-sinc-sse2.o: opnassg-sinc-sse2.c + $(CC) -c $< $(CFLAGS) -msse2 -- cgit v1.2.3