diff Makefile.macosx @ 0:bb4b306c1248

first commit
author tkaito
date Mon, 31 May 2010 18:22:53 +0900
parents
children 69b4108bf4e8
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Makefile.macosx	Mon May 31 18:22:53 2010 +0900
@@ -0,0 +1,39 @@
+include ./Makefile.def
+
+LIBS += -lCerium -lFifoManager 
+
+CFLAGS += `sdl-config --cflags` `xml2-config --cflags` $(INCLUDE)  
+LIBS   += `sdl-config --libs` `xml2-config --libs` -lSDL_image -Wl,-framework,OpenGL 
+
+.SUFFIXES: .cc .o  .xml .xml.h .xml.cc
+
+.cc.o:
+	$(CC) $(CFLAGS)  -c $< -o $@
+
+ALL =  viewer
+
+oFLAGS=-g 
+CFLAGt=-g 
+all: $(ALL)
+
+VIEWER_OBJ = viewer.o
+viewer : $(VIEWER_OBJ) 
+	$(CC) -o $@ $?    $(LIBS)
+
+
+run: $(TARGET)
+	sudo ./$(TARGET) -width 576 -height 384 -bpp 32
+
+debug: $(TARGET)
+	sudo ppu-gdb ./$(TARGET) 
+
+depend:
+	$(RM) depend.inc
+	$(CC) -MM -MG $(INCLUDE) $(CFLAGS) $(SRCS) $(TASK_SRCS) > depend.inc
+
+clean:
+	rm -f $(TARGET) $(OBJS) $(TASK_OBJS) *.o
+	rm -f *~ \#* $(ALL)
+	rm -f $(BALL_BOUND_XML).cc $(BALL_BOUND_XML).h $(BALL_BOUND_OBJ)
+
+-include depend.inc