aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 00461f7..0ff054e 100644
--- a/Makefile
+++ b/Makefile
@@ -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 $@"