annotate Makefile.mac @ 70:cee55c8365e9 default tip

fix
author Kazuma
date Thu, 19 May 2016 18:52:26 +0900
parents e01948ce859a
children
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
19
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 18
diff changeset
5 OBJS = Character.o Bom.o tokuten.o count2.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
70
Kazuma
parents: 45
diff changeset
13 CFLAGS += `sdl-config --cflags` `xml2-config --cflags ` `freetype-config --cflags` -Drestrict=__restrict -Wno-int-to-pointer-cast $(INCLUDE)
Kazuma
parents: 45
diff changeset
14 LIBS += `sdl-config --libs` -framework OpenGL -lSDL_mixer -lSDL_image `xml2-config --libs` `freetype-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
19
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 18
diff changeset
22 demo: $(OBJS) main.o collision.o Character_state.o sgoex.o
45
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 24
diff changeset
23 $(CC) $(OPT) $(ABI) -o $@ $? $(LIBS)
0
435ac1cdb64e create task dandy directry.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
24
19
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 18
diff changeset
25 dandy: $(OBJS) Dandy.o collision.o Character_state.o
45
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 24
diff changeset
26 $(CC) $(OPT) $(ABI) -o $@ $? $(LIBS)
0
435ac1cdb64e create task dandy directry.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
27
19
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 18
diff changeset
28 t_dandy: $(OBJS) TaskDandy.o collision_task.o state_task.o $(TASK_OBJS)
45
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 24
diff changeset
29 $(CC) $(OPT) $(ABI) -o $@ $? $(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:
24
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 23
diff changeset
32 rm -f $(TARGET) $(OBJS) $(TASK_OBJS) Dandy.o TaskDandy.o main.o Character_state.o collision_task.o state_task.o sgoex.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
70
Kazuma
parents: 45
diff changeset
40 debug.o:debug.h