diff options
| author | Thomas Schmucker <ts@its1.de> | 2025-04-13 22:43:46 +0200 |
|---|---|---|
| committer | Thomas Schmucker <ts@its1.de> | 2025-04-13 22:43:46 +0200 |
| commit | 7d956c533e9fd7d3bbb9a4a8b7f89f0fe54d4bc3 (patch) | |
| tree | ea1c5bc19dfe6bacad2d377378c460ee5284e74e /tests/makefile | |
| parent | 85fe3b67a67825dfc5e43959f001b2a7159dc23f (diff) | |
| download | libcsv-7d956c533e9fd7d3bbb9a4a8b7f89f0fe54d4bc3.tar.gz libcsv-7d956c533e9fd7d3bbb9a4a8b7f89f0fe54d4bc3.tar.bz2 libcsv-7d956c533e9fd7d3bbb9a4a8b7f89f0fe54d4bc3.zip | |
first draft
Diffstat (limited to 'tests/makefile')
| -rw-r--r-- | tests/makefile | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/makefile b/tests/makefile index e69de29..2300a19 100644 --- a/tests/makefile +++ b/tests/makefile | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | include config.mk | ||
| 2 | |||
| 3 | TEST_RUNNER=$(BUILD_DIR)/tester | ||
| 4 | OBJS=$(BUILD_DIR)/csv-test.o | ||
| 5 | |||
| 6 | $(TEST_RUNNER): $(OBJS) | libcsv | ||
| 7 | cc -o $@ $(LDFLAGS) $(OBJS) | ||
| 8 | |||
| 9 | $(BUILD_DIR)/%.o: src/%.c | $(BUILD_DIR) | ||
| 10 | cc $(CFLAGS) -c $< -o $@ | ||
| 11 | |||
| 12 | $(BUILD_DIR): | ||
| 13 | mkdir -p $@ | ||
| 14 | |||
| 15 | .PHONY: libcsv | ||
| 16 | libcsv: | ||
| 17 | $(MAKE) -C ../lib | ||
| 18 | |||
| 19 | compile_flags.txt: | ||
| 20 | echo "$(CFLAGS)" | tr ' ' '\n' > $@ | ||
| 21 | |||
| 22 | .PHONY: clean | ||
| 23 | clean: | ||
| 24 | rm -f $(TEST_RUNNER) $(OBJS) | ||
