From 19195e2bbdcd7a0db8f84732ce54b1c9d07c006c Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 13 Jun 2021 18:24:16 +0200 Subject: Make task an abstract class and make CC and LD versions of it. --- Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 2462d3e..a7b0ee7 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,13 @@ all: libcppbuild.a cppbuild -libcppbuild.a: libcppbuild.cc task.cc libcppbuild.h +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 -c -o task.o - ar rcs libcppbuild.a libcppbuild.o task.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.o libcppbuild.a + rm -f cppbuild libcppbuild.o task_cc.o task_ld.o libcppbuild.a -- cgit v1.2.3