summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index af29818..507d841 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,11 @@
-all: libcppbuild.a
+all: libcppbuild.a cppbuild
SRC = \
libcppbuild.cc \
task_cc.cc \
task_ld.cc \
task_ar.cc \
+ task_so.cc \
task.cc \
execute.cc \
@@ -18,5 +19,8 @@ CXXFLAGS = -g -O3 -std=c++17 -I.
libcppbuild.a: $(OBJ)
ar rcs $@ $(OBJ)
+cppbuild: cppbuild.cc libcppbuild.a
+ g++ $(CXXFLAGS) -pthread cppbuild.cc libcppbuild.a -o $@
+
clean:
- rm -f libcppbuild.a $(OBJ)
+ rm -f libcppbuild.a $(OBJ) cppbuild