"Fossies" - the Fresh Open Source Software Archive

Member "rbldnsd-0.998/Makefile.in" (29 Jun 2013, 6386 Bytes) of package /linux/misc/dns/rbldnsd-0.998.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Make source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "Makefile.in": 0.997_vs_0.998.

    1 #! /usr/bin/make -rf
    2 #
    3 # Makefile for rbldnsd
    4 
    5 SHELL = /bin/sh
    6 CC = @CC@
    7 CFLAGS = @CFLAGS@
    8 LD = @LD@
    9 LDFLAGS = @LDFLAGS@
   10 AR = @AR@
   11 ARFLAGS = @ARFLAGS@
   12 RANLIB = @RANLIB@
   13 AWK = @AWK@
   14 PYTHON = python
   15 GNUTAR = tar
   16 
   17 # Disable statistic counters
   18 #DEFS = -DNO_STATS
   19 # Disable printing zone (re)load time using utimes()
   20 #DEFS = -DNO_TIMES
   21 # Disable memory info logging (mallinfo)
   22 #DEFS = -DNO_MEMINFO
   23 # If you don't want/have IPv6 support (transport only)
   24 #DEFS = -DNO_IPv6
   25 # To turn on recognision of ipv6-mapped ipv4 queries (silly idea?)
   26 #DEFS = -DRECOGNIZE_IP4IN6
   27 # To use select() instead of poll()
   28 #DEFS = -DNO_POLL
   29 # To disable master-format (named) dump (-d option)
   30 #DEFS = -DNO_MASTER_DUMP
   31 # To disable usage of zlib (also LIBS - for zlib, -lz is needed)
   32 #DEFS = -DNO_ZLIB
   33 # To disable asserts
   34 #DEFS = -DNDEBUG
   35 #
   36 
   37 DEFS =
   38 LIBS = @LIBS@
   39 
   40 NAME = rbldnsd
   41 
   42 # taken from debian/changelog, by ./configure
   43 VERSION = @VERSION@
   44 VERSION_DATE = @VERSION_DATE@
   45 
   46 LIBDNS_SRCS = dns_ptodn.c dns_dntop.c dns_dntol.c dns_dnlen.c dns_dnlabels.c \
   47  dns_dnequ.c dns_dnreverse.c dns_findname.c
   48 LIBDNS_GSRC = dns_nametab.c
   49 LIBDNS_HDRS = dns.h
   50 LIBDNS_OBJS = $(LIBDNS_SRCS:.c=.o) $(LIBDNS_GSRC:.c=.o)
   51 
   52 LIBIP_SRCS = ip4parse.c ip4atos.c ip4mask.c ip6addr.c
   53 LIBIP_GSRC =
   54 LIBIP_HDRS = ip4addr.h ip6addr.h
   55 LIBIP_OBJS = $(LIBIP_SRCS:.c=.o)
   56 
   57 LIB_SRCS = $(LIBDNS_SRCS) $(LIBIP_SRCS) mempool.c istream.c btrie.c
   58 LIB_HDRS = $(LIBDNS_HDRS) $(LIBIP_HDRS) mempool.h istream.h btrie.h
   59 LIB_OBJS = $(LIBDNS_OBJS) $(LIBIP_OBJS) mempool.o istream.o btrie.o
   60 LIB_GSRC = $(LIBDNS_GSRC) $(LIBIP_GSRC)
   61 
   62 RBLDNSD_SRCS = rbldnsd.c rbldnsd_zones.c rbldnsd_packet.c \
   63   rbldnsd_ip4set.c rbldnsd_ip4tset.c rbldnsd_ip4trie.c \
   64   rbldnsd_ip6tset.c rbldnsd_ip6trie.c rbldnsd_dnset.c \
   65   rbldnsd_generic.c rbldnsd_combined.c rbldnsd_acl.c \
   66   rbldnsd_util.c
   67 RBLDNSD_HDRS = rbldnsd.h
   68 RBLDNSD_OBJS = $(RBLDNSD_SRCS:.c=.o) lib$(NAME).a
   69 
   70 MISC = configure configure.lib \
   71   $(NAME).8 qsort.c Makefile.in dns_maketab.awk $(NAME).spec \
   72   NEWS TODO CHANGES-0.81 README.user \
   73   rbldnsd.py
   74 TESTS = tests.py $(wildcard test_*.py)
   75 DEBFILES  = debian/changelog debian/copyright debian/rules debian/control \
   76   debian/postinst debian/$(NAME).default debian/$(NAME).init
   77 
   78 SRCS = $(LIB_SRCS) $(RBLDNSD_SRCS)
   79 GSRC = $(LIB_GSRC)
   80 HDRS = $(LIB_HDRS) $(RBLDNSD_HDRS)
   81 DISTFILES = $(SRCS) $(HDRS) $(MISC) $(TESTS)
   82 
   83 SELF_TESTS = btrie.test
   84 
   85 all: $(NAME)
   86 
   87 $(NAME): $(RBLDNSD_OBJS)
   88     $(LD) $(LDFLAGS) -o $@ $(RBLDNSD_OBJS) $(LIBS)
   89 
   90 lib$(NAME).a: $(LIB_OBJS)
   91     -rm -f $@
   92     $(AR) $(ARFLAGS) $@ $(LIB_OBJS)
   93     $(RANLIB) $@
   94 
   95 .SUFFIXES: .c .o
   96 
   97 COMPILE = $(CC) $(CFLAGS) $(DEFS) -c $<
   98 
   99 .c.o:
  100     $(COMPILE)
  101 
  102 dns_nametab.c: dns.h dns_maketab.awk
  103     $(AWK) -f dns_maketab.awk dns.h > $@.tmp
  104     mv -f $@.tmp $@
  105 
  106 rbldnsd.o: rbldnsd.c NEWS
  107     @echo
  108     @echo \ $(NAME) VERSION="\"$(VERSION) ($(VERSION_DATE))\""
  109     @echo
  110     $(COMPILE) -DVERSION="\"$(VERSION) ($(VERSION_DATE))\""
  111 
  112 clean:
  113     -rm -f $(RBLDNSD_OBJS) $(LIB_OBJS) lib$(NAME).a $(GSRC) config.log
  114     -rm -f $(SELF_TESTS)
  115 
  116 distclean: clean
  117     -rm -f $(NAME) config.h Makefile config.status *.py[co]
  118 
  119 spec:
  120     @sed "s/^Version:.*/Version: $(VERSION)/" $(NAME).spec \
  121       > $(NAME).spec.tmp
  122     @set -e; \
  123     if cmp $(NAME).spec $(NAME).spec.tmp ; then \
  124       rm -f $(NAME).spec.tmp; \
  125     else \
  126       echo "Updating $(NAME).spec ($(VERSION))" ; \
  127       mv -f $(NAME).spec.tmp $(NAME).spec ; \
  128     fi
  129 
  130 dist: $(NAME)-$(VERSION).tar.gz
  131 $(NAME)-$(VERSION).tar.gz: $(DISTFILES)
  132     $(GNUTAR) -czf $@ --transform='s|^|$(NAME)-$(VERSION)/|' \
  133         $(DISTFILES) $(DEBFILES)
  134 
  135 depend dep deps: $(SRCS) $(GSRC)
  136     @echo Generating deps for:
  137     @echo \ $(SRCS) $(GSRC)
  138     @sed '/^# depend/q' Makefile.in > Makefile.tmp
  139     @$(CC) $(CFLAGS) -MM $(SRCS) $(GSRC) | \
  140       sed 's/^\(btrie\).o:/\1.o \1.test:/' >> Makefile.tmp
  141     @set -e; \
  142     if cmp Makefile.tmp Makefile.in ; then \
  143       echo Makefile.in unchanged; \
  144       rm -f Makefile.tmp; \
  145     else \
  146       echo Updating Makfile.in; \
  147       mv -f Makefile.tmp Makefile.in ; \
  148     fi
  149 
  150 config.h Makefile: configure configure.lib Makefile.in NEWS
  151     ./configure
  152     @echo
  153     @echo Please rerun make >&2
  154     @exit 1
  155 
  156 # tests
  157 .PHONY: check check-python-tests check-selftests
  158 
  159 
  160 check: check-selftests check-python-tests
  161 
  162 check-selftests: $(SELF_TESTS)
  163     @set -e; for t in $(SELF_TESTS); do \
  164       echo =============================================================; \
  165       echo Running $$t; \
  166       ./$$t; \
  167     done
  168 
  169 check-python-tests: $(NAME)
  170     @echo =============================================================
  171     @echo Running tests.py
  172     @$(PYTHON) tests.py
  173 
  174 .SUFFIXES: .test
  175 
  176 .c.test:
  177     $(CC) $(CFLAGS) $(DEFS) -DTEST -o $@ $<
  178 
  179 
  180 # depend
  181 dns_ptodn.o: dns_ptodn.c dns.h
  182 dns_dntop.o: dns_dntop.c dns.h
  183 dns_dntol.o: dns_dntol.c dns.h
  184 dns_dnlen.o: dns_dnlen.c dns.h
  185 dns_dnlabels.o: dns_dnlabels.c dns.h
  186 dns_dnequ.o: dns_dnequ.c dns.h
  187 dns_dnreverse.o: dns_dnreverse.c dns.h
  188 dns_findname.o: dns_findname.c dns.h
  189 ip4parse.o: ip4parse.c ip4addr.h config.h
  190 ip4atos.o: ip4atos.c ip4addr.h config.h
  191 ip4mask.o: ip4mask.c ip4addr.h config.h
  192 ip6addr.o: ip6addr.c ip6addr.h
  193 mempool.o: mempool.c mempool.h
  194 istream.o: istream.c config.h istream.h
  195 btrie.o btrie.test: btrie.c btrie.h config.h mempool.h
  196 rbldnsd.o: rbldnsd.c rbldnsd.h config.h ip4addr.h ip6addr.h dns.h \
  197  mempool.h
  198 rbldnsd_zones.o: rbldnsd_zones.c rbldnsd.h config.h ip4addr.h ip6addr.h \
  199  dns.h mempool.h istream.h
  200 rbldnsd_packet.o: rbldnsd_packet.c rbldnsd.h config.h ip4addr.h ip6addr.h \
  201  dns.h mempool.h
  202 rbldnsd_ip4set.o: rbldnsd_ip4set.c rbldnsd.h config.h ip4addr.h ip6addr.h \
  203  dns.h mempool.h qsort.c
  204 rbldnsd_ip4tset.o: rbldnsd_ip4tset.c rbldnsd.h config.h ip4addr.h \
  205  ip6addr.h dns.h mempool.h qsort.c
  206 rbldnsd_ip4trie.o: rbldnsd_ip4trie.c rbldnsd.h config.h ip4addr.h \
  207  ip6addr.h dns.h mempool.h btrie.h
  208 rbldnsd_ip6tset.o: rbldnsd_ip6tset.c rbldnsd.h config.h ip4addr.h \
  209  ip6addr.h dns.h mempool.h qsort.c
  210 rbldnsd_ip6trie.o: rbldnsd_ip6trie.c rbldnsd.h config.h ip4addr.h \
  211  ip6addr.h dns.h mempool.h btrie.h
  212 rbldnsd_dnset.o: rbldnsd_dnset.c rbldnsd.h config.h ip4addr.h ip6addr.h \
  213  dns.h mempool.h qsort.c
  214 rbldnsd_generic.o: rbldnsd_generic.c rbldnsd.h config.h ip4addr.h \
  215  ip6addr.h dns.h mempool.h qsort.c
  216 rbldnsd_combined.o: rbldnsd_combined.c rbldnsd.h config.h ip4addr.h \
  217  ip6addr.h dns.h mempool.h
  218 rbldnsd_acl.o: rbldnsd_acl.c rbldnsd.h config.h ip4addr.h ip6addr.h dns.h \
  219  mempool.h btrie.h
  220 rbldnsd_util.o: rbldnsd_util.c rbldnsd.h config.h ip4addr.h ip6addr.h \
  221  dns.h mempool.h
  222 dns_nametab.o: dns_nametab.c dns.h