summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2021-06-13 19:00:13 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2021-06-13 19:00:13 +0200
commit4f923fbdace27f27421bf18dfc9655b73bd68929 (patch)
tree7bfe332416020e9e70d807b7ca9b7b3c59bb8f1e /Makefile
parent19195e2bbdcd7a0db8f84732ce54b1c9d07c006c (diff)
Move execution code into its own function and use from all tasks.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index a7b0ee7..b3f91cb 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,11 @@
all: libcppbuild.a cppbuild
-libcppbuild.a: libcppbuild.cc libcppbuild.h task_cc.cc task_cc.h task_ld.cc task_ld.h task.h
+libcppbuild.a: libcppbuild.cc libcppbuild.h task_cc.cc task_cc.h task_ld.cc task_ld.h task.h execute.cc execute.h
g++ -g -std=c++17 libcppbuild.cc -c -o libcppbuild.o
g++ -g -std=c++17 task_cc.cc -c -o task_cc.o
g++ -g -std=c++17 task_ld.cc -c -o task_ld.o
- ar rcs libcppbuild.a libcppbuild.o task_cc.o task_ld.o
+ g++ -g -std=c++17 execute.cc -c -o execute.o
+ ar rcs libcppbuild.a libcppbuild.o task_cc.o task_ld.o execute.o
cppbuild: cppbuild.cc libcppbuild.h libcppbuild.a
g++ -g -std=c++17 cppbuild.cc libcppbuild.a -pthread -o cppbuild