Mercurial > hg > Members > koba > t_dandy
annotate Makefile @ 6:9a92435eaee6
divide SG Dandy and Task Dandy.
author | koba <koba@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 14 Dec 2010 16:55:39 +0900 |
parents | c9e9b605f08e |
children | 23d54565aa7b |
rev | line source |
---|---|
0 | 1 # Makefile to build the SDL tests |
2 include ./Makefile.def | |
3 | |
4 srcdir = . | |
5 ABI = -m32 | |
6 | |
1 | 7 TASK_DIR = ppe |
8 TASK_SRCS_TMP = $(wildcard $(TASK_DIR)/*.cc) | |
9 TASK_SRCS_EXCLUDE = | |
10 TASK_SRCS = $(filter-out $(TASK_DIR)/$(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP)) | |
11 TASK_OBJS = $(TASK_SRCS:.cc=.o) | |
12 | |
2 | 13 CFLAGS += -g $(ABI) -Wall `sdl-config --cflags` `xml2-config --cflags` $(INCLUDE) |
0 | 14 LIBS += `sdl-config --libs`,-framework,OpenGL -lSDL_mixer -lSDL_image `xml2-config --libs` |
15 LIBS += -lCerium -lFifoManager | |
16 | |
1 | 17 TARGET = demo dandy t_dandy |
18 OBJS = Character.o Bom.o tokuten.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 | 19 |
20 all: $(TARGET) | |
21 | |
22 test: $(TARGET) | |
23 ./demo -test | |
24 | |
6
9a92435eaee6
divide SG Dandy and Task Dandy.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
5
diff
changeset
|
25 demo: $(OBJS) main.o collision.o sgoex.o |
9a92435eaee6
divide SG Dandy and Task Dandy.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
5
diff
changeset
|
26 $(CC) $(ABI) -o $@ main.o collision.o sgoex.o $(OBJS) $(LIBS) |
0 | 27 |
1 | 28 dandy: $(OBJS) Dandy.o collision.o |
29 $(CC) $(ABI) -o $@ $(OBJS) Dandy.o collision.o $(LIBS) | |
30 | |
6
9a92435eaee6
divide SG Dandy and Task Dandy.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
5
diff
changeset
|
31 t_dandy: $(OBJS) $(TASK_OBJS) TaskDandy.o state_task.o collision_task.o |
9a92435eaee6
divide SG Dandy and Task Dandy.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
5
diff
changeset
|
32 $(CC) $(ABI) -o $@ $(OBJS) $(TASK_OBJS) TaskDandy.o state_task.o collision_task.o $(LIBS) |
0 | 33 |
34 clean: | |
5 | 35 rm -f $(TARGET) $(OBJS) $(TASK_OBJS) |
6
9a92435eaee6
divide SG Dandy and Task Dandy.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
5
diff
changeset
|
36 rm -f main.o TaskDandy.o collision.o state_task.o collision_task.o sgoex.o |
0 | 37 |
38 .c.o: | |
39 $(CC) $(CFLAGS) $(INCLUDES) -c $< | |
40 | |
41 .cc.o: | |
1 | 42 $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@ |
0 | 43 |
44 debug.o:debug.h |