@SET_MAKE@ srcdir = @srcdir@ VPATH = @srcdir@ top_srcdir = @top_srcdir@ include ../config.make INCLUDES = -I.. -I$(top_srcdir) OPENSSL_LIBFLAGS = @OPENSSL_LIBFLAGS@ TARGETS = nettle-benchmark @RSA_EXAMPLES@ SOURCES = nettle-benchmark.c nettle-openssl.c \ io.c getopt.c getopt1.c \ rsa-encrypt.c rsa-decrypt.c rsa-keygen.c TS_ALL = rsa-sign-test rsa-verify-test rsa-encrypt-test DISTFILES= $(SOURCES) Makefile.in $(TS_ALL) run-tests setup-env teardown-env \ io.h rsa-session.h all: $(TARGETS) .c.$(OBJEXT): $(COMPILE) -I.. -c $< .o$(EXEEXT): $(LINK) $^ $(LIBS) -L.. -lnettle -o $@ nettle-benchmark: nettle-benchmark.o nettle-openssl.o ../libnettle.a $(LINK) $^ $(LIBS) -L.. -lnettle $(OPENSSL_LIBFLAGS) -o $@ $(TARGETS) : io.o ../libnettle.a check: $(TS_ALL) LD_LIBRARY_PATH=../.lib srcdir="$(srcdir)" \ "$(srcdir)"/run-tests $(TS_ALL) .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in ../config.status cd .. && $(SHELL) ./config.status examples/$@ ../config.make: $(top_srcdir)/config.make.in ../config.status cd .. && $(SHELL) ./config.status config.make ../config.status: $(top_srcdir)/configure cd .. && $(SHELL) ./config.status --recheck ../configure: $(top_srcdir)/configure.ac $(top_srcdir)/aclocal.m4 cd $(top_srcdir) && $(AUTOCONF) # # FIXME: To we really need all this in all subdirs? # ../config.h: ../stamp-h1 # @cd .. $(MAKE) stamp-h1; # # ../stamp-h1: $(top_srcdir)/config.h.in ../config.status # cd .. && $(MAKE) stamp-h1 # # $(top_srcdir)/config.h.in: $(top_srcdir)/configure.ac # cd $(top_srcdir) && $(AUTOHEADER) # rm -f ../stamp-h1 # touch $@ install: true distdir: $(DISTFILES) cp $^ $(distdir) clean: -rm -f $(TARGETS) *.o *.d distclean: clean -rm -f Makefile -include $(SOURCES:.c=.$(OBJEXT).d)