mirror of https://github.com/getdnsapi/getdns.git
getting rid of Makefile.in - now generated by automake
This commit is contained in:
parent
16ae333802
commit
00e2c74867
|
@ -1,86 +0,0 @@
|
||||||
#
|
|
||||||
# @configure_input@
|
|
||||||
#
|
|
||||||
# TODO: OSX, fix DYLD_LIBRARY_PATH problem
|
|
||||||
|
|
||||||
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=-Wall -g -I./ -I../common -I$(srcdir)/ -std=c99
|
|
||||||
LDFLAGS=-L../common
|
|
||||||
LDLIBS=-lgetdns
|
|
||||||
PROGRAMS=tests_list tests_dict
|
|
||||||
|
|
||||||
.SUFFIXES: .c .o .a .lo .h .can .out .res
|
|
||||||
|
|
||||||
.c.o:
|
|
||||||
$(CC) $(CFLAGS) -c $< -o $@
|
|
||||||
|
|
||||||
.out.res:
|
|
||||||
diff $< $(basename $<).can > $@
|
|
||||||
|
|
||||||
all: tests_list tests_list.res tests_dict tests_dict.res
|
|
||||||
|
|
||||||
tests_list: tests_list.o ../common/libgetdns.so testmessages.o
|
|
||||||
$(CC) $(CFLAGS) $(LDFLAGS) $(LDLIBS) -o $@ $^
|
|
||||||
|
|
||||||
tests_dict: tests_dict.o ../common/libgetdns.so testmessages.o
|
|
||||||
$(CC) $(CFLAGS) $(LDFLAGS) $(LDLIBS) -o $@ $^
|
|
||||||
|
|
||||||
# we want the library that was just built to be used in the tests
|
|
||||||
# NOT one that is installed on the system
|
|
||||||
tests_list.out : tests_list
|
|
||||||
export DYLD_LIBRARY_PATH=../common; ./tests_list > tests_list.out
|
|
||||||
|
|
||||||
tests_dict.out : tests_dict
|
|
||||||
export DYLD_LIBRARY_PATH=../common; ./tests_dict > tests_dict.out
|
|
||||||
|
|
||||||
clean:
|
|
||||||
rm -f *.o *.out *.res $(PROGRAMS)
|
|
||||||
|
|
||||||
distclean : clean
|
|
||||||
rm -f Makefile config.status config.log
|
|
||||||
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: all clean distclean
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue