0
|
1 # Makefile to build the SDL tests
|
7
|
2 include ./Makefile.def
|
0
|
3
|
|
4 srcdir = .
|
|
5 ABI = -m32
|
|
6
|
8
|
7 CFLAGS += -g $(ABI) -O2 -Wall `sdl-config --cflags` `xml2-config --cflags` $(INCLUDE)
|
7
|
8 LIBS += `sdl-config --libs`,-framework,OpenGL -lSDL_mixer -lSDL_image `xml2-config --libs`
|
|
9 LIBS += -lCerium -lFifoManager
|
|
10
|
|
11 TARGET = demo dandy
|
9
|
12 OBJS = Character.o Bom.o tokuten.o collision.o count2.o Character_state.o schedule3.o tama2.o syokika.o Ss.o sound.o profile.o debug.o trace.o LoadSprite.o xml.o b64_de.o tree_controll.o object.o sys.o
|
0
|
13
|
|
14 all: $(TARGET)
|
|
15
|
|
16 test: $(TARGET)
|
7
|
17 ./demo -test
|
0
|
18
|
11
|
19 demo: $(OBJS) sgoex.o main.o
|
9
|
20 $(CC) $(ABI) -o $@ main.o sgoex.o $(OBJS) $(LIBS)
|
7
|
21
|
|
22 dandy: $(OBJS) Dandy.o
|
|
23 $(CC) $(ABI) -o $@ $(OBJS) Dandy.o $(LIBS)
|
0
|
24
|
|
25 clean:
|
|
26 rm -f $(TARGET) $(OBJS)
|
|
27
|
|
28 .c.o:
|
|
29 $(CC) $(CFLAGS) $(INCLUDES) -c $<
|
|
30
|
7
|
31 .cc.o:
|
|
32 $(CC) $(CFLAGS) $(INCLUDES) -c $<
|
|
33
|
0
|
34 debug.o:debug.h
|