2015-08-02 18:00:00 +02:00
|
|
|
|
|
|
|
SDL_CFLAGS = `sdl-config --cflags`
|
|
|
|
SDL_LIBS = `sdl-config --libs`
|
|
|
|
VORBIS_LIBS = -lvorbisidec
|
2016-03-20 17:00:00 +01:00
|
|
|
MODPLUG_LIBS = -lmodplug
|
2015-08-02 18:00:00 +02:00
|
|
|
ZLIB_LIBS = -lz
|
|
|
|
|
2016-03-20 17:00:00 +01:00
|
|
|
CXX := clang++
|
|
|
|
CXXFLAGS := -Wall -MMD $(SDL_CFLAGS) -DUSE_ZLIB # -DUSE_MODPLUG
|
2015-08-02 18:00:00 +02:00
|
|
|
|
|
|
|
SRCS = collision.cpp cutscene.cpp file.cpp fs.cpp game.cpp graphics.cpp main.cpp menu.cpp \
|
2016-03-20 17:00:00 +01:00
|
|
|
mixer.cpp mod_player.cpp ogg_player.cpp piege.cpp resource.cpp resource_aba.cpp \
|
|
|
|
scaler.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
|
|
|
|
|
|
|
|
OBJS = $(SRCS:.cpp=.o)
|
|
|
|
DEPS = $(SRCS:.cpp=.d)
|
|
|
|
|
2016-03-20 17:00:00 +01:00
|
|
|
LIBS = $(SDL_LIBS) $(VORBIS_LIBS) $(MODPLUG_LIBS) $(ZLIB_LIBS)
|
2015-08-02 18:00:00 +02:00
|
|
|
|
|
|
|
rs: $(OBJS)
|
|
|
|
$(CXX) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o *.d
|
|
|
|
|
|
|
|
-include $(DEPS)
|