first bits of a dynamc lib

This commit is contained in:
Dustin J. Mitchell 2022-01-22 22:48:40 +00:00
parent 8576e7ffa7
commit 33f5f056b1
13 changed files with 6942 additions and 1 deletions

19
binding-tests/Makefile Normal file
View file

@ -0,0 +1,19 @@
CXX=g++
INC=-I ../lib
LIB=-L ../target/debug
RPATH=-Wl,-rpath,../target/debug
TESTS = uuid.cpp
.PHONY: all test
all: test
test: doctest
@./doctest --no-version --no-intro
%.o: %.cpp ../lib/taskchampion.h
$(CXX) $(INC) -c $< -o $@
doctest: doctest.o $(subst .cpp,.o,$(TESTS))
$(CXX) $(LIB) $(RPATH) $< $(subst .cpp,.o,$(TESTS)) -ltaskchampion -o $@