Lines 1-88
Link Here
|
1 |
--- Makefile.orig Sat May 24 15:00:02 2003 |
|
|
2 |
+++ Makefile Sat May 24 15:06:19 2003 |
3 |
@@ -23,7 +23,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 |
@@ -41,7 +41,8 @@ |
13 |
XLIBS = -L/usr/X11R6/lib -lX11 |
14 |
XINCLUDEDIR = -I/usr/X11R6/include |
15 |
#### For FreeBSD uncomment the following and find GD16H or GD18H below and set to -I/usr/local/include |
16 |
-# ADDLIBS = -L/usr/local/lib |
17 |
+ADDLIBS = -L${LOCALBASE}/lib |
18 |
+FLAGS = -I${LOCALBASE}/include |
19 |
|
20 |
#### For Solaris 2.x uncomment the following.. |
21 |
# XLIBS = -L/usr/openwin/lib -lX11 |
22 |
@@ -105,11 +106,11 @@ |
23 |
# ploticus: pl |
24 |
|
25 |
#### For PNG (only) uncomment the following.. (you must have libpng and zlib) |
26 |
-ploticus: plpng |
27 |
-PLPNG = pl |
28 |
-GD16LIBS = -lpng -lz |
29 |
-GD16H = |
30 |
-ZFLAG = -DWZ |
31 |
+#ploticus: plpng |
32 |
+#PLPNG = pl |
33 |
+#GD16LIBS = -lpng -lz |
34 |
+#GD16H = |
35 |
+#ZFLAG = -DWZ |
36 |
|
37 |
#### For both pseudo-GIF & PNG uncomment the following.. (you must have libpng and zlib) |
38 |
# ploticus: pl plpng |
39 |
@@ -121,18 +122,18 @@ |
40 |
#### (you must have gd 1.84+, libpng, zlib, libjpeg) |
41 |
# ploticus: plgd18 |
42 |
# GD18LIBS = -lgd -lpng -lz -ljpeg |
43 |
-# GD18H = |
44 |
-# GDFREETYPE = |
45 |
+# GD18H = -I${LOCALBASE}/include/gd |
46 |
+# GDFREETYPE = -DGDFREETYPE |
47 |
# ZFLAG = -DWZ |
48 |
|
49 |
#### For JPEG, WBMP, PNG, and FreeType2, using your copy of GD 1.84+, uncomment the following.. |
50 |
#### (you must have gd 1.84+, libpng, zlib, libjpeg, libfreetype) |
51 |
#### Before using set environment var GDFONTPATH to directory containing .ttf files |
52 |
-# ploticus: plgd18 |
53 |
-# GD18LIBS = -lgd -lpng -lz -ljpeg -lfreetype |
54 |
-# GD18H = |
55 |
-# GDFREETYPE = -DGDFREETYPE |
56 |
-# ZFLAG = -DWZ |
57 |
+ploticus: plgd18 |
58 |
+GD18LIBS = -lgd -lpng -lz -ljpeg -lfreetype |
59 |
+GD18H = -I${LOCALBASE}/include/gd |
60 |
+GDFREETYPE = -DGDFREETYPE |
61 |
+ZFLAG = -DWZ |
62 |
|
63 |
#### To disable all GD image support (no PNG, JPEG, GIF, etc) uncomment the following.. |
64 |
# ploticus: plnogd |
65 |
@@ -149,11 +150,11 @@ |
66 |
#### To set a hard-coded directory for prefabs files, uncomment & edit the following.. |
67 |
#### If done, users won't be required to have PLOTICUS_PREFABS environment variable defined. |
68 |
#### This option not available for win32 |
69 |
-# PREFABS_DIR = "/usr/lib/ploticus" |
70 |
+PREFABS_DIR = "${PREFIX}/share/ploticus" |
71 |
|
72 |
#### For LOCALE support (non-roman alphabets & collation), uncomment the following.. |
73 |
-# LOCALEOBJ = localef.o |
74 |
-# LOCALE_FLAG = -DLOCALE |
75 |
+LOCALEOBJ = localef.o |
76 |
+LOCALE_FLAG = -DLOCALE |
77 |
|
78 |
#### SVG output is always available by default. |
79 |
#### If you want compressed SVG (.svgz), and you selected "GIF only", "GIF & PNG", or "disable GD" above, |
80 |
@@ -197,7 +198,7 @@ |
81 |
|
82 |
LIBS = $(XLIBS) -lm $(ADDLIBS) |
83 |
|
84 |
-CFLAGS = -DPLOTICUS -D$(PLATFORM) -DTDH_NOREC $(ZFLAG) $(FLAGS) $(LOCALE_FLAG) \ |
85 |
+CFLAGS += -DPLOTICUS -D$(PLATFORM) -DTDH_NOREC $(ZFLAG) $(FLAGS) $(LOCALE_FLAG) \ |
86 |
$(NOGDFLAG) $(NOXFLAG) $(NOPSFLAG) $(NOSVGFLAG) $(NOSWFFLAG) $(XINCLUDEDIR) \ |
87 |
$(MINGH) $(NORLIMFLAG) -DPREFABS_DIR=\"$(PREFABS_DIR)\" |
88 |
|