Makefile.in 1.14 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
14
15
16
OPENSSL_LIBFLAGS = @OPENSSL_LIBFLAGS@
TARGETS = nettle-benchmark @RSA_EXAMPLES@
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) $^ -lnettle $(LIBS) -o $@
30
31

nettle-benchmark: nettle-benchmark.o nettle-openssl.o ../libnettle.a
32
	$(LINK) $^ -lnettle $(LIBS) $(OPENSSL_LIBFLAGS) -o $@
33
34
35
36
37
38
39
40
41
42
43

$(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/$@

44
install uninstall:
45
46
47
	true

distdir: $(DISTFILES)
48
	cp $^ $(distdir)
49
50

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

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

56
include $(SOURCES:.c=.$(OBJEXT).d)