summaryrefslogtreecommitdiff
path: root/pkgtools/mtree/files/Makefile.in
blob: ebcaad9f33f76cdc37876ac5085b98e5e6491920 (plain)
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
#	$NetBSD: Makefile.in,v 1.9 2012/03/08 01:11:21 joerg Exp $

srcdir=		@srcdir@

prefix=		@prefix@
exec_prefix=	@exec_prefix@
sbindir=	@sbindir@
mandir=		@mandir@

man8dir=	$(mandir)/man8

CC=		@CC@
CCLD=		$(CC)
LIBS=		@LIBS@
CPPFLAGS=	@CPPFLAGS@ -I. -I$(srcdir)
DEFS=		@DEFS@
CFLAGS=		@CFLAGS@
LDFLAGS=	@LDFLAGS@

INSTALL=	@INSTALL@

PROG=		mtree

OBJS=	compare.o crc.o create.o excludes.o misc.o mtree.o spec.o verify.o \
	getid.o stat_flags.o pack_dev.o

all: $(PROG)

.c.o:
	$(CC) $(DEFS) $(CPPFLAGS) $(CFLAGS) -c $<

$(PROG): $(OBJS)
	$(CCLD) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)

clean:
	rm -f $(OBJS) $(PROG)

distclean: clean
	rm -f Makefile config.cache config.h config.status
	rm -f configure.lineno config.log

install:
	$(INSTALL) -m 755 -d ${DESTDIR}$(sbindir)
	$(INSTALL) -m 755 -d ${DESTDIR}$(man8dir)
	$(INSTALL) $(PROG) ${DESTDIR}$(sbindir)
	$(INSTALL) -m 444 $(PROG).8 ${DESTDIR}$(man8dir)/$(PROG).8