getdns/src/Makefile.in

78 lines
1.9 KiB
Makefile
Raw Normal View History

2013-10-07 10:10:06 -05:00
#
# @configure_input@
#
package = @PACKAGE_NAME@
version = @PACKAGE_VERSION@
tarname = @PACKAGE_TARNAME@
distdir = $(tarname)-$(version)
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
srcdir = @srcdir@
VPATH = @srcdir@
CC=gcc
CFLAGS=@CFLAGS@ -Wall -g -fPIC -I$(srcdir)/ -I/usr/local/include -std=c99
LDFLAGS=@LDFLAGS@ -levent_core -lldns -lunbound -lidn
2013-10-07 10:10:06 -05:00
# PROGRAMS=example-simple-answers example-tree example-all-functions example-synchronous
.SUFFIXES: .c .o .a .lo .h
.c.o:
$(CC) $(CFLAGS) -c $< -o $@
default: all
all: libgetdns.so
2013-10-07 10:10:06 -05:00
cd test && $(MAKE) $@
cd example && $(MAKE) $@
libgetdns.so: sync.o context.o list.o dict.o convert.o general.o hostname.o service.o request-internal.o \
2013-10-15 16:28:23 -05:00
validate_dnssec.o util-internal.o getdns_error.o
$(CC) $(CFLAGS) -shared -o $@ $? $(LDFLAGS)
2013-10-07 10:10:06 -05:00
clean:
cd test && $(MAKE) $@
cd example && $(MAKE) $@
2013-10-07 10:10:06 -05:00
rm -f *.o $(PROGRAMS) libgetdns.so
distclean : clean
cd test && $(MAKE) $@
cd example && $(MAKE) $@
rm -f Makefile config.status config.log Doxyfile
2013-10-07 10:10:06 -05:00
rm -Rf autom4te.cache
$(distdir): FORCE
mkdir -p $(distdir)/src
cp configure.ac $(distdir)
cp configure $(distdir)
cp Makefile.in $(distdir)
cp src/Makefile.in $(distdir)/src
distcheck: $(distdir).tar.gz
gzip -cd $(distdir).tar.gz | tar xvf -
cd $(distdir) && ./configure
cd $(distdir) && $(MAKE) all
cd $(distdir) && $(MAKE) check
cd $(distdir) && $(MAKE) DESTDIR=$${PWD}/_inst install
cd $(distdir) && $(MAKE) DESTDIR=$${PWD}/_inst uninstall
@remaining="`find $${PWD}/$(distdir)/_inst -type f | wc -l`"; \
if test "$${remaining}" -ne 0; then
echo "@@@ $${remaining} file(s) remaining in stage directory!"; \
exit 1; \
fi
cd $(distdir) && $(MAKE) clean
rm -rf $(distdir)
@echo "*** Package $(distdir).tar.gz is ready for distribution"
Makefile: Makefile.in ../config.status
cd .. && ./config.status $@
configure.status: configure
cd .. && ./config.status --recheck
.PHONY: clean