summaryrefslogtreecommitdiff
path: root/archivers/pax/files/Makefile.in
blob: ded8480216455b5bc03f8bbc9b98dbe12e5f4133 (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
47
48
49
50
51
52
#	$NetBSD: Makefile.in,v 1.3 2003/06/30 11:47:27 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@ -L$(prefix)/lib
LIBS	= @LIBS@ -lnbcompat

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

mandir=		$(prefix)/man
mandircat1=	$(mandir)/cat1
mandirman1=	$(mandir)/man1

PROG=	pax
OBJS=	ar_io.o ar_subs.o buf_subs.o cpio.o file_subs.o ftree.o\
        gen_subs.o getoldopt.o options.o pat_rep.o pax.o sel_subs.o tables.o\
        tar.o tty_subs.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

# most systems we are aiming this at don't have the macros to format
# mandoc pages, so only install the catman versions.
install:
	$(INSTALL) $(PROG) $(PREFIX)/sbin
	ln -f $(PREFIX)/bin/$(PROG) $(PREFIX)/bin/tar
	ln -f $(PREFIX)/bin/$(PROG) $(PREFIX)/bin/cpio
	$(INSTALL) -m 444 $(PROG).cat1 $(mandircat1)/$(PROG).0
	$(INSTALL) -m 444 cpio.cat1 $(mandircat1)/cpio.0
	$(INSTALL) -m 444 tar.cat1 $(mandircat1)/tar.0