ossp-pkg/adns/Makefile.in
##
## Makefile for ADNS inside OSSP
## Copyright (c) 1999 Ralf S. Engelschall, All Rights Reserved.
##
SHELL = /bin/sh
CC = @CC@
CFLAGS = @CFLAGS@ -I.
LDFLAGS = @LDFLAGS@ -L.
LIBS = @LIBS@
RM = rm -f
SHTOOL = ./shtool
LIBTOOL = ./libtool
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
libdir = @libdir@
includedir = @includedir@
mandir = @mandir@
datadir = @datadir@
LIB=libadns.la
LIB_OBJS=\
adns_check.lo \
adns_event.lo \
adns_general.lo \
adns_parse.lo \
adns_poll.lo \
adns_query.lo \
adns_reply.lo \
adns_setup.lo \
adns_transmit.lo \
adns_types.lo \
adns_tvarith.lo
TST=adns_test
TST_OBJS=adns_test.o
.SUFFIXES:
.SUFFIXES: .c .o .lo
.c.o:
$(CC) -c $(CFLAGS) $<
.c.lo:
$(LIBTOOL) --mode=compile --quiet $(CC) -c $(CFLAGS) $<
all: $(LIB) $(TST)
$(LIB): $(LIB_OBJS)
$(LIBTOOL) --mode=link --quiet $(CC) $(LDFLAGS) -o $(LIB) $(LIB_OBJS) \
-rpath $(libdir) -version-info `$(SHTOOL) version -l txt -d libtool VERSION`
$(TST): $(TST_OBJS) $(LIB)
$(LIBTOOL) --mode=link --quiet $(CC) $(LDFLAGS) -o $(TST) $(TST_OBJS) $(LIB)
check:
@echo "Run adns_test manually"
install:
$(SHTOOL) mkdir -f -p -m 755 $(bindir)
$(SHTOOL) mkdir -f -p -m 755 $(includedir)
$(SHTOOL) mkdir -f -p -m 755 $(libdir)
$(SHTOOL) install -c -m 755 adns-config $(bindir)/adns-config
$(SHTOOL) install -c -m 644 adns.h $(includedir)/adns.h
@$(LIBTOOL) --mode=install $(SHTOOL) install -c -m 644 libadns.la $(libdir)/libadns.la
clean:
$(RM) -r .libs
$(RM) *.la *.lo *.o
$(RM) $(LIB) $(LIB_OBJS)
$(RM) $(TST) $(TST_OBJS)
distclean: clean
$(RM) adns-config
$(RM) adns_config.h
$(RM) config.log config.cache config.status
$(RM) libtool
$(RM) Makefile
dist: distclean
@$(SHTOOL) fixperm -v .; \
V=`$(SHTOOL) version -l txt -d short VERSION`; \
$(SHTOOL) tarball -o ossp-adns-$${V}.tar.gz -d ossp-adns-$${V} -u ossp -g adns \
-e 'CVS,\.cvsignore,\.[ao],^\.' -c 'gzip --best' .
update-tools:
@$(RM) shtool ltmain.sh ltconfig config.guess config.sub
@$(MAKE) $(MFLAGS) shtool ltmain.sh ltconfig config.guess config.sub
shtool:
@echo "creating: shtool"; \
shtoolize -q -o shtool echo version mkdir install fixperm tarball
ltmain.sh:
@F=`libtoolize -n -c -f | grep 'cp.*ltmain.sh' |\
sed -e 's;[^/]*;;' -e 's; .*;;'`; \
echo "creating: ltmain.sh"; cat $$F |\
sed -e 's:/bin/sh; then:/bin/sh || test ".`echo $$nonopt | grep shtool`" != .;then:' \
-e 's:exec \$$SHELL \$$0 --finish:exit 0 #:' >ltmain.sh
ltconfig:
@F=`libtoolize -n -c -f | grep 'cp.*ltconfig' | sed -e 's;[^/]*;;' -e 's; .*;;'`; \
echo "creating: ltconfig"; cat $$F >ltconfig
config.guess:
@F=`libtoolize -n -c -f | grep 'cp.*config.guess' | sed -e 's;[^/]*;;' -e 's; .*;;'`; \
echo "creating: config.guess"; cat $$F >config.guess
config.sub:
@F=`libtoolize -n -c -f | grep 'cp.*config.sub' | sed -e 's;[^/]*;;' -e 's; .*;;'`; \
echo "creating: config.sub"; cat $$F >config.sub