forked from cyxx/f2bgl
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
26 lines (18 loc) · 787 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
SDL_CFLAGS = `sdl2-config --cflags`
SDL_LIBS = `sdl2-config --libs`
LIBS = $(SDL_LIBS) -lGL -lz -lWildMidi -lfluidsynth -lm
#LTO = -flto
CXXFLAGS += -Wall -Wno-sign-compare -Wpedantic -MMD $(FFMPEG_CFLAGS) $(SDL_CFLAGS) $(LTO)
LDFLAGS += $(LTO)
SRCS = cabinet.cpp camera.cpp collision.cpp cutscene.cpp cutscenecin.cpp cutscenedps.cpp decoder.cpp file.cpp \
font.cpp game.cpp icons.cpp input.cpp installer.cpp inventory.cpp main.cpp mdec.cpp menu.cpp \
mixer.cpp opcodes.cpp raycast.cpp render.cpp resource.cpp saveload.cpp scaler.cpp \
screenshot.cpp sound.cpp spritecache.cpp stub.cpp texturecache.cpp \
trigo.cpp util.cpp xmiplayer.cpp
OBJS = $(SRCS:.cpp=.o)
DEPS = $(SRCS:.cpp=.d)
f2bgl: $(OBJS)
$(CXX) $(LDFLAGS) -o $@ $^ $(LIBS)
clean:
rm -f *.o *.d
-include $(DEPS)