Makefile.sdl2 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # Adapted from Makefile for Dingux by Rikku2000
  2. TARGET = sdlpal
  3. HOST =
  4. ADPLUG_FILES = adplug/rix.cpp adplug/player.cpp adplug/binio.cpp \
  5. adplug/fprovide.cpp adplug/binfile.cpp adplug/dosbox_opl.cpp \
  6. adplug/fmopl.c adplug/dbopl.cpp adplug/surroundopl.cpp \
  7. adplug/emuopl.cpp adplug/demuopl.cpp adplug/dbemuopl.cpp
  8. LIBMAD_FILES = libmad/bit.c libmad/decoder.c libmad/fixed.c libmad/frame.c \
  9. libmad/huffman.c libmad/layer12.c libmad/layer3.c libmad/music_mad.c \
  10. libmad/stream.c libmad/synth.c libmad/timer.c
  11. LIBOGGVORBIS_FILES = liboggvorbis/src/analysis.c liboggvorbis/src/bitrate.c \
  12. liboggvorbis/src/bitwise.c liboggvorbis/src/block.c liboggvorbis/src/codebook.c \
  13. liboggvorbis/src/envelope.c liboggvorbis/src/floor0.c liboggvorbis/src/floor1.c \
  14. liboggvorbis/src/framing.c liboggvorbis/src/info.c liboggvorbis/src/lookup.c \
  15. liboggvorbis/src/lpc.c liboggvorbis/src/lsp.c liboggvorbis/src/mapping0.c \
  16. liboggvorbis/src/mdct.c liboggvorbis/src/psy.c liboggvorbis/src/registry.c \
  17. liboggvorbis/src/res0.c liboggvorbis/src/sharedbook.c liboggvorbis/src/smallft.c \
  18. liboggvorbis/src/synthesis.c liboggvorbis/src/vorbisenc.c liboggvorbis/src/vorbisfile.c \
  19. liboggvorbis/src/window.c
  20. FILES = battle.c ending.c fight.c font.c game.c getopt.c global.c input.c \
  21. itemmenu.c magicmenu.c main.c map.c mp3play.c oggplay.c palcommon.c \
  22. palette.c play.c res.c resampler.c rixplay.cpp rngplay.c scene.c script.c \
  23. sound.c text.c ui.c uibattle.c uigame.c util.c video.c yj1.c
  24. FILES += $(ADPLUG_FILES)
  25. FILES += $(LIBMAD_FILES)
  26. FILES += $(LIBOGGVORBIS_FILES)
  27. CFLAGS = `sdl2-config --cflags` -g -Wall -O2 -fno-strict-aliasing
  28. LDFLAGS = `sdl2-config --libs` -lstdc++ -lm
  29. $(TARGET):
  30. $(HOST)gcc $(CFLAGS) -o $(TARGET) $(FILES) $(LDFLAGS)
  31. clean:
  32. rm -f $(TARGET)