updated util/Ray module, util/Makefile for automatic prerequisite generation
git-svn-id: svn://anubis/gvsu@366 45c1a28c-8058-47b2-ae61-ca45b979098e
This commit is contained in:
1 parent
00a6331fe9
commit
5af5a9da1e
2 files changed
+13
-1
No files matched your search
@@ -6,5 +6,15 @@ all: $(OBJS)
|
||||
%.o: %.cc
|
||||
$(CXX) -c -o $@ $(CXXFLAGS) $<
|
||||
|
||||
# Make dependency files
|
||||
%.dep: %.cc
|
||||
@set -e; rm -f $@; \
|
||||
$(CXX) -MM $(CPPFLAGS) $< > $@.$$$$; \
|
||||
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
|
||||
rm -f $@.$$$$
|
||||
|
||||
clean:
|
||||
-$(RM) -f *.o $(ARCHIVE)
|
||||
-$(RM) -f *.o *.dep $(ARCHIVE)
|
||||
|
||||
# Include dependency files
|
||||
include $(OBJS:.o=.dep)
|
||||
Reference in new issue
Block a user