50 lines
1.4 KiB
Text
50 lines
1.4 KiB
Text
$NetBSD: patch-aa,v 1.6 2002/12/05 16:45:21 is Exp $
|
|
--- Makefile.orig Thu Feb 16 22:39:41 1995
|
|
+++ Makefile Thu Dec 5 16:57:10 2002
|
|
@@ -1,6 +1,7 @@
|
|
-CFLAGS=$(OPT) $(DEFINES)
|
|
-OPT=-O
|
|
-
|
|
+CFLAGS+=$(OPT) $(DEFINES)
|
|
+#OPT=-O
|
|
+DEFINES=-Dunix
|
|
+LIBS=${LDFLAGS}
|
|
|
|
#Uncomment the following line if your system does not have strchr()
|
|
#DEFINES=-Dstrchr=index -Dstrrchr=rindex
|
|
@@ -24,11 +25,11 @@
|
|
|
|
|
|
PACKOBJS = unixpk.o encode.o codes.o magic.o unixos.o string.o \
|
|
- xmalloc.o md5c.o getopt.o
|
|
+ xmalloc.o md5c.o
|
|
UNPACKOBJS = unixunpk.o decode.o uudecode.o codes.o unixos.o string.o \
|
|
- part.o xmalloc.o md5c.o getopt.o
|
|
+ part.o xmalloc.o md5c.o
|
|
|
|
-DESTDIR=/usr/local
|
|
+DESTDIR=${PREFIX}
|
|
|
|
all: mpack munpack
|
|
|
|
@@ -39,13 +40,13 @@
|
|
$(CC) $(CFLAGS) -o munpack $(UNPACKOBJS) $(LIBS)
|
|
|
|
install: all
|
|
- -mkdir $(DESTDIR)/bin
|
|
- -mkdir $(DESTDIR)/man
|
|
- -mkdir $(DESTDIR)/man/man1
|
|
- install -s -m 755 mpack $(DESTDIR)/bin
|
|
- install -s -m 755 munpack $(DESTDIR)/bin
|
|
- install -m 644 unixpk.man $(DESTDIR)/man/man1/mpack.1
|
|
- install -m 644 unixunpk.man $(DESTDIR)/man/man1/munpack.1
|
|
+ -${BSD_INSTALL_PROGRAM_DIR} $(DESTDIR)/bin
|
|
+ -${BSD_INSTALL_MAN_DIR} $(DESTDIR)/man
|
|
+ -${BSD_INSTALL_MAN_DIR} $(DESTDIR)/man/man1
|
|
+ ${BSD_INSTALL_PROGRAM} mpack $(DESTDIR)/bin
|
|
+ ${BSD_INSTALL_PROGRAM} munpack $(DESTDIR)/bin
|
|
+ ${BSD_INSTALL_MAN} unixpk.man $(DESTDIR)/man/man1/mpack.1
|
|
+ ${BSD_INSTALL_MAN} unixunpk.man $(DESTDIR)/man/man1/munpack.1
|
|
|
|
clean:
|
|
rm -f *.o mpack munpack
|