source: trunk/base/src/programs/mtree/Makefile.in @ 14467

Last change on this file since 14467 was 14467, checked in by jmpp, 15 years ago

Submitted by: jmpp@

Lets assure all our Makefiles respect a temporary ${DESTDIR} installation.
Also some minor cleanups here and there.

  • Property svn:eol-style set to native
File size: 1.4 KB
Line 
1#       $NetBSD: Makefile.in,v 1.8 2003/03/31 06:15:07 grant Exp $
2
3srcdir = @srcdir@
4VPATH = @srcdir@
5prefix = @prefix@
6exec_prefix = @exec_prefix@
7bindir = @bindir@
8
9PREFIX=         @prefix@
10INSTALL=        @INSTALL@
11
12mandir=         @mandir@
13mandircat8=     ${mandir}/cat8
14
15CANONICAL_HOST = @CANONICAL_HOST@
16
17
18all:    mtree
19
20PROG=   mtree
21MAN=
22SRCS= compare.c crc.c create.c excludes.c misc.c mtree.c spec.c \
23        verify.c getid.c stat_flags.c pack_dev.c vis.c unvis.c \
24        fgetln.c __fts13.c err.c setmode.c setprogname.c
25OBJS= compare.o crc.o create.o excludes.o misc.o mtree.o spec.o \
26        verify.o getid.o stat_flags.o pack_dev.o vis.o unvis.o \
27        fgetln.o __fts13.o err.o setmode.o setprogname.o
28
29CPPFLAGS+=      -I.
30
31CC=             @CC@
32CCLD=           $(CC)
33LIBS=           @LIBS@
34CPPFLAGS=       @CPPFLAGS@
35DEFS=           @DEFS@ -I. -I@srcdir@ -DNO_MD5 -DNO_RMD160 -DNO_SHA1 -DHOST=\"$(CANONICAL_HOST)\"
36CFLAGS=         @CFLAGS@
37LDFLAGS=        @LDFLAGS@
38
39LINK=           $(CCLD) $(CFLAGS) $(LDFLAGS) -o $@
40COMPILE=        $(CC) $(DEFS) $(CPPFLAGS) $(CFLAGS)
41
42all: ${PROG}
43
44${PROG}: digest-types.h ${OBJS}
45        ${LINK} ${OBJS} ${LIBS}
46
47digest-types.h: bits
48        ./bits digest-types.h
49
50bits: bits.o
51        $(LINK) bits.o $(LIBS)
52
53.c.o:
54        $(COMPILE) -c $< -o $@
55
56clean:
57        rm -f ${OBJS} ${PROG} digest-types.h bits bits.o
58
59distclean: clean
60        rm -f Makefile config.h config.status config.log
61
62install:
63        ${INSTALL} ${PROG} ${DESTDIR}${bindir}
64        ${INSTALL} -m 755 -d ${DESTDIR}${mandircat8}
65        ${INSTALL} -m 444 ${PROG}.cat8 ${DESTDIR}${mandircat8}/${PROG}.0
Note: See TracBrowser for help on using the repository browser.