mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-01 01:17:02 +00:00
46 lines
1.3 KiB
Plaintext
46 lines
1.3 KiB
Plaintext
--- Makefile.orig 2003-01-12 21:45:12.000000000 +0100
|
|
+++ Makefile 2014-04-04 23:35:46.000000000 +0200
|
|
@@ -5,9 +5,11 @@
|
|
|
|
# Paths
|
|
|
|
-INSTALL = /usr/ucb/install
|
|
-EBIN = /usr/local/sbin
|
|
-MAN = /usr/local/man/man
|
|
+INSTALL? = install
|
|
+EBIN = ${PREFIX}/sbin
|
|
+MAN = ${PREFIX}/man/man
|
|
+ETC_DIR = ${PREFIX}/etc
|
|
+DEFS = ${DEFS}
|
|
|
|
# OS-Dependant settings
|
|
|
|
@@ -33,22 +35,19 @@
|
|
# -DCIDR_KEY # keys in CIDR format
|
|
# -DTERM_KD # keys and data nul-terminated
|
|
|
|
-DEFS = -DTI_RPC -DFCNTL_LOCK -DSYSINFO
|
|
-
|
|
# Compiler flags
|
|
-CC = cc
|
|
+CC? = cc
|
|
RANLIB = :
|
|
-CFLAGS = $(DEFS) -g -I/usr/local/src/db/db-4.1.25/build_unix
|
|
+CFLAGS+= $(DEFS) -g -I${PREFIX}/include -DDBFILE=\"$(ETC_DIR)/dracd.db\" -DALFILE=\"$(ETC_DIR)/dracd.allow\"
|
|
#CFLAGS = $(DEFS) -g -I/usr/local/src/db/db-3.1.17/build_unix
|
|
#CFLAGS = $(DEFS) -g -I/usr/local/src/db/db-2.4.14/Unix
|
|
#CFLAGS = $(DEFS) -g -I/usr/local/src/db/db.1.85/PORT/sunos.5.2/include
|
|
-LDLIBS = -L/usr/local/src/db/db-4.1.25/build_unix -lnsl -ldb-4.1
|
|
+LDLIBS =
|
|
#LDLIBS = -L/usr/local/src/db/db-3.1.17/build_unix -lnsl -ldb
|
|
#LDLIBS = -L/usr/local/src/db/db-2.4.14/Unix -lnsl -ldb
|
|
#LDLIBS = -L/usr/local/src/db/db.1.85/PORT/sunos.5.2 -lnsl -ldb
|
|
-TSTLIBS = -L. -ldrac -lnsl
|
|
-RPCGENFLAGS =
|
|
-#RPCGENFLAGS = -C
|
|
+TSTLIBS = -L. -ldrac
|
|
+RPCGENFLAGS = -C -I
|
|
|
|
# Man sections
|
|
MANLIB = 3
|