-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
30 lines (21 loc) · 966 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Adapted from Makefile for Dingux by Rikku2000
TARGET = sdlpal
HOST =
ADPLUG_FILES = adplug/rix.cpp adplug/player.cpp adplug/binio.cpp \
adplug/fprovide.cpp adplug/binfile.cpp adplug/dosbox_opl.cpp \
adplug/fmopl.c adplug/surroundopl.cpp adplug/emuopl.cpp
LIBMAD_FILES = libmad/bit.c libmad/decoder.c libmad/fixed.c libmad/frame.c \
libmad/huffman.c libmad/layer12.c libmad/layer3.c libmad/music_mad.c \
libmad/stream.c libmad/synth.c libmad/timer.c
FILES = rixplay.cpp text.c font.c itemmenu.c scene.c palcommon.c script.c \
util.c play.c getopt.c input.c uibattle.c game.c magicmenu.c map.c \
ending.c uigame.c rngplay.c ui.c global.c main.c fight.c \
video.c palette.c sound.c res.c battle.c yj1.c
FILES += $(ADPLUG_FILES)
FILES += $(LIBMAD_FILES)
CFLAGS = `sdl-config --cflags` -g -Wall -O2 -fno-strict-aliasing
LDFLAGS = `sdl-config --libs` -lstdc++ -lm
$(TARGET):
$(HOST)gcc $(CFLAGS) -o $(TARGET) $(FILES) $(LDFLAGS)
clean:
rm -f $(TARGET)