diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2021-06-13 18:24:16 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2021-06-13 18:24:16 +0200 |
commit | 19195e2bbdcd7a0db8f84732ce54b1c9d07c006c (patch) | |
tree | b974b648ebacd645fbee000575268326f3b7bfbc /Makefile | |
parent | f6f5f31067cdee2d7003d8209361ac9e5b6975c5 (diff) |
Make task an abstract class and make CC and LD versions of it.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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 |