summaryrefslogtreecommitdiff
path: root/archivers/pax/files/Makefile.in
blob: c04c0acdf0e8c982e7ee597e149a8efd29124f4a (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
53
#	$NetBSD: Makefile.in,v 1.2 2003/06/24 08:06:19 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

install:
	$(INSTALL) $(PROG) $(PREFIX)/sbin

# don't install man pages for now
#	$(INSTALL) -m 444 $(PROG).1 $(mandirman1)
#	$(INSTALL) -m 444 $(PROG).cat1 $(mandircat1)/$(PROG).0
#	$(INSTALL) -m 444 cpio.1 $(mandirman1)
#	$(INSTALL) -m 444 cpio.cat1 $(mandircat1)/cpio.0
#	$(INSTALL) -m 444 tar.1 $(mandirman1)
#	$(INSTALL) -m 444 tar.cat1 $(mandircat1)/tar.0