Mercurial > hg > Game > Cerium
annotate Renderer/Engine/Makefile.macosx @ 1813:d7973604e81f draft
fix memin size
author | kkb |
---|---|
date | Thu, 12 Dec 2013 18:34:16 +0900 |
parents | 3361f2b7c63b |
children | 363b7c401c79 |
rev | line source |
---|---|
283 | 1 include ./Makefile.def |
2 | |
539 | 3 SRCS_TMP = $(wildcard *.cc) $(wildcard Application/*.cc) |
1052 | 4 SRCS_EXCLUDE = # 除外 |
283 | 5 SRCS = $(filter-out $(SRCS_EXCLUDE),$(SRCS_TMP)) |
539 | 6 OBJS = $(SRCS:.cc=.o) |
283 | 7 |
8 TASK_DIR = task | |
539 | 9 TASK_SRCS_TMP = $(wildcard $(TASK_DIR)/*.cc) |
1160 | 10 TASK_SRCS_EXCLUDE = span_pack_draw.cc Bridge.cc |
283 | 11 TASK_SRCS = $(filter-out $(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP)) |
539 | 12 TASK_OBJS = $(TASK_SRCS:.cc=.o) |
283 | 13 |
14 LIBS += -lFifoManager | |
15 | |
1205
b8adf4e95e96
add createStringFont()
Takao YONAMINE <e095763@ie.u-ryukyu.ac.jp>
parents:
1160
diff
changeset
|
16 CFLAGS += `sdl-config --cflags` `xml2-config --cflags` `freetype-config --cflags` -Drestrict=__restrict__ |
b8adf4e95e96
add createStringFont()
Takao YONAMINE <e095763@ie.u-ryukyu.ac.jp>
parents:
1160
diff
changeset
|
17 LIBS += `sdl-config --libs` `xml2-config --libs` `freetype-config --libs` -lSDL_image -Wl,-framework,OpenGL |
283 | 18 |
539 | 19 .SUFFIXES: .cc .o |
283 | 20 |
539 | 21 .cc.o: |
283 | 22 $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@ |
23 | |
541
1a31b8820a4d
Cerium Rendering Library
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
539
diff
changeset
|
24 all: $(TARGET) |
283 | 25 |
541
1a31b8820a4d
Cerium Rendering Library
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
539
diff
changeset
|
26 $(TARGET) : $(OBJS) $(TASK_OBJS) |
1411 | 27 rm -f $@ |
541
1a31b8820a4d
Cerium Rendering Library
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
539
diff
changeset
|
28 $(AR) crus $@ $(OBJS) $(TASK_OBJS) |
283 | 29 |
30 | |
31 | |
32 run: $(TARGET) | |
33 sudo ./$(TARGET) -width 576 -height 384 -bpp 32 | |
34 | |
35 debug: $(TARGET) | |
36 sudo ppu-gdb ./$(TARGET) | |
37 | |
38 depend: | |
39 $(RM) depend.inc | |
40 $(CC) -MM -MG $(INCLUDE) $(CFLAGS) $(SRCS) $(TASK_SRCS) > depend.inc | |
41 | |
42 clean: | |
43 rm -f $(TARGET) $(OBJS) $(TASK_OBJS) | |
619 | 44 rm -f *~ \#* *.o |
283 | 45 |
539 | 46 -include depend.inc |