Makefile.in 1.19 KB
Newer Older
1 2 3 4 5 6 7 8 9
@SET_MAKE@

srcdir = @srcdir@
VPATH = @srcdir@

top_srcdir = @top_srcdir@

include ../config.make

10 11
PRE_CPPFLAGS = -I.. -I$(top_srcdir)
PRE_LDFLAGS = -L..
12

13
OPENSSL_LIBFLAGS = @OPENSSL_LIBFLAGS@
14
TARGETS = nettle-benchmark$(EXEEXT) @RSA_EXAMPLES@
15 16
SOURCES = nettle-benchmark.c nettle-openssl.c \
	io.c getopt.c getopt1.c \
17
	rsa-encrypt.c rsa-decrypt.c rsa-keygen.c rsa-sign.c rsa-verify.c
18 19 20 21

TS_ALL = rsa-sign-test rsa-verify-test rsa-encrypt-test

DISTFILES= $(SOURCES) Makefile.in $(TS_ALL) run-tests setup-env teardown-env \
22
	io.h rsa-session.h getopt.h
23 24 25 26

all: $(TARGETS)

.c.$(OBJEXT):
27
	$(COMPILE) -c $<
28
.o$(EXEEXT):
29
	$(LINK) $< io.o -lnettle $(LIBS) -o $@
30

31 32 33
nettle-benchmark: nettle-benchmark.o nettle-openssl.o
	$(LINK) nettle-benchmark.o nettle-openssl.o io.o \
	-lnettle $(LIBS) $(OPENSSL_LIBFLAGS) -o $@
34 35 36 37 38 39 40 41 42 43 44

$(TARGETS) : io.o ../libnettle.a


check: $(TS_ALL)
	LD_LIBRARY_PATH=../.lib srcdir="$(srcdir)" \
	  "$(srcdir)"/run-tests $(TS_ALL)

Makefile: $(srcdir)/Makefile.in ../config.status
	cd .. && $(SHELL) ./config.status examples/$@

45
install uninstall:
46 47 48
	true

distdir: $(DISTFILES)
49
	cp $? $(distdir)
50 51

clean:
52
	-rm -f $(TARGETS) *.o
53 54

distclean: clean
55
	-rm -f Makefile *.d
56

57
@DEP_INCLUDE@ $(SOURCES:.c=.$(OBJEXT).d)