Mercurial > hg > old > magoroku_racing.bad
annotate Makefile @ 112:5106d8d12ded
Changing Magoroku.cc
author | Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 09 Jun 2011 14:59:24 +0900 |
parents | 0c4b7d74e292 |
children | 8c96cadde050 |
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 |
112
5106d8d12ded
Changing Magoroku.cc
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
106
diff
changeset
|
7 SRCS = main.cc 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 Magoroku.cc |
0 | 8 |
106
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
101
diff
changeset
|
9 CFLAGS += -DINVISIBLE_MODE -g $(ABI) -Wall `sdl-config --cflags` `xml2-config --cflags` $(INCLUDE) |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
101
diff
changeset
|
10 LIBS += `sdl-config --libs`,-framework,OpenGL -lSDL_mixer -lSDL_image `xml2-config --libs` |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
101
diff
changeset
|
11 LIBS += -lCerium -lFifoManager |
98 | 12 |
106
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
101
diff
changeset
|
13 TARGET = demo #dandy test1 |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
101
diff
changeset
|
14 OBJS = ${SRCS:.cc=.o} |
0 | 15 |
106
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
101
diff
changeset
|
16 all: $(TARGET) |
0 | 17 |
106
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
101
diff
changeset
|
18 test: $(TARGET) |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
101
diff
changeset
|
19 ./demo -test |
90
8edae89a3877
compile on Mac OS X
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
56
diff
changeset
|
20 |
106
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
101
diff
changeset
|
21 demo: $(OBJS) |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
101
diff
changeset
|
22 $(CC) $(ABI) -o $@ $(OBJS) $(LIBS) |
2 | 23 |
106
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
101
diff
changeset
|
24 dandy: $(OBJS) Dandy.o SgoexCerium.o |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
101
diff
changeset
|
25 $(CC) $(ABI) -o $@ $(OBJS) Dandy.o SgoexCerium.o $(LIBS) |
0 | 26 |
106
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
101
diff
changeset
|
27 test1: $(OBJS) Test.o SgoexCerium.o |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
101
diff
changeset
|
28 $(CC) $(ABI) -o $@ $(OBJS) Test.o SgoexCerium.o $(LIBS) |
0 | 29 |
106
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
101
diff
changeset
|
30 clean: |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
101
diff
changeset
|
31 rm -f $(TARGET) $(OBJS) #main.o sgoex.o Dandy.o SgoexCerium.o Test.o |
0 | 32 |
106
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
101
diff
changeset
|
33 .c.o: |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
101
diff
changeset
|
34 $(CC) $(CFLAGS) $(INCLUDES) -c $< |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
101
diff
changeset
|
35 |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
101
diff
changeset
|
36 .cc.o: |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
101
diff
changeset
|
37 $(CC) $(CFLAGS) $(INCLUDES) -c $< |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
101
diff
changeset
|
38 |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
101
diff
changeset
|
39 debug.o:debug.h |