aboutsummaryrefslogtreecommitdiffstats
path: root/makefile
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2018-11-09 12:24:19 +0000
committerbloodstalker <thabogre@gmail.com>2018-11-09 12:24:19 +0000
commit64e37df7332cf8cc7530826f2cb367ce8d738c61 (patch)
treea4ef25da666c78069fab9b277899c5c62434010d /makefile
parentupdate (diff)
downloadcgrep-64e37df7332cf8cc7530826f2cb367ce8d738c61.tar.gz
cgrep-64e37df7332cf8cc7530826f2cb367ce8d738c61.zip
update
Diffstat (limited to 'makefile')
-rw-r--r--makefile22
1 files changed, 16 insertions, 6 deletions
diff --git a/makefile b/makefile
index 019f91f..2fad74a 100644
--- a/makefile
+++ b/makefile
@@ -98,16 +98,25 @@ depend:.depend
%.ocov:%.cpp
$(CXX) $(CXX_FLAGS) $(COV_CXX) -c $< -o $@
-$(TARGET): $(TARGET).o
+./cfe-extra/cfe_extra.o:./cfe-extra/cfe_extra.cpp
+ $(CXX) $(CXX_FLAGS) -c $< -o $@
+
+./cfe-extra/cfe_extra.odbg:./cfe-extra/cfe_extra.cpp
+ $(CXX) $(CXX_FLAGS) -g -c $< -o $@
+
+./cfe-extra/cfe_extra.ocov:./cfe-extra/cfe_extra.cpp
+ $(CXX) $(CXX_FLAGS) $(COV_CXX) -c $< -o $@
+
+$(TARGET): $(TARGET).o ./cfe-extra/cfe_extra.o
$(CXX) $^ $(LD_FLAGS) -o $@
-$(TARGET)-static: $(TARGET).o
+$(TARGET)-static: $(TARGET).o ./cfe-extra/cfe_extra.o
$(CXX) $^ $(LD_FLAGS) -static -o $@
-$(TARGET)-dbg: $(TARGET).odbg
+$(TARGET)-dbg: $(TARGET).odbg ./cfe-extra/cfe_extra.odbg
$(CXX) $^ $(LD_FLAGS) -g -o $@
-$(TARGET)-cov: $(TARGET).ocov
+$(TARGET)-cov: $(TARGET).ocov ./cfe-extra/cfe_extra.ocov
$(CXX) $^ $(LD_FLAGS) $(COV_LD) -o $@
cov: runcov
@@ -134,10 +143,10 @@ tags:$(SRCS)
%.dis: %.o
objdump -r -d -M intel -S $< > $@
-$(TARGET).so: $(TARGET).o
+$(TARGET).so: $(TARGET).o ./cfe-extra/cfe_extra.o
$(CXX) $^ $(LD_FLAGS) -shared -o $@
-$(TARGET).a: $(TARGET).o
+$(TARGET).a: $(TARGET).o ./cfe-extra/cfe_extra.o
ar rcs $(TARGET).a $(TARGET).o
runcov: $(TARGET)-cov
@@ -158,6 +167,7 @@ clean:
deepclean: clean
- rm tags
- rm .depend
+ - $(MAKE) -C ./cfe-extra clean
help:
@echo "--all is the default target, runs $(TARGET) target"