ed2ce48f3a
2) Use $(LDFLAGS) when linking.
43 lines
1.2 KiB
Text
43 lines
1.2 KiB
Text
$NetBSD: patch-aa,v 1.3 2012/02/05 22:53:51 sbd Exp $
|
|
|
|
--- Makefile.orig 2003-06-30 12:45:27.000000000 +0000
|
|
+++ Makefile
|
|
@@ -1,15 +1,15 @@
|
|
# Makefile - makefile for rexima
|
|
|
|
-CC=gcc
|
|
-CFLAGS=-O -Wall
|
|
+#CC=gcc
|
|
+#CFLAGS=-O -Wall
|
|
|
|
# Set BINDIR to directory for binary,
|
|
# MANDIR to directory for man page.
|
|
# Usually it will be simpler to just set PREFIX.
|
|
#
|
|
-PREFIX=/usr/local
|
|
+#PREFIX=/usr/local
|
|
BINDIR=$(PREFIX)/bin
|
|
-MANDIR=$(PREFIX)/man/man1
|
|
+MANDIR=$(PREFIX)/${PKGMANDIR}/man1
|
|
|
|
# You shouldn't need to edit below this line.
|
|
#--------------------------------------------------------
|
|
@@ -17,14 +17,14 @@ MANDIR=$(PREFIX)/man/man1
|
|
all: rexima
|
|
|
|
rexima: rexima.o
|
|
- $(CC) $(CFLAGS) -o rexima rexima.o -lncurses
|
|
+ $(CC) $(CFLAGS) $(LDFLAGS) -o rexima rexima.o -lncurses ${LIBOSSAUDIO}
|
|
|
|
installdirs:
|
|
- /bin/sh ./mkinstalldirs $(BINDIR) $(MANDIR)
|
|
+ /bin/sh ./mkinstalldirs ${DESTDIR}$(BINDIR) ${DESTDIR}$(MANDIR)
|
|
|
|
install: rexima installdirs
|
|
- install -s -m 755 rexima $(BINDIR)
|
|
- install -m 644 rexima.1 $(MANDIR)
|
|
+ ${BSD_INSTALL_PROGRAM} rexima ${DESTDIR}$(BINDIR)
|
|
+ ${BSD_INSTALL_DATA} rexima.1 ${DESTDIR}$(MANDIR)
|
|
|
|
uninstall:
|
|
$(RM) $(BINDIR)/rexima $(MANDIR)/rexima.1
|