summaryrefslogtreecommitdiff
path: root/Makefile
blob: b3f91cb4ed0729d72b594dd842c96f1854e4a019 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
all: libcppbuild.a cppbuild

libcppbuild.a: libcppbuild.cc libcppbuild.h task_cc.cc task_cc.h task_ld.cc task_ld.h task.h execute.cc execute.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
	g++ -g -std=c++17  execute.cc -c -o execute.o
	ar rcs libcppbuild.a libcppbuild.o task_cc.o task_ld.o execute.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