Makefile 1019 B

12345678910111213141516171819202122232425262728293031
  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. adplug/demuopl.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. FILES = rixplay.cpp text.c font.c itemmenu.c scene.c palcommon.c script.c \
  12. util.c play.c getopt.c input.c uibattle.c game.c magicmenu.c map.c \
  13. ending.c uigame.c rngplay.c ui.c global.c main.c fight.c \
  14. video.c palette.c sound.c res.c battle.c yj1.c
  15. FILES += $(ADPLUG_FILES)
  16. FILES += $(LIBMAD_FILES)
  17. CFLAGS = `sdl-config --cflags` -g -Wall -O2 -fno-strict-aliasing
  18. LDFLAGS = `sdl-config --libs` -lstdc++ -lm
  19. $(TARGET):
  20. $(HOST)gcc $(CFLAGS) -o $(TARGET) $(FILES) $(LDFLAGS)
  21. clean:
  22. rm -f $(TARGET)