Makefile.sdl2 998 B

123456789101112131415161718192021222324252627282930
  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/surroundopl.cpp adplug/emuopl.cpp
  7. LIBMAD_FILES = libmad/bit.c libmad/decoder.c libmad/fixed.c libmad/frame.c \
  8. libmad/huffman.c libmad/layer12.c libmad/layer3.c libmad/music_mad.c \
  9. libmad/stream.c libmad/synth.c libmad/timer.c
  10. FILES = rixplay.cpp text.c font.c itemmenu.c scene.c palcommon.c script.c \
  11. util.c play.c getopt.c input.c uibattle.c game.c magicmenu.c map.c \
  12. ending.c uigame.c rngplay.c ui.c global.c main.c fight.c \
  13. video.c palette.c sound.c res.c battle.c yj1.c
  14. FILES += $(ADPLUG_FILES)
  15. FILES += $(LIBMAD_FILES)
  16. CFLAGS = `sdl2-config --cflags` -g -Wall -O2 -fno-strict-aliasing
  17. LDFLAGS = `sdl2-config --libs` -lstdc++ -lm
  18. $(TARGET):
  19. $(HOST)gcc $(CFLAGS) -o $(TARGET) $(FILES) $(LDFLAGS)
  20. clean:
  21. rm -f $(TARGET)