diff options
author | bloodstalker <thabogre@gmail.com> | 2018-02-01 21:12:56 +0000 |
---|---|---|
committer | bloodstalker <thabogre@gmail.com> | 2018-02-01 21:12:56 +0000 |
commit | 1062f2a106a0215596c62140e650a83252996a2f (patch) | |
tree | 5070bed95027dedd26ebba6af815790bbf9ca006 /makefile | |
parent | travis fix (diff) | |
download | mutator-1062f2a106a0215596c62140e650a83252996a2f.tar.gz mutator-1062f2a106a0215596c62140e650a83252996a2f.zip |
makefile update or they kinda do what they were supposed to do
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -1,7 +1,6 @@ ######################################INCLUDES################################# include macros.mk - #######################################VARS#################################### EXTRA_LD_FLAGS+=tinyxml2/tinyxml2.o @@ -15,7 +14,7 @@ TARGETS=mutatorserver SFCPP01=safercpp-arr BRUISER=bruiser OBSC=obfuscator - +SRCS=$(wildcard *.cpp) ######################################RULES#################################### .DEFAULT: all @@ -23,6 +22,14 @@ OBSC=obfuscator all: $(TARGET0) $(TARGET1) $(TARGET2) $(TARGETC) $(TARGETD) $(TARGETS) $(SFCPP01) $(BRUISER) $(OBSC) +depend:.depend + +.depend:$(SRCS) + rm -f ./.depend + $(CXX) -MM $(CXX_FLAGS) $^ > ./.depend + +-include ./.depend + .cpp.o: $(CXX) $(CXX_FLAGS) -c $< -o $@ $(MAKE) -C tinyxml2 CXX=$(CXX) LLVM_CONF=$(LLVM_CONF) BUILD_MODE=$(BUILD_MODE) @@ -60,6 +67,7 @@ TAGS: $(SRCS) clean: rm -f *.o *~ $(TARGET0) $(TARGET1) $(TARGET2) + rm ./.depend $(MAKE) -C tinyxml2 clean $(MAKE) -C json clean $(MAKE) -C daemon clean |