freebsd-ports/archivers/lbrate/files/patch-Makefile
FUJISHIMA Satsuki 8e775bbe3a get rid of libgnugetopt dependency for -CURRENT,
use USE_GETOPT_LONG instead.
respect CC, CFLAGS.
2003-07-14 02:37:44 +00:00

28 lines
605 B
Text

--- Makefile.orig Fri Aug 31 01:03:17 2001
+++ Makefile Sun Jul 6 05:09:19 2003
@@ -1,13 +1,13 @@
# Makefile - makefile for lbrate
-CC=gcc
-CFLAGS=-O2 -Wall
+CC?= gcc
+CFLAGS+=$(CPPFLAGS)
# 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
@@ -19,7 +19,7 @@
all: lbrate
lbrate: $(OBJ)
- $(CC) $(CFLAGS) -o lbrate $(OBJ)
+ $(CC) $(CFLAGS) -o lbrate $(OBJ) $(LDFLAGS)
installdirs:
/bin/sh ./mkinstalldirs $(BINDIR) $(MANDIR)