Makefile.in 1.52 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
@SET_MAKE@

srcdir = @srcdir@
VPATH = @srcdir@

top_srcdir = @top_srcdir@

include ../config.make

TARGETS = sexp-conv nettle-lfib-stream

all: $(TARGETS)

sexp_conv_SOURCES = sexp-conv.c input.c output.c parse.c \
	getopt.c getopt1.c misc.c

SOURCES = $(sexp_conv_SOURCES) nettle-lfib-stream.c

DISTFILES = $(SOURCES) Makefile.in

sexp-conv: $(sexp_conv_SOURCES:.c=.$(OBJEXT)) ../libnettle.a
	$(LINK) $^ $(LIBS) -L.. -lnettle -o $@

nettle-lfib-stream: nettle-lfib-stream.$(OBJEXT) ../libnettle.a
	$(LINK) $^ $(LIBS) -L.. -lnettle -o $@

.c.$(OBJEXT):
	$(COMPILE) -I.. -c $< && $(DEP_PROCESS)


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

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

check:
	true

install: $(TARGETS)
	$(INSTALL) -d $(bindir)
	$(INSTALL_PROGRAM) $(TARGETS) $(bindir)

distdir: $(DISTFILES)
	cp $(DISTFILES) $(distdir)

clean:
	rm -f $(TARGETS) *.o *.d

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