1 include build/Makefile.incl
7 srcdir := $(srcdir)/$(dir)
8 files := $(addprefix $(srcdir)/,$(files))
15 $(dir)/%.o: $(srcdir)/%.c $(depdir)/%.d
16 $(COMPILE) -c -o $@ $<
18 $(depdir)/%.d: $(srcdir)/%.c
19 @echo Building dependancies for $<
20 @$(INSTALL) -d $(depdir)
21 @$(DEPCOMPILE) -w -MM -MF $@ -MQ $(<:.c=.o) $<
24 $(INSTALL) -d $(DESTDIR)$(rcdir)
25 $(INSTALL) -m 644 $(files) $(DESTDIR)$(rcdir)
28 for i in $(notdir files); do \
29 $(RM) $(DESTDIR)$(rcdir)/$$i; \
31 -rmdir $(DESTDIR)$(rcdir)
38 .PHONY: all install uninstall clean distclean