summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2021-06-11 21:22:21 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2021-06-11 21:22:21 +0200
commit6e3070181fadbe47511b52c12af5e1409a9a70b0 (patch)
tree12b7c080c28ecae3fcc344dccbeaa0c5f20dccbb /Makefile
parent799921f0b1f5dcaf8dd2aa2f40adaf8c8490affc (diff)
Refactor at 4'o clock
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index d5beb15..2462d3e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,12 @@
all: libcppbuild.a cppbuild
-libcppbuild.a: libcppbuild.cc
+libcppbuild.a: libcppbuild.cc task.cc libcppbuild.h
g++ -g -std=c++17 libcppbuild.cc -c -o libcppbuild.o
- ar rcs libcppbuild.a libcppbuild.o
+ g++ -g -std=c++17 task.cc -c -o task.o
+ ar rcs libcppbuild.a libcppbuild.o task.o
-cppbuild: cppbuild.cc libcppbuild.a
+cppbuild: cppbuild.cc libcppbuild.h libcppbuild.a
g++ -g -std=c++17 cppbuild.cc libcppbuild.a -pthread -o cppbuild
clean:
- rm -f cppbuild libcppbuild.o libcppbuild.a
+ rm -f cppbuild libcppbuild.o task.o libcppbuild.a