simple/dns/GNUmakefile

43 lines
608 B
Makefile

include GNUmakevars
all: gethostbyaddr gethostbyname fqdn query check
install: \
$(BINDIR)/axfr \
$(BINDIR)/fqdn \
$(BINDIR)/gethostbyaddr \
$(BINDIR)/gethostbyname \
$(BINDIR)/minnet \
$(BINDIR)/query \
$(BINDIR)/dns-inc-serial \
clean:
rm -f *.bak *.o core gethostbyname
distclean: clean
rm -f *.d
cfg/%:
$(MAKE) -C cfg all
gethostbyname: gethostbyname.o hstrerror.o
fqdn: fqdn.o hstrerror.o
hstrerror.o: cfg/have_hstrerror.h
axfr:
%: %.pl
cp $< $@
chmod +x $@
GNUmakevars: GNUmakevars.sh
sh ./$^ > $@
GNUmakerules: GNUmakerules.sh
sh ./$^ > $@
include GNUmakerules
-include *.d