annotate Makefile.mac @ 18:c330ded6d728

add task file.
author koba <koba@cr.ie.u-ryukyu.ac.jp>
date Fri, 17 Dec 2010 22:18:11 +0900
parents 927401604461
children 00c3272a801f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
435ac1cdb64e create task dandy directry.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 # Makefile to build the SDL tests
435ac1cdb64e create task dandy directry.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
2 include ./Makefile.def
435ac1cdb64e create task dandy directry.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
3
17
927401604461 add spe object
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 16
diff changeset
4 TARGET = demo dandy t_dandy
927401604461 add spe object
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 16
diff changeset
5 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
9
8a614bb55d00 change Makefile
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
6
17
927401604461 add spe object
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 16
diff changeset
7 TASK_DIR = ppe
927401604461 add spe object
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 16
diff changeset
8 TASK_SRCS_TMP = $(wildcard $(TASK_DIR)/*.cc)
927401604461 add spe object
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 16
diff changeset
9 TASK_SRCS_EXCLUDE =
927401604461 add spe object
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 16
diff changeset
10 TASK_SRCS = $(filter-out $(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP))
927401604461 add spe object
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 16
diff changeset
11 TASK_OBJS = $(TASK_SRCS:.cc=.o)
0
435ac1cdb64e create task dandy directry.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
12
435ac1cdb64e create task dandy directry.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
13 CFLAGS += -g $(ABI) -O2 -Wall `sdl-config --cflags` `xml2-config --cflags` $(INCLUDE)
17
927401604461 add spe object
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 16
diff changeset
14 LIBS += `sdl-config --libs`,-framework,OpenGL -lSDL_mixer -lSDL_image `xml2-config --libs`
0
435ac1cdb64e create task dandy directry.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
15 LIBS += -lCerium -lFifoManager
435ac1cdb64e create task dandy directry.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
16
435ac1cdb64e create task dandy directry.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
17 all: $(TARGET)
435ac1cdb64e create task dandy directry.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
18
435ac1cdb64e create task dandy directry.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
19 test: $(TARGET)
17
927401604461 add spe object
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 16
diff changeset
20 ./demo -test
927401604461 add spe object
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 16
diff changeset
21
927401604461 add spe object
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 16
diff changeset
22 demo: $(OBJS) sgoex.o main.o collision.o
927401604461 add spe object
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 16
diff changeset
23 $(CC) $(ABI) -o $@ main.o sgoex.o collision.o $(OBJS) $(LIBS)
0
435ac1cdb64e create task dandy directry.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
24
17
927401604461 add spe object
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 16
diff changeset
25 dandy: $(OBJS) Dandy.o collision.o
927401604461 add spe object
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 16
diff changeset
26 $(CC) $(ABI) -o $@ $(OBJS) Dandy.o collision.o $(LIBS)
0
435ac1cdb64e create task dandy directry.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
27
17
927401604461 add spe object
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 16
diff changeset
28 t_dandy: $(OBJS) TaskDandy.o collision_task.o $(TASK_OBJS)
18
c330ded6d728 add task file.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 17
diff changeset
29 $(CC) $(ABI) -o $@ $(OBJS) TaskDandy.o collision_task.o $(TASK_OBJS) $(LIBS)
0
435ac1cdb64e create task dandy directry.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
30
435ac1cdb64e create task dandy directry.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
31 clean:
17
927401604461 add spe object
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 16
diff changeset
32 rm -f $(TARGET) $(OBJS) $(TASK_OBJS) Dandy.o TaskDandy.o sgoex.o main.o
0
435ac1cdb64e create task dandy directry.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
33
435ac1cdb64e create task dandy directry.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
34 .c.o:
18
c330ded6d728 add task file.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 17
diff changeset
35 $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@
0
435ac1cdb64e create task dandy directry.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
36
435ac1cdb64e create task dandy directry.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
37 .cc.o:
18
c330ded6d728 add task file.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 17
diff changeset
38 $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@
0
435ac1cdb64e create task dandy directry.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
39
435ac1cdb64e create task dandy directry.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
40 debug.o:debug.h