diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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 |