Mercurial > hg > Members > e085722 > Cerium
comparison Renderer/Engine/Makefile.macosx @ 0:04e28d8d3c6f
first commit
author | Daiki KINJYO <e085722@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 08 Nov 2010 01:23:25 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:04e28d8d3c6f |
---|---|
1 include ./Makefile.def | |
2 | |
3 SRCS_TMP = $(wildcard *.cc) $(wildcard Application/*.cc) | |
4 SRCS_EXCLUDE = # ½ü³° | |
5 SRCS = $(filter-out $(SRCS_EXCLUDE),$(SRCS_TMP)) | |
6 OBJS = $(SRCS:.cc=.o) | |
7 | |
8 TASK_DIR = task | |
9 TASK_SRCS_TMP = $(wildcard $(TASK_DIR)/*.cc) | |
10 TASK_SRCS_EXCLUDE = span_pack_draw.cc | |
11 TASK_SRCS = $(filter-out $(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP)) | |
12 TASK_OBJS = $(TASK_SRCS:.cc=.o) | |
13 | |
14 LIBS += -lFifoManager | |
15 | |
16 CFLAGS += `sdl-config --cflags` `xml2-config --cflags` -Drestrict=__restrict__ | |
17 LIBS += `sdl-config --libs` `xml2-config --libs` -lSDL_image -Wl,-framework,OpenGL | |
18 | |
19 .SUFFIXES: .cc .o | |
20 | |
21 .cc.o: | |
22 $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@ | |
23 | |
24 all: $(TARGET) | |
25 | |
26 $(TARGET) : $(OBJS) $(TASK_OBJS) | |
27 $(AR) crus $@ $(OBJS) $(TASK_OBJS) | |
28 | |
29 | |
30 | |
31 run: $(TARGET) | |
32 sudo ./$(TARGET) -width 576 -height 384 -bpp 32 | |
33 | |
34 debug: $(TARGET) | |
35 sudo ppu-gdb ./$(TARGET) | |
36 | |
37 depend: | |
38 $(RM) depend.inc | |
39 $(CC) -MM -MG $(INCLUDE) $(CFLAGS) $(SRCS) $(TASK_SRCS) > depend.inc | |
40 | |
41 clean: | |
42 rm -f $(TARGET) $(OBJS) $(TASK_OBJS) | |
43 rm -f *~ \#* *.o | |
44 | |
45 -include depend.inc |