updated Makefiles to not print the "*.dep: No such file or directory" warnings
git-svn-id: svn://anubis/fart/trunk@204 7f9b0f55-74a9-4bce-be96-3c2cd072584d
This commit is contained in:
parent
9f9ce1a8f5
commit
72a5023539
8
Makefile
8
Makefile
@ -20,8 +20,8 @@ $(TARGET):
|
|||||||
$(CXX) -o $@ main/*.o util/*.o shapes/*.o parser/*.o $(CXXFLAGS) $(LDFLAGS)
|
$(CXX) -o $@ main/*.o util/*.o shapes/*.o parser/*.o $(CXXFLAGS) $(LDFLAGS)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
make -C parser clean
|
make -C parser clean CLEAN=1
|
||||||
make -C main clean
|
make -C main clean CLEAN=1
|
||||||
make -C shapes clean
|
make -C shapes clean CLEAN=1
|
||||||
make -C util clean
|
make -C util clean CLEAN=1
|
||||||
-rm -f $(TARGET)
|
-rm -f $(TARGET)
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
|
|
||||||
OBJS := $(patsubst %.cc,%.o,$(wildcard *.cc))
|
OBJS := $(patsubst %.cc,%.o,$(wildcard *.cc))
|
||||||
|
DEPS := $(OBJS:.o=.dep)
|
||||||
|
|
||||||
all: $(OBJS)
|
all: $(DEPS) $(OBJS)
|
||||||
|
|
||||||
%.o: %.cc
|
%.o: %.cc
|
||||||
$(CXX) -c -o $@ $(CPPFLAGS) $(CXXFLAGS) $<
|
$(CXX) -c -o $@ $(CPPFLAGS) $(CXXFLAGS) $<
|
||||||
@ -17,4 +18,6 @@ clean:
|
|||||||
-$(RM) -f *.o *.dep
|
-$(RM) -f *.o *.dep
|
||||||
|
|
||||||
# Include dependency files
|
# Include dependency files
|
||||||
include $(OBJS:.o=.dep)
|
ifndef clean
|
||||||
|
-include $(DEPS)
|
||||||
|
endif
|
||||||
|
@ -5,8 +5,9 @@ BISON := bison
|
|||||||
PARSER := parser
|
PARSER := parser
|
||||||
|
|
||||||
OBJS := lex.yy.o $(PARSER).tab.o $(patsubst %.cc,%.o,$(wildcard *.cc))
|
OBJS := lex.yy.o $(PARSER).tab.o $(patsubst %.cc,%.o,$(wildcard *.cc))
|
||||||
|
DEPS := $(OBJS:.o=.dep)
|
||||||
|
|
||||||
all: $(OBJS)
|
all: $(DEPS) $(OBJS)
|
||||||
|
|
||||||
%.o: %.cc
|
%.o: %.cc
|
||||||
$(CXX) -c -o $@ $(CPPFLAGS) $(CXXFLAGS) $<
|
$(CXX) -c -o $@ $(CPPFLAGS) $(CXXFLAGS) $<
|
||||||
@ -31,4 +32,6 @@ clean:
|
|||||||
-rm -f lex.yy.cc $(PARSER).tab.cc $(PARSER).tab.hh *~ *.o *.dep
|
-rm -f lex.yy.cc $(PARSER).tab.cc $(PARSER).tab.hh *~ *.o *.dep
|
||||||
|
|
||||||
# Include dependency files
|
# Include dependency files
|
||||||
include $(OBJS:.o=.dep)
|
ifndef CLEAN
|
||||||
|
-include $(DEPS)
|
||||||
|
endif
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
|
|
||||||
OBJS := $(patsubst %.cc,%.o,$(wildcard *.cc))
|
OBJS := $(patsubst %.cc,%.o,$(wildcard *.cc))
|
||||||
|
DEPS := $(OBJS:.o=.dep)
|
||||||
|
|
||||||
all: $(OBJS)
|
all: $(DEPS) $(OBJS)
|
||||||
|
|
||||||
%.o: %.cc
|
%.o: %.cc
|
||||||
$(CXX) -c -o $@ $(CPPFLAGS) $(CXXFLAGS) $<
|
$(CXX) -c -o $@ $(CPPFLAGS) $(CXXFLAGS) $<
|
||||||
@ -17,4 +18,6 @@ clean:
|
|||||||
-$(RM) -f *.o *.dep
|
-$(RM) -f *.o *.dep
|
||||||
|
|
||||||
# Include dependency files
|
# Include dependency files
|
||||||
include $(OBJS:.o=.dep)
|
ifndef clean
|
||||||
|
-include $(DEPS)
|
||||||
|
endif
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
|
|
||||||
OBJS := $(patsubst %.cc,%.o,$(wildcard *.cc))
|
OBJS := $(patsubst %.cc,%.o,$(wildcard *.cc))
|
||||||
|
DEPS := $(OBJS:.o=.dep)
|
||||||
|
|
||||||
all: $(OBJS)
|
all: $(DEPS) $(OBJS)
|
||||||
|
|
||||||
%.o: %.cc
|
%.o: %.cc
|
||||||
$(CXX) -c -o $@ $(CPPFLAGS) $(CXXFLAGS) $<
|
$(CXX) -c -o $@ $(CPPFLAGS) $(CXXFLAGS) $<
|
||||||
@ -17,4 +18,6 @@ clean:
|
|||||||
-$(RM) -f *.o *.dep
|
-$(RM) -f *.o *.dep
|
||||||
|
|
||||||
# Include dependency files
|
# Include dependency files
|
||||||
include $(OBJS:.o=.dep)
|
ifndef CLEAN
|
||||||
|
-include $(DEPS)
|
||||||
|
endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user