public headers move to a inc directory
authorPatrik Gornicz <Gornicz.P@gmail.com>
Tue, 28 Apr 2009 20:30:00 +0000 (16:30 -0400)
committerPatrik Gornicz <Gornicz.P@gmail.com>
Tue, 28 Apr 2009 20:30:00 +0000 (16:30 -0400)
Makefile
inc/Autolock.h [moved from src/locks/Autolock.h with 100% similarity]
inc/Mutex.h [moved from src/locks/Mutex.h with 100% similarity]
inc/Vector2.h [moved from src/Vector2.h with 100% similarity]
inc/debug.h [moved from src/debug.h with 100% similarity]
inc/mathw.h [moved from src/mathw.h with 100% similarity]
src/debug.cpp

index 00be4b2..f5a4664 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -38,7 +38,8 @@ DEPSBLDDIRS := ${DEPSDIR} $(addprefix ${DEPSDIR},${DIRS})
 OBJSBLDDIRS := ${OBJSDIR} $(addprefix ${OBJSDIR},${DIRS})
 BLDDIRS     := ${OBJSBLDDIRS} ${DEPSBLDDIRS} ${WORKINGDIR} ${DSTCFGDIR}
 
-INCDIRS     := ${SRCSDIR}
+INCDIRS     := ${SRCSDIR} inc/
+INCFLAGS    := $(addprefix -I, ${INCDIRS})
 
 
 PRNTFMT := printf "%-5s: %s\n"
@@ -60,6 +61,9 @@ endif
 .PHONY: all
 all: ${TARGET}
 
+install:
+       
+
 # cause the fancy $$ directory rules to work out
 .SECONDEXPANSION:
 
@@ -81,14 +85,14 @@ ${BLDDIRS}:
 # rule to make an object file from a .cpp
 ${OBJSDIR}%.o: ${SRCSDIR}%.cpp | $$(dir $$@)
        ${Q1}${PRNTFMT} "${CXX}" "$@"
-       ${Q2}${CXX} ${CXXFLAGS} -c -o $@ $< -I "${INCDIRS}"
+       ${Q2}${CXX} ${CXXFLAGS} -c -o $@ $< ${INCFLAGS}
 
 # rule to make a depend file from a .cpp
 #   be clever and escape the / chars in file paths
 #   DON'T simply use another sed delimiter or it can't appear in the file paths
 ${DEPSDIR}%.d: ${SRCSDIR}%.cpp | $$(dir $$@)
        ${Q1}${PRNTFMT} "DEP" "$@"
-       ${Q2}${CXX} -MM ${CXXFLAGS} $< -I "${INCDIRS}" | \
+       ${Q2}${CXX} -MM ${CXXFLAGS} $< ${INCFLAGS} | \
                sed 's/\(^.*\):/$(subst /,\/,${OBJSDIR}\1 $@):/' > $@
 
 .PHONY: cleanbin
similarity index 100%
rename from src/locks/Autolock.h
rename to inc/Autolock.h
similarity index 100%
rename from src/locks/Mutex.h
rename to inc/Mutex.h
similarity index 100%
rename from src/Vector2.h
rename to inc/Vector2.h
similarity index 100%
rename from src/debug.h
rename to inc/debug.h
similarity index 100%
rename from src/mathw.h
rename to inc/mathw.h
index 4e659d2..0b3c985 100644 (file)
@@ -24,8 +24,8 @@ using std::endl;
 
 #include <assert.h>
 
-#include "locks/Mutex.h"
-#include "locks/Autolock.h"
+#include "Mutex.h"
+#include "Autolock.h"
 
 /// ***** Public Methods *****