enhanced makefile
This commit is contained in:
parent
87d63150ab
commit
65d7f653e5
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -4,3 +4,6 @@ Log.o
|
||||||
test
|
test
|
||||||
test.o
|
test.o
|
||||||
*.log
|
*.log
|
||||||
|
|
||||||
|
#dependecy files
|
||||||
|
*.d
|
3
Makefile
3
Makefile
|
@ -10,7 +10,10 @@ test: $(TARGET) $(TEST).o
|
||||||
$(CXX) -o test $^
|
$(CXX) -o test $^
|
||||||
|
|
||||||
%.o: %.cpp
|
%.o: %.cpp
|
||||||
|
$(CXX) $(INCLUDES) $^ -MM -MT $@ > $*.d
|
||||||
$(CXX) -c -o $@ $(CFLAGS) $^
|
$(CXX) -c -o $@ $(CFLAGS) $^
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(RM) $(TARGET) $(TEST) $(TEST).o *.log
|
$(RM) $(TARGET) $(TEST) $(TEST).o *.log
|
||||||
|
|
||||||
|
include *.d
|
Loading…
Reference in New Issue
Block a user