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 /lib/makefile | |
| parent | 85fe3b67a67825dfc5e43959f001b2a7159dc23f (diff) | |
| download | libcsv-7d956c533e9fd7d3bbb9a4a8b7f89f0fe54d4bc3.tar.gz libcsv-7d956c533e9fd7d3bbb9a4a8b7f89f0fe54d4bc3.tar.bz2 libcsv-7d956c533e9fd7d3bbb9a4a8b7f89f0fe54d4bc3.zip | |
first draft
Diffstat (limited to 'lib/makefile')
| -rw-r--r-- | lib/makefile | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/makefile b/lib/makefile index e69de29..5c832ba 100644 --- a/lib/makefile +++ b/lib/makefile | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | include config.mk | ||
| 2 | |||
| 3 | LIBRARY=$(BUILD_DIR)/libcsv.a | ||
| 4 | OBJS=$(BUILD_DIR)/csv.o | ||
| 5 | |||
| 6 | $(LIBRARY): $(OBJS) | ||
| 7 | ar $(ARFLAGS) $@ $(OBJS) | ||
| 8 | |||
| 9 | $(BUILD_DIR)/%.o: src/%.c | $(BUILD_DIR) | ||
| 10 | cc $(CFLAGS) -c $< -o $@ | ||
| 11 | |||
| 12 | $(BUILD_DIR): | ||
| 13 | mkdir -p $@ | ||
| 14 | |||
| 15 | compile_flags.txt: | ||
| 16 | echo "$(CFLAGS)" | tr ' ' '\n' > $@ | ||
| 17 | |||
| 18 | .PHONY: clean | ||
| 19 | clean: | ||
| 20 | rm -f $(LIBRARY) $(OBJS) | ||
