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 fmdsp_platform_unix.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)