# Standard installation pathnames
# See the file LICENSE for the license
SHELL = @SHELL@
VERSION = @PACKAGE_VERSION@
basesrcdir = $(shell basename `pwd`)
srcdir = @srcdir@
prefix  = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
mandir = @mandir@
datarootdir = @datarootdir@

CC = @CC@
CFLAGS = @CFLAGS@
CPPFLAGS = @CPPFLAGS@ @LIBSSL_CPPFLAGS@ -I../..
LDFLAGS = @LDFLAGS@ @LIBSSL_LDFLAGS@ -L../../.libs
LIBS = @LIBS@ @LIBSSL_SSL_LIBS@ -lldns

# Hmmm gcc 4.6.1 expects $(LIBS) as the last argument

COMPILE         = $(CC) $(CPPFLAGS) $(CFLAGS)
LINK            = $(CC) $(CFLAGS) $(LDFLAGS)

HEADER		= config.h
TESTS		= 12-unit-tests-dnssec

.PHONY:	all clean realclean
%.o:
	$(COMPILE) -c $(srcdir)/$*.c

all:	$(TESTS)

12-unit-tests-dnssec:	12-unit-tests-dnssec.o
		$(LINK) -o $@ $+ $(LIBS)

clean:
	rm -f *.o
	rm -f $(TESTS)
	rm -f lua-rns

realclean: clean
	rm -rf autom4te.cache/
	rm -f config.log config.status aclocal.m4 config.h.in configure Makefile
	rm -f config.h

confclean: clean
	rm -rf config.log config.status config.h Makefile
