1
0
forked from aniani/gmnisrv
gmnisrv/Makefile

39 lines
687 B
Makefile
Raw Normal View History

2020-09-23 10:21:44 -04:00
.POSIX:
.SUFFIXES:
OUTDIR=.build
include $(OUTDIR)/config.mk
include $(OUTDIR)/cppcache
gmnisrv: $(gmnisrv_objects)
@printf 'CCLD\t$@\n'
@$(CC) $(LDFLAGS) -o $@ $(gmnisrv_objects) $(LIBS)
.SUFFIXES: .c .o .scd .1
.c.o:
@printf 'CC\t$@\n'
@touch $(OUTDIR)/cppcache
@grep $< $(OUTDIR)/cppcache >/dev/null || \
$(CPP) $(CFLAGS) -MM -MT $@ $< >> $(OUTDIR)/cppcache
@$(CC) -c $(CFLAGS) -o $@ $<
.scd.1:
@printf 'SCDOC\t$@\n'
@$(SCDOC) < $< > $@
# TODO: Docs
docs:
@true
clean:
@rm -f gmnisrv $(gmnisrv_objects)
distclean: clean
@rm -rf "$(OUTDIR)"
install: all
mkdir -p $(BINDIR)
2020-09-23 11:19:29 -04:00
install -Dm755 gmnisrv $(DESTDIR)$(BINDIR)/gmnisrv
2020-09-23 10:21:44 -04:00
.PHONY: clean distclean docs install