diff options
-rw-r--r-- | Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -45,13 +45,16 @@ opendeco_test: $(OBJ_TST) @$(CC) -o opendeco_test $(OBJ_TST) $(LDFLAGS) libopendeco.a: $(OBJ_LIB) + @echo " AR $@" @ar rs libopendeco.a $(OBJ_LIB) -%.o: %.c # override the built-in default recipe -%.o: %.c $(LICENSES) +%.o: %.c @echo " CC $@" @mkdir -p .dep/$(dir $@) - @$(CC) $(CFLAGS) -MD -MF .dep/$@.dep -o $@ -c $< + @$(CC) $(CFLAGS) -MMD -MF .dep/$@.dep -o $@ -c $< + +# generate LICENSES.h files for --licenses +src/opendeco-cli.o: $(LICENSES) %LICENSE.h: %LICENSE @echo " XXD $@" |