1 # Standard installation pathnames
2 # See the file LICENSE for the license
4 VERSION = @PACKAGE_VERSION@
5 basesrcdir = $(shell basename `pwd`)
8 exec_prefix = @exec_prefix@
11 includedir = @includedir@
12 datarootdir = @datarootdir@
19 INSTALL = $(srcdir)/install-sh -c
20 INSTALL_PROGRAM = $(INSTALL)
24 COMPILE = $(CC) $(CPPFLAGS) $(CFLAGS) -I. -I$(srcdir)
25 LINK = $(CC) $(CFLAGS) $(LDFLAGS)
28 LINTFLAGS=+quiet -weak -warnposix -unrecog -Din_addr_t=uint32_t -Du_int=unsigned -Du_char=uint8_t -preproc -Drlimit=rlimit64 -D__gnuc_va_list=va_list
29 #-Dglob64=glob -Dglobfree64=globfree
30 # compat with openssl linux edition.
31 LINTFLAGS+="-DBN_ULONG=unsigned long" -Dkrb5_int32=int "-Dkrb5_ui_4=unsigned int" -DPQ_64BIT=uint64_t -DRC4_INT=unsigned -fixedformalarray -D"ENGINE=unsigned" -D"RSA=unsigned" -D"DSA=unsigned" -D"EVP_PKEY=unsigned" -D"EVP_MD=unsigned" -D"SSL=unsigned" -D"SSL_CTX=unsigned" -D"X509=unsigned" -D"RC4_KEY=unsigned" -D"EVP_MD_CTX=unsigned"
33 ifeq "$(shell uname)" "NetBSD"
34 LINTFLAGS+="-D__RENAME(x)=" -D_NETINET_IN_H_
37 LINTFLAGS+="-Dsigset_t=long"
39 LINTFLAGS+="-D__uint16_t=uint16_t"
40 LINTFLAGS+=-D__signed__=signed "-D__packed=" "-D__aligned(x)="
42 LINTFLAGS+="-D__u16=struct __u16" "-D__u32=struct __u32" "-D__u64=struct __u64"
44 OBJ=drill.o drill_util.o error.o root.o work.o chasetrace.o dnssec.o securetrace.o
47 HEADER=drill.h $(srcdir)/drill_util.h
49 .PHONY: all clean realclean docclean doc release tags install all-static
58 $(LINK) -o drill $(OBJ) $(LIBS)
61 $(LINK) -o drill $(OBJ) $(LIBS_STC)
79 distclean: clean docclean
82 realclean: clean docclean
100 $(INSTALL) -d $(DESTDIR)$(bindir)
101 $(INSTALL) drill $(DESTDIR)$(bindir)/drill
102 $(INSTALL) -m 644 drill.1 $(DESTDIR)$(mandir)/man1/drill.1
106 rm -f -- $(DESTDIR)$(bindir)/drill
107 rm -f -- $(DESTDIR)$(mandir)/man1/drill.1
108 rmdir -p $(DESTDIR)$(bindir)
109 rmdir -p $(DESTDIR)$(mandir)/man1
113 @for i in $(SRC) ; do \
114 $(LINT) $(LINTFLAGS) $(CPPFLAGS) -I$(srcdir) $(srcdir)/$$i ; \
115 if [ $$? -ne 0 ] ; then exit 1 ; fi ; \
119 rm -rf config.log config.status config.h Makefile drill.1