Initial release of Maemo 5 port of gnuplot
[gnuplot] / config / makefile.g
1 #
2 # $Id: makefile.g,v 1.6 2004/04/13 17:23:30 broeker Exp $
3 #
4 # GNUPLOT Makefile for GRASS, a geographic information system. 
5 #
6 # To compile, make modifications below (if necessary) then
7 # % gmake4.1
8 # % MAKELINKS
9 #
10 # NOTE: this creates a binary called 'g.gnuplot' and is located in
11 #       $GISBASE/bin.  
12 #       A help file is installed in $(GISBASE)/man/help/g.gnuplot
13 #
14 # GRASS driver written by:
15 # James Darrell McCauley          Department of Ag Engr, Purdue Univ
16 # mccauley@ecn.purdue.edu         West Lafayette, Indiana 47907-1146
17 #
18 # Last modified: 05 Apr 1995
19 #
20 # Modification History:
21 # <15 Jun 1992> First version created with GNUPLOT 3.2
22 # <15 Feb 1993> Modified to work with frames
23 # <16 Feb 1993> Added point types triangle (filled and unfilled), 
24 #               inverted-triangle (filled and unfilled), 
25 #               circle (filled and unfilled), and filled box.
26 #               Graph is no longer erased after g.gnuplot is finished.
27 # <01 Mar 1993> Modified to work with 3.3b9
28 # <26 Jun 1993> Fixed up this file to automatically install the 
29 #               binary and help.
30 # <05 Apr 1995> Re-worked Gmakefile for version 3.6
31 #               Cleaned up grass.trm, adding explicit function declarations,
32 #               so that it compiles cleanly with 'gcc -Wall'
33 # <14 Apr 1995> adapted for new terminal layout, added font selection
34 #
35 #############################################################################
36 #
37 # Change REGULAR_FLAGS to be those determined by 'configure' when
38 # you compiled the plain (non-GRASS) version of gnuplot.
39 #
40 # the following is what I use for Solaris 2.3
41 REGULAR_FLAGS=-DREADLINE=1 -DNOCWDRC=1 -DPROTOTYPES=1 -DHAVE_STRINGIZE=1 \
42         -DX11=1 -DHAVE_UNISTD_H=1 -DHAVE_TERMIOS_H=1 -DSTDC_HEADERS=1 \
43         -DRETSIGTYPE=void -DGAMMA=lgamma -DHAVE_GETCWD=1 -DHAVE_STRNCASECMP=1 \
44         -DXPG3_LOCALE=1 -DHAVE_SYS_SYSTEMINFO_H=1 -DHAVE_SYSINFO=1 \
45         -DHAVE_TCGETATTR=1 -I/opt/x11r5/include -g -O
46 ################### Don't touch anything below this line ###################
47
48 HELPDEST=$(GISBASE)/man/help/g.gnuplot
49
50 # Where to send email about bugs and comments 
51 EMAIL="mccauley@ecn.purdue.edu\\n\tor grassp-list@moon.cecer.army.mil [info.grass.programmer]"
52
53 # Where to ask questions about general usage
54 HELPMAIL="grassu-list@moon.cecer.army.mil\\n\t[info.grass.user] or gnuplot-info@lists.sourceforge.net [comp.graphics.gnuplot]"
55  
56 # This causes grass.trm to be included in term.h
57 GTERMFLAGS = -DGISBASE -I. -I./term
58
59 EXTRA_CFLAGS=$(GTERMFLAGS) $(REGULAR_FLAGS) -DCONTACT=\"$(EMAIL)\" \
60         -DHELPMAIL=\"$(HELPMAIL)\" -DHELPFILE=\"$(HELPDEST)\"
61
62 # List of object files (including version.o)
63 OBJS = alloc.o binary.o bitmap.o command.o contour.o datafile.o dynarray.o \
64         eval.o fit.o graphics.o graph3d.o help.o hidden3d.o history.o \
65         internal.o interpol.o matrix.o misc.o parse.o plot.o plot2d.o \
66         plot3d.o readline.o save.o scanner.o set.o show.o specfun.o \
67         standard.o term.o time.o unset.o util.o util3d.o variable.o version.o
68
69 all: $(BIN_MAIN_CMD)/g.gnuplot $(GISBASE)/man/help/g.gnuplot
70
71 $(BIN_MAIN_CMD)/g.gnuplot: $(OBJS) $(DISPLAYLIB) $(RASTERLIB) $(GISLIB) 
72 #g.gnuplot: $(OBJS) $(DISPLAYLIB) $(RASTERLIB) $(GISLIB) 
73         $(CC) $(LDFLAGS) -o $@ $(OBJS) $(DISPLAYLIB) $(RASTERLIB) $(GISLIB) $(TERMLIB) $(MATHLIB)
74
75 $(GISBASE)/man/help/g.gnuplot:
76         /bin/cp docs/gnuplot.gih $(HELPDEST)
77
78
79 ################################################################
80 # Dependencies
81
82 term.o: term.h term.c 
83
84 $(OBJS): plot.h
85
86 command.o: command.c fit.h
87
88 command.o help.o misc.o: help.h
89
90 command.o graphics.o graph3d.o misc.o plot.o set.o show.o term.o: setshow.h
91
92 fit.o: fit.c fit.h matrix.h plot.h
93
94 matrix.o: matrix.c matrix.h fit.h
95
96 bitmap.o term.o: bitmap.h
97
98 variable.o: variable.c plot.h variable.h
99
100 ################################################################
101 $(RASTERLIB): #
102 $(DISPLAYLIB): #
103 $(GISLIB): #