]>
Commit | Line | Data |
---|---|---|
1 | # $Id: Makefile.in,v 1.10 2003/05/08 21:11:39 stelian Exp $ | |
2 | ||
3 | top_srcdir= @top_srcdir@ | |
4 | srcdir= @srcdir@ | |
5 | top_builddir= .. | |
6 | ||
7 | @MCONFIG@ | |
8 | ||
9 | ALL_CFLAGS= @CPPFLAGS@ @CFLAGS@ @CCOPTS@ -pipe $(OPT) $(GINC) $(INC) $(DEFS) | |
10 | ALL_LDFLAGS= @LDFLAGS@ @LDOPTS@ @STATIC@ | |
11 | LIBS= $(GLIBS) | |
12 | DEPLIBS= ../compat/lib/libcompat.a | |
13 | ||
14 | PROG= rmt | |
15 | SRCS= rmt.c | |
16 | OBJS= rmt.o | |
17 | MAN8= rmt.8 | |
18 | ||
19 | .c.o: | |
20 | $(CC) -c $(ALL_CFLAGS) $< -o $@ | |
21 | ||
22 | all:: $(PROG) @ERMT@ $(MAN8) | |
23 | ||
24 | $(PROG): $(OBJS) $(DEPLIBS) | |
25 | $(LD) $(ALL_LDFLAGS) -o $(PROG) $(OBJS) $(LIBS) | |
26 | ||
27 | ermt: ermt.o cipher.o $(DEPLIBS) | |
28 | $(LD) $(ALL_LDFLAGS) -o ermt ermt.o cipher.o $(LIBS) @CRYPTO@ | |
29 | ||
30 | ermt.o: rmt.c | |
31 | $(CC) -c $(ALL_CFLAGS) -DERMT -o ermt.o rmt.c | |
32 | ||
33 | $(MAN8): rmt.8.in | |
34 | sed -e "s|__DATE__|$(DATE)|g" \ | |
35 | -e "s|__VERSION__|$(VERSION)|g" $< > $@ | |
36 | ||
37 | install:: all | |
38 | $(INSTALL) -d $(SBINDIR) $(MANDIR) | |
39 | $(INSTALLBIN) $(PROG) $(SBINDIR) | |
40 | $(INSTALLMAN) $(srcdir)/$(MAN8) $(MANDIR) | |
41 | ||
42 | clean:: | |
43 | rm -f $(PROG) @ERMT@ \#* *.s *.o *.a *~ core rmt.8 | |
44 | ||
45 | distclean:: clean | |
46 | rm -f Makefile Makefile.old .depend | |
47 | ||
48 | # +++ Dependency line eater +++ | |
49 | # | |
50 | # Makefile dependencies follow. This must be the last section in | |
51 | # the Makefile.in file | |
52 | # | |
53 |