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
53
54
55
56
57
58
59
|
--- ../make/common.mak.orig Wed Nov 6 19:13:23 2002
+++ ../make/common.mak Thu Sep 25 16:22:58 2003
@@ -39,11 +39,11 @@
# Locations of common commands:
ifeq ($(PLATFORM), Unix)
AR:=/usr/bin/ar
- CC:=/usr/bin/g++
+ CC:=${CXX}
INSTALL:=/usr/bin/install -c
RANLIB:=/usr/bin/ranlib
RM:=/bin/rm
- SED:=/bin/sed
+ SED:=/usr/bin/sed
SHELL:=/bin/sh
MKDIR:=/bin/mkdir
endif # Unix
@@ -72,14 +72,14 @@
ifeq ($(PLATFORM), Unix)
# Note: Do *not* list standard system #include directories here,
# because some compilers complain about them.
- XINC:=-I/usr/include/X11
- XLIB:=/usr/X11R6/lib
- GLINC:=#-I/usr/include
- GLLIB:=/usr/lib
- GLUTINC:=#-I/usr/include
- GLUTLIB:=/usr/lib
- TIFFINC:=#-I/usr/include
- TIFFLIB:=/usr/lib
+ XINC:=-I${LOCALBASE}/include
+ XLIB:=${LOCALBASE}/lib
+ GLINC:=-I${LOCALBASE}/include
+ GLLIB:=${LOCALBASE}/lib
+ GLUTINC:=-I${LOCALBASE}/include
+ GLUTLIB:=${LOCALBASE}/lib
+ TIFFINC:=-I${LOCALBASE}/include
+ TIFFLIB:=${LOCALBASE}/lib
EXTRALIBS:=
endif # Unix
ifeq ($(PLATFORM), BeOS)
@@ -166,10 +162,7 @@
$(TIFFINC)
OPT:= # Optimization options
ifeq ($(PLATFORM), Unix)
-_OPT=\
- -march=pentiumpro \
- -O -fno-unroll-all-loops \
- $(OPT)
+_OPT= ${CFLAGS}
endif # Unix
ifeq ($(PLATFORM), BeOS)
_OPT=\
@@ -183,7 +176,6 @@
WARN:= # warning options
ifeq ($(PLATFORM), Unix)
_WARN=\
- -Wall \
-W \
$(WARN)
endif # Unix
|