Mercurial > hg > Game > Cerium
comparison TaskManager/Test/test_render/Makefile.linux @ 235:7c1f0cd70d7a draft
fix Makefile
author | gongo@localhost.localdomain |
---|---|
date | Sun, 29 Mar 2009 22:02:09 +0900 |
parents | 0b0e0f323742 |
children | 896250fa2c15 |
comparison
equal
deleted
inserted
replaced
234:c93532a1b5b8 | 235:7c1f0cd70d7a |
---|---|
21 .cpp.o: | 21 .cpp.o: |
22 $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@ | 22 $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@ |
23 | 23 |
24 all: $(TARGET) | 24 all: $(TARGET) |
25 | 25 |
26 $(TARGET): $(OBJS) $(TASK_OBJS) | 26 $(TARGET): SGList.o $(OBJS) $(TASK_OBJS) |
27 $(CC) -o $@ $(OBJS) $(TASK_OBJS) $(LIBS) | 27 $(CC) -o $@ $(OBJS) $(TASK_OBJS) SGList.o $(LIBS) |
28 | |
29 SGList.o: create_sg_list | |
30 $(CC) $(CFLAGS) $(INCLUDE) -c SGList.cpp -o $@ | |
31 | |
32 create_sg_list: | |
33 @if [ ! -f SGList.h ]; then \ | |
34 cd tools/;\ | |
35 ./create_sglist.pl ../xml_file/*.xml;\ | |
36 cd ../;\ | |
37 fi | |
28 | 38 |
29 run: $(TARGET) | 39 run: $(TARGET) |
30 sudo ./$(TARGET) -width 576 -height 384 -bpp 32 | 40 sudo ./$(TARGET) -width 576 -height 384 -bpp 32 |
31 | 41 |
32 debug: $(TARGET) | 42 debug: $(TARGET) |
37 $(CC) -MM -MG $(INCLUDE) $(CFLAGS) $(SRCS) $(TASK_SRCS) > depend.inc | 47 $(CC) -MM -MG $(INCLUDE) $(CFLAGS) $(SRCS) $(TASK_SRCS) > depend.inc |
38 | 48 |
39 clean: | 49 clean: |
40 rm -f $(TARGET) $(OBJS) $(TASK_OBJS) | 50 rm -f $(TARGET) $(OBJS) $(TASK_OBJS) |
41 rm -f *~ \#* | 51 rm -f *~ \#* |
52 rm -f SGList.h SGList.cpp |