summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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