projects
/
physics.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
giving more control to dir.mk files
[physics.git]
/
src
/
input
/
dir.mk
diff --git
a/src/input/dir.mk
b/src/input/dir.mk
index
abd97a1
..
a039bae
100644
(file)
--- a/
src/input/dir.mk
+++ b/
src/input/dir.mk
@@
-1,8
+1,18
@@
+NEWSRCS := # insure blank
+
+NEWSRCS += inputManager.cpp
+
+
+# Post dir setup
+
CURDIR := input/
CURDIR := input/
-FILES := # insure blank
-FILES += inputManager.cpp
+NEWSRCS := $(addprefix ${CURDIR},${NEWSRCS})
+NEWOBJS := ${NEWSRCS:.cpp=.o}
+NEWDEPS := ${NEWSRCS:.cpp=.d}
-FILES := $(addprefix ${CURDIR},${FILES})
+# Append to lists
-SRCS += ${FILES}
+SRCS += ${NEWSRCS}
+OBJS += $(addprefix ${OBJSDIR},${NEWOBJS})
+DEPS += $(addprefix ${DEPSDIR},${NEWDEPS})