simple/dns/GNUmakefile

41 lines
533 B
Makefile
Raw Normal View History

2001-07-03 22:00:49 +02:00
include GNUmakevars
2008-04-28 09:47:50 +02:00
all: gethostbyname fqdn query
2002-08-14 20:44:23 +02:00
install: \
$(BINDIR)/axfr \
$(BINDIR)/fqdn \
2008-04-28 09:47:50 +02:00
$(BINDIR)/gethostbyname \
$(BINDIR)/minnet \
2008-04-28 09:47:50 +02:00
$(BINDIR)/query \
2002-08-14 20:44:23 +02:00
2001-07-03 22:00:49 +02:00
clean:
rm -f *.bak *.o core gethostbyname
distclean: clean
rm -f *.d
cfg/%:
$(MAKE) -C cfg all
gethostbyname: gethostbyname.o hstrerror.o
2002-08-14 20:44:23 +02:00
fqdn: fqdn.o hstrerror.o
hstrerror.o: cfg/have_hstrerror.h
2002-08-14 20:44:23 +02:00
axfr:
%: %.pl
cp $< $@
chmod +x $@
GNUmakevars: GNUmakevars.sh
sh ./$^ > $@
GNUmakerules: GNUmakerules.sh
sh ./$^ > $@
include GNUmakerules
2001-07-03 22:00:49 +02:00
-include *.d