mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-11 07:22:22 +00:00
672024c9b0
use LOCALBASE instead of PREFIX in CFLAGS & LDFLAGS use PLIST_FILES instead of a seperate file PR: 142798 Submitted by: Sevan Janiyan <venture37 at geeklan.co.uk>
28 lines
837 B
Plaintext
28 lines
837 B
Plaintext
--- Makefile.orig Wed Jun 12 08:19:05 2002
|
|
+++ Makefile Tue Jun 3 03:23:37 2003
|
|
@@ -21,11 +21,10 @@
|
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
#
|
|
|
|
-PREFIX=/usr
|
|
CC=gcc
|
|
#CFLAGS=-Wall -ggdb
|
|
-CFLAGS=-Wall -O2
|
|
-LDFLAGS=-L. -lmime -lpcre #-static
|
|
+CFLAGS=-Wall -O2 -I$(LOCALBASE)/include -DPREFIX=\"${PREFIX}\"
|
|
+LDFLAGS=-L. -lmime -lpcre -L$(LOCALBASE)/lib $(_LDFLAGS) #-static
|
|
|
|
OBJECTS=getline.o parsefile.o pop3vscan.o \
|
|
scanner_basic.o scanner_avpd.o scanner_trophie.o
|
|
@@ -50,8 +49,8 @@
|
|
|
|
dep depend .dep:
|
|
@echo "creating depencies"
|
|
- rm .tmp.dep -f
|
|
- @find -name "*.c" -maxdepth 1 -print0 | xargs -n 1 -0rt $(CC) -M $(CFLAGS) >>.tmp.dep
|
|
+ rm -f .tmp.dep
|
|
+ @find . -name "*.c" -maxdepth 1 -print0 | xargs -n 1 -0t $(CC) -M $(CFLAGS) >>.tmp.dep
|
|
mv .tmp.dep .dep
|
|
|
|
install: pop3vscan
|