CC = g++ CCFLAGS = -Wall LDFLAGS = `sdl-config --cflags --libs` -lSDL_image RM = rm -f MAKE = make INCLUDE = -Iinclude/ext -Iinclude/contrib -Iinclude/core -Iprj/ SRC_C = $(wildcard src/core/*.c src/contrib/*.c src/ext/*.c prj/**/src/*.c) SRC_CC = $(wildcard src/core/*.cpp src/contrib/*.cpp src/ext/*.cpp prj/**/src/*.cpp) OBJ = $(SRC_C:.c=.o) $(SRC_CC:.cpp=.o) TARGET = roborobo .IGNORE: #.SILENT: all: #clear # $(MAKE) distclean $(MAKE) $(TARGET) $(TARGET): $(OBJ) $(CC) $(LDFLAGS) -o $@ $^ # $(MAKE) clean %.o: %.cpp $(CC) -o $@ -c $< $(CCFLAGS) $(INCLUDE) %.o: %.c $(CC) -o $@ -c $< $(CCFLAGS) $(INCLUDE) clean: $(RM) $(OBJ) distclean: $(MAKE) clean $(RM) $(TARGET) snapshot: clear make distclean rm -f roborobo-snapshot.tgz tar --exclude='._*' --exclude='build' --exclude='.DS_Store' --exclude='datalog_*' --exclude='properties_*' --exclude='roborobo-snapshot.tgz' --exclude='.svn' -cvf - ../`pwd | perl -ne '/.*\/(.*)$$/; print "$$1\n"';`/* | gzip -c > roborobo-snapshot.tgz @echo =-=-=-= @echo =-=-=-= @echo =-=-=-= @echo Snapshot is created as roborobo-snapshot.tgz @echo . @echo All files have been archived except: @echo - datalog_* and properties_* files are NOT in the archive, wherever they were. @echo - .svn directories and contents are NOT in the archive @echo - macosx only: the macosx build directory is NOT in the archive @echo - macosx only: after uncompressing, re-create the symbolic link in the build/Debug dir. @echo - note: dont forget to re-compile as a make distclean was performed prior to building the archive @echo =-=-=-= @echo =-=-=-= @echo =-=-=-=