diff options
author | Tim Segers <tsegers@pm.me> | 2023-01-03 15:01:42 +0100 |
---|---|---|
committer | Tim Segers <tsegers@pm.me> | 2023-01-07 15:24:51 +0100 |
commit | 003e2b52ebc2bb2172e1b6a9e363e14a4a18a722 (patch) | |
tree | f37c5158b77c1286ce342132ac2e83e63b102043 /Makefile | |
parent | 996c83b39184442d16586b3ec2fe7aa6a67be31c (diff) | |
download | opendeco-main.tar.gz |
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -14,6 +14,8 @@ OBJ_BIN = src/opendeco.o src/opendeco-cli.o src/opendeco-conf.o src/deco.o src/o OBJ_LIB = src/deco.o src/output.o src/schedule.o OBJ_TST = test/opendeco_test.o test/deco_test.o src/deco.o minunit/minunit.o +LICENSES = minunit/LICENSE.h toml/LICENSE.h + DEPS = $(shell find -type f -name "*.dep") all: opendeco opendeco_test libopendeco.a @@ -45,15 +47,21 @@ opendeco_test: $(OBJ_TST) libopendeco.a: $(OBJ_LIB) @ar rs libopendeco.a $(OBJ_LIB) -%.o: %.c +%.o: %.c # override the built-in default recipe +%.o: %.c $(LICENSES) @echo " CC $@" @mkdir -p .dep/$(dir $@) @$(CC) $(CFLAGS) -MD -MF .dep/$@.dep -o $@ -c $< +%LICENSE.h: %LICENSE + @echo " XXD $@" + @xxd -i $< > $@ + clean: rm -f $(OBJ_BIN) rm -f $(OBJ_LIB) rm -f $(OBJ_TST) + rm -f $(LICENSES) rm -f opendeco rm -f opendeco_test rm -f libopendeco.a |