blob: 6fe995b92732b9eab88db2dc61e5cbbb713d3260 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
--- Makefile.orig Sun Jul 18 15:00:26 2004
+++ Makefile Fri Jul 30 16:34:23 2004
@@ -43,12 +43,24 @@
include Makefile.bsd
else
+ifndef X11BASE
+ X11BASE=/usr/X11R6
+endif
+
+ifndef LOCALBASE
+ LOCALBASE=/usr/local
+endif
+
+ifndef PREFIX
+ PREFIX=$(X11BASE)
+endif
+
ROOT =
-prefix = /usr/local
+prefix = $(PREFIX)
exec_prefix = ${prefix}
bindir = $(ROOT)${exec_prefix}/bin
mandir = $(ROOT)${prefix}/man/man1
-resdir = $(ROOT)/usr/X11R6/lib/X11
+resdir = $(ROOT)$(X11BASE)/lib/X11
# if you have perl set the path here, else just leave it alone
PERL = /usr/bin/perl
@@ -104,10 +116,10 @@
# The database directory can be either in the user's $HOME (or relative to any
# other env variable) or at a global place like /var/spool (world-writable)
# -> uncomment 2 lines below to put the databases in the user's home
-#USER_DBDIR = .nxtvdb
-#DEFS += -DEPG_DB_ENV=\"HOME\" -DEPG_DB_DIR=\"$(USER_DBDIR)\"
+USER_DBDIR = .nxtvdb
+DEFS += -DEPG_DB_ENV=\"HOME\" -DEPG_DB_DIR=\"$(USER_DBDIR)\"
ifndef USER_DBDIR
-SYS_DBDIR = /usr/tmp/nxtvdb
+SYS_DBDIR = /var/tmp/nxtvdb
DEFS += -DEPG_DB_DIR=\"$(SYS_DBDIR)\"
INST_DB_DIR = $(ROOT)$(SYS_DBDIR)
INST_DB_PERM = 0777
@@ -121,7 +133,7 @@
CFLAGS += $(WARN) $(INCS) $(DEFS)
#LDLIBS += -pg
-BUILD_DIR = build-$(shell uname -m | sed -e 's/i.86/i386/' -e 's/ppc/powerpc/')
+BUILD_DIR ?= build-$(shell uname -m | sed -e 's/i.86/i386/' -e 's/ppc/powerpc/')
INCS += -I$(BUILD_DIR)
# end Linux specific part
|