Lines 1-82
Link Here
|
1 |
--- Makefile.orig Wed Dec 11 22:24:51 2002 |
|
|
2 |
+++ Makefile Sat Dec 14 01:30:46 2002 |
3 |
@@ -12,7 +12,7 @@ |
4 |
######## Covered by GPL; see the file ./Copyright for details. |
5 |
|
6 |
# defaults.. |
7 |
-CC = gcc |
8 |
+CC ?= gcc |
9 |
PLATFORM = UNIX |
10 |
RMCOM = rm -f |
11 |
XOBJ = x11.o interact.o |
12 |
@@ -25,14 +25,15 @@ |
13 |
######## Choose one of the following. All others should be commented out. |
14 |
|
15 |
#### For Solaris 2.x uncomment the following.. |
16 |
-XLIBS = -L/usr/openwin/lib -lX11 |
17 |
-XINCLUDEDIR = -I/usr/openwin/include |
18 |
+# XLIBS = -L/usr/openwin/lib -lX11 |
19 |
+# XINCLUDEDIR = -I/usr/openwin/include |
20 |
|
21 |
#### For Linux and FreeBSD uncomment the following.. |
22 |
-# XLIBS = -L/usr/X11R6/lib -lX11 |
23 |
-# XINCLUDEDIR = -I/usr/X11R6/include |
24 |
+XLIBS = -L${X11BASE}/lib -lX11 |
25 |
+XINCLUDEDIR = -I${X11BASE}/include |
26 |
#### For FreeBSD uncomment the following and find GD16H or GD18H below and set to -I/usr/local/include |
27 |
-# ADDLIBS = -L/usr/local/lib |
28 |
+FLAGS = -I${LOCALBASE}/include |
29 |
+ADDLIBS = -L${LOCALBASE}/lib |
30 |
|
31 |
#### For Cygwin uncomment the following.. |
32 |
# PLATFORM = WIN32 |
33 |
@@ -79,7 +80,7 @@ |
34 |
######## Choose ONE of the following. All others should be commented out. |
35 |
|
36 |
#### For pseudo-GIF (only) uncomment the following.. (no libs required) |
37 |
-ploticus: pl |
38 |
+# ploticus: pl |
39 |
|
40 |
#### For PNG (only) uncomment the following.. (you must have libpng and zlib) |
41 |
# ploticus: plpng |
42 |
@@ -104,11 +105,11 @@ |
43 |
#### For JPEG, WBMP, PNG, with FreeType2, using your copy of GD 1.84 or higher, |
44 |
#### uncomment the following.. (you must have gd 1.84+, libpng, zlib, libjpeg, libfreetype) |
45 |
#### (set environment var GDFONTPATH to directory containing .ttf files) |
46 |
-# ploticus: plgd18 |
47 |
-# GD18LIBS = -lgd -lpng -lz -ljpeg -lfreetype |
48 |
-# GD18H = |
49 |
-# GDFREETYPE = -DGDFREETYPE |
50 |
-# ZFLAG = -DWZ |
51 |
+ploticus: plgd18 |
52 |
+GD18LIBS = -lgd -lpng -lz -ljpeg -lfreetype |
53 |
+GD18H = -I${LOCALBASE}/include/gd |
54 |
+GDFREETYPE = -DGDFREETYPE |
55 |
+ZFLAG = -DWZ |
56 |
|
57 |
#### To disable all GD image support (no GIF, PNG, JPEG, etc) uncomment the following.. |
58 |
# ploticus: plnogd |
59 |
@@ -126,11 +127,11 @@ |
60 |
#### To set a hard-coded directory for prefabs files, uncomment & edit the following.. |
61 |
#### If done, users won't be required to have PLOTICUS_PREFABS environment variable defined. |
62 |
#### This option not available for win32 |
63 |
-# PREFABS_DIR = "/usr/lib/ploticus" |
64 |
+PREFABS_DIR = "${PREFIX}/share/ploticus" |
65 |
|
66 |
#### For LOCALE support (non-roman alphabets & collation), uncomment the following.. |
67 |
-# LOCALEOBJ = localef.o |
68 |
-# LOCALE_FLAG = -DLOCALE |
69 |
+LOCALEOBJ = localef.o |
70 |
+LOCALE_FLAG = -DLOCALE |
71 |
|
72 |
#### If you want compressed svg (.svgz), and you selected "GIF only", "GIF & PNG", or "disable GD" above, |
73 |
#### uncomment the following. You need to have zlib. If necessary change -lz to location of zlib. |
74 |
@@ -165,7 +166,7 @@ |
75 |
|
76 |
LIBS = $(XLIBS) -lm $(ADDLIBS) |
77 |
|
78 |
-CFLAGS = -DPLOTICUS -D$(PLATFORM) -DTDH_NOREC $(ZFLAG) $(FLAGS) $(LOCALE_FLAG) \ |
79 |
+CFLAGS += -DPLOTICUS -D$(PLATFORM) -DTDH_NOREC $(ZFLAG) $(FLAGS) $(LOCALE_FLAG) \ |
80 |
$(NOGDFLAG) $(NOXFLAG) $(XINCLUDEDIR) $(NORLIMFLAG) -DPREFABS_DIR=\"$(PREFABS_DIR)\" |
81 |
|
82 |
OBJ = proc_annotate.o proc_areadef.o proc_axis.o proc_bars.o proc_rect.o proc_breakaxis.o \ |