LIBALLG = `allegro-config --libs release` LIBGL = -lGL -lGLU LIBSDL = `sdl-config --libs` LIBS = ${LIBSDL} ${LIBGL} CXX = g++ CXXFLAGS = -ggdb -Wall -pedantic LDFLAGS = -lc SRCS = GameState.cpp CreatingPolygon.cpp Paused.cpp Running.cpp OBJS = ${SRCS:.cpp=.o} TARGETS = GameStates.ld 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 GameStates.ld: ${OBJS} # ld -o Entity.ld ${LDFLAGS} ${OBJS} include ${DEPEND}