ref: master
./Makefile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
.POSIX: .SUFFIXES: OUTDIR=.build include $(OUTDIR)/config.mk include $(OUTDIR)/cppcache seamus: $(seamus_objects) @printf 'CCLD\t$@\n' @$(CC) $(LDFLAGS) -o $@ $(seamus_objects) $(LIBS) .SUFFIXES: .c .o .c.o: @printf 'CC\t$@\n' @touch $(OUTDIR)/cppcache @grep $< $(OUTDIR)/cppcache >/dev/null || \ $(CPP) $(CFLAGS) -MM -MT $@ $< >> $(OUTDIR)/cppcache @$(CC) -c $(CFLAGS) -o $@ $< clean: @rm -f seamus $(seamus_objects) distclean: clean @rm -rf "$(OUTDIR)" install: all mkdir -p \ $(DESTDIR)$(BINDIR) \ $(DESTDIR)$(SHAREDIR)/seamus install -m755 seamus $(DESTDIR)$(BINDIR)/seamus .PHONY: clean distclean install |