Mercurial > hg > old > magoroku_racing
annotate Makefile @ 144:4ce7b80c9265
test
author | e085768 |
---|---|
date | Sat, 23 Jul 2011 07:31:47 +0900 |
parents | 993d5f7e5f30 |
children | 8ac08eda80ac |
rev | line source |
---|---|
106
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
101
diff
changeset
|
1 # Makefile to build the SDL tests |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
101
diff
changeset
|
2 include ./Makefile.def |
0 | 3 |
106
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
101
diff
changeset
|
4 srcdir = . |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
101
diff
changeset
|
5 ABI = -m$(ABIBIT) |
0 | 6 |
130 | 7 SRCS = game.cc car.cc col.cc quotanion.cc controler.cc field.cc camera.cc gSprite.cc schedule.cc mytype.cc gFont.cc carNode.cc light.cc title_scene.cc game_time.cc ps2util.cc sjoy.cc name_dictionary.cc sound.cc Ss.cc getStrFromFile.cc |
138 | 8 TEST_SRCS = col.cc ps2util.cc gSprite.cc |
0 | 9 |
116 | 10 #CFLAGS += -DINVISIBLE_MODE -g $(ABI) -Wall `sdl-config --cflags` `xml2-config --cflags` $(INCLUDE) |
130 | 11 CFLAGS += -DINVISIBLE_MODE -g -O0 $(ABI) -Wall `sdl-config --cflags` `xml2-config --cflags` `freetype-config --cflags` $(INCLUDE) |
12 LIBS += `sdl-config --libs`,-framework,OpenGL -lSDL_mixer -lSDL_image `xml2-config --libs` `freetype-config --libs` | |
106
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
101
diff
changeset
|
13 LIBS += -lCerium -lFifoManager |
98 | 14 |
124 | 15 TARGET = magoroku #dandy test1 |
16 | |
17 #TEST = test_vector | |
18 | |
106
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
101
diff
changeset
|
19 OBJS = ${SRCS:.cc=.o} |
138 | 20 TEST_OBJS = ${TEST_SRCS:.cc=.o} |
124 | 21 |
22 all: $(TARGET) #${TEST} | |
0 | 23 |
116 | 24 magoroku: $(OBJS) Magoroku.o |
25 $(CC) $(ABI) -o $@ $(OBJS) Magoroku.o $(LIBS) | |
0 | 26 |
138 | 27 test_collision: $(TEST_OBJS) test_collision.o |
28 $(CC) $(ABI) -o $@ $(TEST_OBJS) test_collision.o $(LIBS) | |
29 | |
125 | 30 #${TEST}: ps2util.o test_vector.o |
31 # ${CC} $(ABI) -o test_vector.o ps2util.o $(LIBS) | |
124 | 32 # $(CC) -o test_vector.o |
33 # ${CC} -o ${TEST} $^ | |
34 | |
35 | |
106
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
101
diff
changeset
|
36 clean: |
124 | 37 rm -f $(TARGET) $(OBJS) main.o sgoex.o Magoroku.o Test.o |
0 | 38 |
106
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
101
diff
changeset
|
39 .c.o: |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
101
diff
changeset
|
40 $(CC) $(CFLAGS) $(INCLUDES) -c $< |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
101
diff
changeset
|
41 |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
101
diff
changeset
|
42 .cc.o: |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
101
diff
changeset
|
43 $(CC) $(CFLAGS) $(INCLUDES) -c $< |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
101
diff
changeset
|
44 |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
101
diff
changeset
|
45 debug.o:debug.h |