Annotation of OpenXM_contrib/gnuplot/makefile.amg, Revision 1.1.1.3
1.1 maekawa 1: # Makefile for SAS/C 6.1 or better on the Amiga
2: #
1.1.1.3 ! ohara 3: # $Id: makefile.amg,v 1.8.2.3 2002/01/26 18:55:01 lhecking Exp $
1.1 maekawa 4: #
1.1.1.2 maekawa 5: # Makefile for use with SAS/C 6.50 or newer
6: # on AmigaOS 2.0 and above
7: #
8: # last modification date: 19990204
9: #
10:
11: #
12: # ***************** Begin of Configuration section ***************************
1.1 maekawa 13: #
14:
1.1.1.2 maekawa 15: # Comment out the definition lines to disable the according features
16: # Substitute the path names for the actual path where includes/libs reside
17:
18: # GD (GIF) device driver
19: # requires GD library (not part of gnuplot)
20: #GD_DEF = DEF=HAVE_LIBGD
21: #GD_INCLUDE = IDIR=gd1.3
22: #GD_LIB = gd1.3/gd.lib
23:
24: # PNG device driver
25: # requires PNG and Z libraries (not part of gnuplot)
26: #PNG_DEF = def=HAVE_LIBPNG
27: #PNG_INCLUDE = IDIR=libpng-1.0.2
28: #PNG_LIB = libpng-1.0.2/png.lib
29: #Z_INCLUDE = IDIR=zlib-1.1.3
30: #Z_LIB = zlib-1.1.3/z.lib
31:
1.1 maekawa 32: CC = sc
33:
1.1.1.2 maekawa 34: # cpu type
35: # valid values are:
36: # ANY (default; same as 68000) 68010 68020 68030 68040 68060 (new in 6.57)
37: CPU = CPU=ANY
38:
39: # Floating point math type
40: # valid values are NOMATH (default) STANDARD FFP 68881 (same as 68882) IEEE
41: # Compared to the old version of this makefile, the link commands have
42: # been changed so that the MATH option also selects the proper math
43: # library to link with
44: MATH = MATH=IEEE
45:
46: # Optimiser flags
1.1 maekawa 47: OFLAGS = opt
48:
1.1.1.2 maekawa 49: # Defines; format is def=SYMBOL[=value]
50: DEFS = def=AMIGA_SC_6_1 def=ANSI_C def=HAVE_SYS_STAT_H def=HAVE_STRNICMP def=HAVE_GETCWD def=PIPES def=GP_INLINE=__inline $(GD_DEF) $(PNG_DEF)
1.1 maekawa 51:
1.1.1.2 maekawa 52: # Other options; if you have SAS/C 6.57 or newer, you may wish to disable
53: # warning 317
54: COPTS = ign=304+306 #noerrhigh #errrexx
55:
56: # Debug options
57: DEBUG = # Will be dbg=sf when called with smake -f makefile.amg debug
58: LNDBG = # Will be addsym when called with smake -f makefile.amg debug
59:
60: # The directories where gnuplot and gnuplot.gih go, respectively
1.1 maekawa 61: DEST = C:
62: HELPDEST = S:
63:
1.1.1.2 maekawa 64: #
65: # ****************** End of Configuration section ****************************
66: # ********** No changes should be necessary beyond this point! ***************
67: #
68:
69: #
70: # Miscellaneous setup
71: #
72:
73: # Merge compiler flags
74: CFLAGS = $(COPTS) $(CPU) $(MATH) $(OFLAGS) $(DEFS) $(DEBUG) DATA=f
75:
76: # NOTE: I have disabled the compilation rule for .oo files as described
77: # below, because when linking with sc (as opposed to slink), all object
78: # files not ending in .o must be prefied with the objname option!
79: #
1.1 maekawa 80: # To simplify the handling of files that have grown so large that they
81: # must be compiled with the code=far option, the rules below have been
82: # set up. Now, if a file grows large, you only have to change its
83: # extension from .o to .oo, and the file will be compiled correctly.
84: # This must be done in the OBJS-variable below and in the corresponding
85: # dependency-rule near the end of the file.
86:
1.1.1.2 maekawa 87: all: gnuplot demo/bf_test
1.1 maekawa 88:
89: # Normal compilation rule
90: .c.o:
91: $(CC) $(CFLAGS) objname=$@ $<
92:
93: # Compilation rule for large files
1.1.1.2 maekawa 94: #.c.oo:
95: # $(CC) $(CFLAGS) code=f objname=$@ $<
96:
97: graphics.o: graphics.c plot.h setshow.h
1.1 maekawa 98: $(CC) $(CFLAGS) code=f objname=$@ $<
99:
1.1.1.2 maekawa 100: set.o: set.c plot.h setshow.h
101: $(CC) $(CFLAGS) code=f objname=$@ $<
102:
103: term.o: term.c term.h plot.h setshow.h bitmap.h $(CSOURCE5) $(CSOURCE6) $(CSOURCE7)
104: $(CC) $(CFLAGS) idir=term code=f $(GD_INCLUDE) $(PNG_INCLUDE) $(Z_INCLUDE) objname=$@ $<
105:
1.1 maekawa 106: OBJS = alloc.o amiga.o binary.o bitmap.o command.o contour.o datafile.o \
1.1.1.2 maekawa 107: eval.o fit.o graph3d.o graphics.o help.o hidden3d.o internal.o \
1.1 maekawa 108: interpol.o matrix.o misc.o parse.o plot.o plot2d.o plot3d.o scanner.o \
1.1.1.2 maekawa 109: set.o show.o specfun.o standard.o stdfn.o term.o time.o util.o \
1.1 maekawa 110: util3d.o version.o
111:
112: CSOURCE1 = alloc.c bf_test.c binary.c bitmap.c command.c set.c show.c
113: CSOURCE2 = help.c graphics.c graph3d.o internal.c
114: CSOURCE3 = misc.c eval.c parse.c plot.c plot2d.c plot3d.c scanner.c \
115: standard.c stdfn.c
116: CSOURCE4 = bitmap.c term.c util.c util3d.c version.c interpol.c fit.c matrix.c
1.1.1.2 maekawa 117: CSOURCE5 = term/aed.trm term/ai.trm term/amiga.trm term/apollo.trm \
118: term/atariaes.trm term/atarivdi.trm term/cgi.trm term/cgm.trm \
119: term/compact.c term/corel.trm term/debug.trm term/driver.h \
120: term/djsvga.trm term/dumb.trm term/dxf.trm term/dxy.trm term/eepic.trm \
1.1.1.3 ! ohara 121: term/emf.trm term/emxvga.trm term/epslatex.trm term/epson.trm \
! 122: term/excl.trm term/fg.trm term/fig.trm term/ggi.trm \
1.1.1.2 maekawa 123: term/gif.trm term/gnugraph.trm
124: CSOURCE6 = term/gpic.trm term/gpr.trm term/grass.trm term/hp26.trm \
125: term/hp2648.trm term/hp500c.trm term/hpgl.trm term/hpljii.trm \
126: term/hppj.trm term/imagen.trm term/impcodes.h term/iris4d.trm \
127: term/kyo.trm term/latex.trm term/linux.trm term/mac.trm \
128: term/metafont.trm term/mgr.trm term/mif.trm term/multitos.trm \
1.1.1.3 ! ohara 129: term/next.trm term/object.h term/pbm.trm term/pdf.trm term/pc.trm
1.1.1.2 maekawa 130: CSOURCE7 = term/pm.trm term/png.trm term/post.trm term/pslatex.trm \
131: term/pstricks.trm term/qms.trm term/regis.trm term/rgip.trm \
1.1.1.3 ! ohara 132: term/sun.trm term/svg.trm term/t410x.trm term/table.trm term/tek.trm \
1.1.1.2 maekawa 133: term/texdraw.trm term/tgif.trm term/tkcanvas.trm term/tpic.trm \
134: term/unixpc.trm term/unixplot.trm term/v384.trm term/vws.trm \
135: term/win.trm term/x11.trm term/xlib.trm
1.1 maekawa 136: CSOURCE8 = contour.c specfun.c amiga.c
137: CORETERM = $(CSOURCE5) $(CSOURCE6) $(CSOURCE7)
138:
1.1.1.2 maekawa 139: #gnuplot: $(OBJS)
140: # slink from lib:c.o $(OBJS) to gnuplot\
141: # lib $(GD_LIB) $(PNG_LIB) $(Z_LIB) lib:scmieee.lib lib:scnb.lib $(LNDBG) verbose
1.1 maekawa 142:
143: gnuplot: $(OBJS)
1.1.1.2 maekawa 144: $(CC) <WITH <
145: $(CFLAGS)
146: LINK TO $@
147: FROM $(OBJS) $(PNG_LIB) $(Z_LIB) $(GD_LIB) $(LNDBG)
148: <
149:
150: #demo/bf_test: bf_test.o binary.o alloc.o
151: # slink from lib:c.o bf_test.o binary.o alloc.o to demo/bf_test\
152: # lib lib:scmieee.lib lib:scnb.lib
153: # @echo "*N*NRun bf_test in demo subdirectory to make binary demo files*N"
1.1 maekawa 154:
155: demo/bf_test: bf_test.o binary.o alloc.o
1.1.1.2 maekawa 156: $(CC) $(CFLAGS) LINK TO $@ bf_test.o binary.o alloc.o
1.1 maekawa 157: @echo "*N*NRun bf_test in demo subdirectory to make binary demo files*N"
158:
159: docs: docs/gnuplot.doc docs/doc2gih docs/doc2tex docs/doc2ms docs/checkdoc
160: docs/doc2gih <docs/gnuplot.doc >docs/gnuplot.gih
161:
162: docs/doc2gih: docs/doc2gih.c docs/termdoc.c
1.1.1.2 maekawa 163: $(CC) $(CFLAGS) idir= LINK TO docs/doc2gih FROM docs/doc2gih.c docs/termdoc.c
164:
165: docs/doc2html: docs/doc2html.c docs/allterm.h docs/termdoc.c
166: $(CC) $(CFLAGS) def=ALL_TERM_DOC idir= LINK TO docs/doc2html FROM docs/doc2html.c docs/termdoc.c
1.1 maekawa 167:
168: docs/doc2tex: docs/doc2tex.c docs/allterm.h docs/termdoc.c
1.1.1.2 maekawa 169: $(CC) $(CFLAGS) def=ALL_TERM_DOC idir= LINK TO docs/doc2tex FROM docs/doc2tex.c docs/termdoc.c
1.1 maekawa 170:
171: docs/doc2ms: docs/doc2ms.c docs/allterm.h docs/termdoc.c
1.1.1.2 maekawa 172: $(CC) $(CFLAGS) def=ALL_TERM_DOC idir= LINK TO docs/doc2ms FROM docs/doc2ms.c docs/termdoc.c
1.1 maekawa 173:
174: docs/checkdoc: docs/checkdoc.c docs/allterm.h docs/termdoc.c
1.1.1.2 maekawa 175: $(CC) $(CFLAGS) def=ALL_TERM_DOC idir= LINK TO docs/checkdoc FROM docs/checkdoc.c docs/termdoc.c
1.1 maekawa 176:
177: docs/allterm.h: $(CORETERM)
178: join term/\#?.trm as docs/allterm.h
179:
1.1.1.2 maekawa 180: clean:
181: @-delete $(OBJS) bf_test.o quiet
182: @-delete docs/\#?.o docs/\#?.lnk quiet
183:
184: veryclean: clean
185: @-delete demo/binary[1-3] fitdemo/fit.log quiet
186: @-delete bf_test demo/fit.log gnuplot docs/gnuplot.gih quiet
187: @-delete docs/doc2gih docs/doc2tex docs/doc2ms docs/checkdoc quiet
188:
189: install: gnuplot docs/gnuplot.gih
190: copy docs/gnuplot.gih $(HELPDEST)
191: copy gnuplot $(DEST)
192:
193: debug:
194: smake -f makefile.amg DEBUG=dbg=sf LNDBG=addsym OFLAGS= all
1.1 maekawa 195:
1.1.1.2 maekawa 196: #
197: # Dependencies; do not edit!
198: #
1.1 maekawa 199: alloc.o: alloc.c plot.h
200: amiga.o: amiga.c
201: bf_test.o: bf_test.c
202: binary.o: binary.c plot.h
203: bitmap.o: bitmap.c bitmap.h plot.h
204: command.o: command.c plot.h setshow.h help.h
205: contour.o: contour.c plot.h
206: datafile.o: datafile.c plot.h fnproto.h binary.h setshow.h
207: eval.o: eval.c plot.h
208: fit.o: fit.c fit.h matrix.h plot.h
209: graph3d.o: graph3d.c plot.h setshow.h
210: help.o: help.c plot.h help.h
211: hidden3d.o: hidden3d.c plot.h setshow.h
212: internal.o: internal.c plot.h
213: interpol.o: interpol.c plot.h setshow.h
214: matrix.o: matrix.c matrix.h fit.h
215: misc.o: misc.c plot.h setshow.h help.h
216: parse.o: parse.c plot.h help.h
217: plot.o: plot.c plot.h setshow.h
218: plot2d.o: plot2d.c plot.h setshow.h fit.h binary.h help.h
219: plot3d.o: plot3d.c plot.h setshow.h binary.h help.h
220: scanner.o: scanner.c plot.h
221: show.o: show.c plot.h setshow.h
222: specfun.o: specfun.c plot.h
223: standard.o: standard.c plot.h
224: stdfn.o: stdfn.c stdfn.h
225: time.o: time.c plot.h setshow.h
226: util.o: util.c plot.h
227: util3d.o: util3d.c plot.h setshow.h
228: version.o: version.c
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>