blob: a7b0ee7d37878d333eb15b8a4ab1ceb3752d7878 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
all: libcppbuild.a cppbuild
libcppbuild.a: libcppbuild.cc libcppbuild.h task_cc.cc task_cc.h task_ld.cc task_ld.h task.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
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 task_cc.o task_ld.o libcppbuild.a
|