From 7d956c533e9fd7d3bbb9a4a8b7f89f0fe54d4bc3 Mon Sep 17 00:00:00 2001 From: Thomas Schmucker Date: Sun, 13 Apr 2025 22:43:46 +0200 Subject: first draft --- makefile | 32 ++++++++++---------------------- 1 file changed, 10 insertions(+), 22 deletions(-) (limited to 'makefile') diff --git a/makefile b/makefile index 5b850c7..db36c5c 100644 --- a/makefile +++ b/makefile @@ -1,28 +1,16 @@ -include config.mk +.PHONY: all lib test tests clean -all: csv-test csv-perf seq-read csv-tutorial +all: lib -csv-test: csv-test.c csv.c csv.h - $(CC) $(CFLAGS-TEST) -DNDEBUG -o $@ csv-test.c csv.c - ./$@ +lib tests: + $(MAKE) -C $@ -coverage: csv-test - llvm-profdata merge -sparse default.profraw -o csv-test.profdata - llvm-cov show ./csv-test -instr-profile=csv-test.profdata - -csv-perf: csv-perf.c csv.o csv.h - $(CC) $(CFLAGS) -o $@ csv-perf.c csv.o - -seq-read: seq-read.c - $(CC) $(CFLAGS) -o $@ $< - -csv-tutorial: csv-tutorial.c csv.o csv.h - $(CC) $(CFLAGS) -o $@ csv-tutorial.c csv.o - -csv.o: csv.c csv.h - $(CC) $(CFLAGS) -DNDEBUG -o $@ -c $< +test: tests + build/tester clean: - rm -f csv-test csv-perf seq-read csv.o csv-tutorial + $(MAKE) -C lib clean + $(MAKE) -C tests clean + rm -rf build -.PHONY: all clean coverage +# Testdaten: https://excelbianalytics.com/wp/downloads-18-sample-csv-files-data-sets-for-testing-sales/ -- cgit v1.3