Merge branch 'upstream'
[debian/pax] / Makefile
index 9ea2e86dcc6a2dac9ba3ef4308f269a6e9c09e91..72f59b1338500ef4798c0e2c33ab635134842d43 100644 (file)
--- a/Makefile
+++ b/Makefile
 PROG=   pax
 SRCS=  ar_io.c ar_subs.c buf_subs.c cache.c cpio.c file_subs.c ftree.c\
        gen_subs.c getoldopt.c options.c pat_rep.c pax.c sel_subs.c tables.c\
-       tar.c tty_subs.c
-MAN=   pax.1 tar.1 cpio.1
-LINKS= ${BINDIR}/pax ${BINDIR}/tar ${BINDIR}/pax ${BINDIR}/cpio
+       tar.c tty_subs.c fgetln.c strmode.c
+OBJS=  $(SRCS:.c=.o)
+MAN=   pax.1
 
-.include <bsd.prog.mk>
+CFLAGS= -Wall -O2 -g\
+       -DNET2_STAT -D_PATH_DEFTAPE=\"/dev/rmt0\" -DDEBIAN -D_GNU_SOURCE
+
+prefix=/usr/local
+
+pax:   $(OBJS)
+       $(CC) $(CFLAGS) $(OBJS) -o $@ $(LIBS)
+
+clean:
+       $(RM) *.o
+
+realclean: clean
+       $(RM) $(PROG)
+
+install:
+       install -d -m 755 $(prefix)/bin $(prefix)/share/man/man1
+       install -s -m 755 $(PROG) $(prefix)/bin
+       install    -m 644 $(MAN)  $(prefix)/share/man/man1