Add fallback rule to explain missing .c file

This commit is contained in:
Stefan `Sec` Zehl 2011-05-21 18:54:02 +02:00
parent 84fb2fa41e
commit afa10ee1f1
1 changed files with 9 additions and 0 deletions

View File

@ -44,7 +44,16 @@ $(LIBFILE): $(OBJS) $(WRAPOBJ)
clean: clean:
rm -f $(OBJS) $(WRAPOBJ) $(WRAPSRC) $(LIBFILE) *.o rm -f $(OBJS) $(WRAPOBJ) $(WRAPSRC) $(LIBFILE) *.o
%.c:
@echo
@echo "You need to create $@ first"
@echo "It should contain a single function void module_filename(void)"
@echo
@exit 1
$(WRAPSRC): $(WRAPSRC):
./mkwrapper $(OBJS) > $@ ./mkwrapper $(OBJS) > $@
.PHONY: $(LIBFILE) .PHONY: $(LIBFILE)
.SUFFIXES: