LIBALLG = `allegro-config --libs release` LIBGL = -lGL -lGLU LIBSDL = `sdl-config --libs` LIBS = ${LIBSDL} ${LIBGL} CXX = g++ CXXFLAGS = -ggdb -Wall -pedantic SRCS = Vector2.cpp ticks.cpp main.cpp game.cpp entityManager.cpp graphics.cpp OBJS = ${SRCS:.cpp=.o} TARGETS = ../run_physics DEPEND = depend.mk # set suffixes to look for ... .SUFFIXES: .cpp .o # set default action for a *.cc to create a *.o .cpp.o: g++ -c $< ${CXXFLAGS} all: ${TARGETS} depend: ${CXX} -MM ${SRCS} > ${DEPEND} tags: ctags ${SRCS} clean: rm -f ${OBJS} ${TARGETS} *~ distclean: clean rm -f tags depend.mk touch depend.mk # i need to find a nice way of ijnoring .svn folders for the below tar: clean cd ..; tar -cjf bluestar.tar.bz2 images/ source/ run: ../run_physics cd ..; ./run_physics ../run_physics: ${OBJS} ${CXX} ${CXXFLAGS} -o ../run_physics ${OBJS} ${LIBS} Entities.d: cd Entities; make include ${DEPEND}