summaryrefslogtreecommitdiff
path: root/pkgtools/mtree/files/Makefile.in
blob: e6d8e90110c75e342425f481d39bb7f0ce56d12b (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
#	$NetBSD: Makefile.in,v 1.2 2003/04/01 03:48:52 grant Exp $

srcdir	= @srcdir@
prefix	= @prefix@
VPATH	= @srcdir@
SHELL	= /bin/sh

CC	= @CC@
CCLD	= $(CC)
CFLAGS	= -I$(srcdir) -I. -I$(prefix)/include/libnbcompat @INCLUDES@ @CFLAGS@
CPPFLAGS= @CPPFLAGS@
DEFS	= @DEFS@
INSTALL	= @INSTALL@
LDFLAGS	= @LDFLAGS@
LIBS	= @LIBS@ -lnbcompat

LINK=	$(CCLD) $(CFLAGS) $(LDFLAGS) -o $@
COMPILE=$(CC) $(DEFS) $(CPPFLAGS) $(CFLAGS)

mandir=		$(prefix)/man
mandircat8=	$(mandir)/cat8

PROG=	mtree
OBJS=	compare.o crc.o create.o excludes.o mtree.o verify.o

all: $(PROG)

$(PROG): $(OBJS)
	$(LINK) $(OBJS) $(LIBS)

.c.o:
	$(COMPILE) -c $< -o $@

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

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

install:
	$(INSTALL) $(PROG) $(PREFIX)/sbin
	$(INSTALL) -m 444 $(PROG).cat8 $(mandircat8)/$(PROG).0