Makefile.in 1.1 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
17
18
19
20
21
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

22
DISTFILES = $(SOURCES) Makefile.in getopt.h input.h misc.h output.h parse.h
23
24

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

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

.c.$(OBJEXT):
31
	$(COMPILE) -c $< && $(DEP_PROCESS)
32
33
34
35
36
37
38
39
40


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

check:
	true

install: $(TARGETS)
41
42
43
44
45
46
47
	$(INSTALL) -d $(DESTDIR)$(bindir)
	$(INSTALL_PROGRAM) $(TARGETS) $(DESTDIR)$(bindir)

uninstall:
	for f in $(TARGETS) ; do \
	  rm -f $(DESTDIR)$(bindir)/$$f ; \
	done
48
49

distdir: $(DISTFILES)
50
	cp $^ $(distdir)
51
52

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

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

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