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