cleaned Make output, added base for entity Creator, and calling hooks
[physics.git] / src / Makefile
index 885bc9e..10f3f93 100644 (file)
@@ -12,6 +12,7 @@ CXXFLAGS := -Wall -pedantic -ansi ${DBGFLAGS}
 
 
 SRCS := entityManager.cpp
+SRCS += entityCreator.cpp
 SRCS += game.cpp
 SRCS += main.cpp
 SRCS += mathw.cpp
@@ -47,16 +48,19 @@ DEPENDS := ${SRCS:.cpp=.d}
 all: ${TARGET}
 
 ${TARGET}: ${OBJS}
-       ${CXX} ${CXXFLAGS} -o ${TARGET} $^ ${LIBS}
-       @echo ""
+       @echo "${CXX}: $@"
+       @${CXX} ${CXXFLAGS} -o ${TARGET} $^ ${LIBS}
 
 # how to make a depend file from a source file
 %.d: %.cpp
        @echo "DEP: $@"
        @${CXX} -M ${CXXFLAGS} $< | sed 's,: , $@: ,' > $@
-
 #@${CXX} -M ${CXXFLAGS} $< | sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' > $@
 
+%.o: %.cpp
+       @echo "${CXX}: $@"
+       @${CXX} ${CXXFLAGS} -c -o $@ $<
+
 
 .PHONY: clean
 clean: