REminiscence/Makefile

38 lines
1.3 KiB
Makefile
Raw Permalink Normal View History

2015-08-02 18:00:00 +02:00
2017-06-07 18:00:00 +02:00
SDL_CFLAGS := `sdl2-config --cflags`
SDL_LIBS := `sdl2-config --libs`
MODPLUG_LIBS := -lmodplug
2021-09-05 18:00:00 +02:00
TREMOR_LIBS := #-lvorbisidec -logg
2017-06-07 18:00:00 +02:00
ZLIB_LIBS := -lz
2023-03-31 15:23:51 +02:00
LIBS = $(SDL_LIBS) $(MODPLUG_LIBS) $(TREMOR_LIBS) $(ZLIB_LIBS)
CXXFLAGS += -Wall -Wextra -Wno-unused-parameter -Wpedantic -MMD $(SDL_CFLAGS) -DUSE_MODPLUG -DUSE_STB_VORBIS -DUSE_ZLIB
2015-08-02 18:00:00 +02:00
2019-12-28 17:00:00 +01:00
SRCS = collision.cpp cpc_player.cpp cutscene.cpp decode_mac.cpp file.cpp fs.cpp game.cpp graphics.cpp main.cpp \
2023-03-31 15:23:51 +02:00
menu.cpp midi_parser.cpp mixer.cpp mod_player.cpp ogg_player.cpp \
piege.cpp prf_player.cpp protection.cpp resource.cpp resource_aba.cpp \
2018-02-10 17:00:00 +01:00
resource_mac.cpp scaler.cpp screenshot.cpp seq_player.cpp \
2015-08-02 18:00:00 +02:00
sfx_player.cpp staticres.cpp systemstub_sdl.cpp unpack.cpp util.cpp video.cpp
2023-03-31 15:23:51 +02:00
#CXXFLAGS += -DUSE_STATIC_SCALER
#SCALERS := scalers/scaler_nearest.cpp scalers/scaler_tv2x.cpp scalers/scaler_xbr.cpp
2018-03-28 18:00:00 +02:00
2023-03-31 15:23:51 +02:00
#CXXFLAGS += -DUSE_MIDI_DRIVER
#MIDIDRIVERS := midi_driver_adlib.cpp midi_driver_mt32.cpp
#MIDI_LIBS := -lmt32emu
2015-08-02 18:00:00 +02:00
2023-03-31 15:23:51 +02:00
LIBS = $(MIDI_LIBS) $(MODPLUG_LIBS) $(SDL_LIBS) $(TREMOR_LIBS) $(ZLIB_LIBS)
OBJS = $(SRCS:.cpp=.o) $(SCALERS:.cpp=.o) $(MIDIDRIVERS:.cpp=.o)
DEPS = $(SRCS:.cpp=.d) $(SCALERS:.cpp=.d) $(MIDIDRIVERS:.cpp=.d)
2015-08-02 18:00:00 +02:00
rs: $(OBJS)
$(CXX) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
clean:
2019-10-27 17:00:00 +01:00
rm -f $(OBJS) $(DEPS)
2015-08-02 18:00:00 +02:00
-include $(DEPS)