blob: 24a896ccecbc595ac471c957eb730331af10711a (
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
53
54
55
56
57
|
$NetBSD: patch-aa,v 1.2 2000/04/12 06:38:25 rh Exp $
--- Makefile.orig Wed Mar 15 22:21:08 2000
+++ Makefile Wed Apr 12 08:30:56 2000
@@ -28,7 +28,7 @@
## and porting.
-CC = gcc
+#CC = gcc
ADDLIBS =
SLEEPLIB =
@@ -36,15 +36,15 @@
######## and comment out the others:
## For Solaris 2.x
-PLATFORM = SOLARIS2
-XLIBDIR = /usr/openwin/lib
-XINCLUDEDIR = /usr/openwin/include
-SLEEPLIB = -lposix4 # for nanosleep() only
+#PLATFORM = SOLARIS2
+#XLIBDIR = /usr/openwin/lib
+#XINCLUDEDIR = /usr/openwin/include
+#SLEEPLIB = -lposix4 # for nanosleep() only
## For Linux, FreeBSD
-# PLATFORM = BSD
-# XLIBDIR = /usr/X11R6/lib
-# XINCLUDEDIR = /usr/X11R6/include
+PLATFORM = BSD
+XLIBDIR = ${X11BASE}/lib
+XINCLUDEDIR = ${X11BASE}/include
## For AIX 3.2.5, HP-UX 10.20
# (note for HP-UX it was necessary to do: ln gd_io.h gd16
@@ -120,9 +120,9 @@
-LIBS = $(XLIBS) -lm $(ADDLIBS)
+LIBS = ${LDFLAGS} ${XLIBS} -lm $(ADDLIBS)
-CFLAGS = -D$(PLATFORM) -DPLOTICUS -DDIST $(XCFLAGS) $(FLAGS) $(LOCALE_FLAG)
+CFLAGS+= -D${PLATFORM} -DPLOTICUS -DDIST ${XCFLAGS} ${FLAGS} ${LOCALE_FLAG}
OBJ = custom.o execplfile.o lib.o areadef.o page.o axis.o getdata.o parsedata.o \
drawcommands.o annotate.o tabulate.o lineplot.o bars.o bevelrect.o units.o line.o \
@@ -163,7 +163,7 @@
gd16files:
$(CC) -c grgd.c -DGDPNG -I./gd16 -I./ -o grgd16.o
$(CC) -c devstuff.c -DGDPNG -o devstuff16.o
- $(CC) -c -I./gd16 -I./ $(GD16H) gd16.c gd_io.c gd_io_dp.c gd_io_file.c gd_png.c
+ $(CC) -c -I./gd16 -I./ -I${PREFIX}/include $(GD16H) gd16.c gd_io.c gd_io_dp.c gd_io_file.c gd_png.c
install:
mv pl pltab plpng pltabpng ../bin
|