comparison Makefile.macosx @ 0:bb4b306c1248

first commit
author tkaito
date Mon, 31 May 2010 18:22:53 +0900
parents
children 69b4108bf4e8
comparison
equal deleted inserted replaced
-1:000000000000 0:bb4b306c1248
1 include ./Makefile.def
2
3 LIBS += -lCerium -lFifoManager
4
5 CFLAGS += `sdl-config --cflags` `xml2-config --cflags` $(INCLUDE)
6 LIBS += `sdl-config --libs` `xml2-config --libs` -lSDL_image -Wl,-framework,OpenGL
7
8 .SUFFIXES: .cc .o .xml .xml.h .xml.cc
9
10 .cc.o:
11 $(CC) $(CFLAGS) -c $< -o $@
12
13 ALL = viewer
14
15 oFLAGS=-g
16 CFLAGt=-g
17 all: $(ALL)
18
19 VIEWER_OBJ = viewer.o
20 viewer : $(VIEWER_OBJ)
21 $(CC) -o $@ $? $(LIBS)
22
23
24 run: $(TARGET)
25 sudo ./$(TARGET) -width 576 -height 384 -bpp 32
26
27 debug: $(TARGET)
28 sudo ppu-gdb ./$(TARGET)
29
30 depend:
31 $(RM) depend.inc
32 $(CC) -MM -MG $(INCLUDE) $(CFLAGS) $(SRCS) $(TASK_SRCS) > depend.inc
33
34 clean:
35 rm -f $(TARGET) $(OBJS) $(TASK_OBJS) *.o
36 rm -f *~ \#* $(ALL)
37 rm -f $(BALL_BOUND_XML).cc $(BALL_BOUND_XML).h $(BALL_BOUND_OBJ)
38
39 -include depend.inc