[BACK]Return to makefile.amg CVS log [TXT][DIR] Up to [local] / OpenXM_contrib / gnuplot

Annotation of OpenXM_contrib/gnuplot/makefile.amg, Revision 1.1.1.2

1.1       maekawa     1: # Makefile for SAS/C 6.1 or better on the Amiga
                      2: #
1.1.1.2 ! maekawa     3: # $Id: makefile.amg,v 1.8.2.1 1999/08/19 14:39:00 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 \
        !           121:        term/emxvga.trm term/epson.trm term/excl.trm term/fg.trm term/fig.trm \
        !           122:        term/gif.trm term/gnugraph.trm
        !           123: CSOURCE6 = term/gpic.trm term/gpr.trm term/grass.trm term/hp26.trm \
        !           124:        term/hp2648.trm term/hp500c.trm term/hpgl.trm term/hpljii.trm \
        !           125:        term/hppj.trm term/imagen.trm term/impcodes.h term/iris4d.trm \
        !           126:        term/kyo.trm term/latex.trm term/linux.trm term/mac.trm \
        !           127:        term/metafont.trm term/mgr.trm term/mif.trm term/multitos.trm \
        !           128:        term/next.trm term/object.h term/pbm.trm term/pc.trm
        !           129: CSOURCE7 = term/pm.trm term/png.trm term/post.trm term/pslatex.trm \
        !           130:        term/pstricks.trm term/qms.trm term/regis.trm term/rgip.trm \
        !           131:        term/sun.trm term/t410x.trm term/table.trm term/tek.trm \
        !           132:        term/texdraw.trm term/tgif.trm term/tkcanvas.trm term/tpic.trm \
        !           133:        term/unixpc.trm term/unixplot.trm term/v384.trm term/vws.trm \
        !           134:        term/win.trm term/x11.trm term/xlib.trm
1.1       maekawa   135: CSOURCE8 = contour.c specfun.c amiga.c
                    136: CORETERM = $(CSOURCE5) $(CSOURCE6) $(CSOURCE7)
                    137:
1.1.1.2 ! maekawa   138: #gnuplot: $(OBJS)
        !           139: #      slink from lib:c.o $(OBJS) to gnuplot\
        !           140: #      lib $(GD_LIB) $(PNG_LIB) $(Z_LIB) lib:scmieee.lib lib:scnb.lib $(LNDBG) verbose
1.1       maekawa   141:
                    142: gnuplot: $(OBJS)
1.1.1.2 ! maekawa   143:        $(CC) <WITH <
        !           144: $(CFLAGS)
        !           145: LINK TO $@
        !           146: FROM $(OBJS) $(PNG_LIB) $(Z_LIB) $(GD_LIB) $(LNDBG)
        !           147: <
        !           148:
        !           149: #demo/bf_test: bf_test.o binary.o alloc.o
        !           150: #      slink from lib:c.o bf_test.o binary.o alloc.o to demo/bf_test\
        !           151: #      lib lib:scmieee.lib lib:scnb.lib
        !           152: #      @echo "*N*NRun bf_test in demo subdirectory to make binary demo files*N"
1.1       maekawa   153:
                    154: demo/bf_test: bf_test.o binary.o alloc.o
1.1.1.2 ! maekawa   155:        $(CC) $(CFLAGS) LINK TO $@ bf_test.o binary.o alloc.o
1.1       maekawa   156:        @echo "*N*NRun bf_test in demo subdirectory to make binary demo files*N"
                    157:
                    158: docs: docs/gnuplot.doc docs/doc2gih docs/doc2tex docs/doc2ms docs/checkdoc
                    159:        docs/doc2gih <docs/gnuplot.doc >docs/gnuplot.gih
                    160:
                    161: docs/doc2gih: docs/doc2gih.c docs/termdoc.c
1.1.1.2 ! maekawa   162:        $(CC) $(CFLAGS) idir= LINK TO docs/doc2gih FROM docs/doc2gih.c docs/termdoc.c
        !           163:
        !           164: docs/doc2html: docs/doc2html.c docs/allterm.h docs/termdoc.c
        !           165:        $(CC) $(CFLAGS) def=ALL_TERM_DOC idir= LINK TO docs/doc2html FROM docs/doc2html.c docs/termdoc.c
1.1       maekawa   166:
                    167: docs/doc2tex: docs/doc2tex.c docs/allterm.h docs/termdoc.c
1.1.1.2 ! maekawa   168:        $(CC) $(CFLAGS) def=ALL_TERM_DOC idir= LINK TO docs/doc2tex FROM docs/doc2tex.c docs/termdoc.c
1.1       maekawa   169:
                    170: docs/doc2ms: docs/doc2ms.c docs/allterm.h docs/termdoc.c
1.1.1.2 ! maekawa   171:        $(CC) $(CFLAGS) def=ALL_TERM_DOC idir= LINK TO docs/doc2ms FROM docs/doc2ms.c docs/termdoc.c
1.1       maekawa   172:
                    173: docs/checkdoc: docs/checkdoc.c docs/allterm.h docs/termdoc.c
1.1.1.2 ! maekawa   174:        $(CC) $(CFLAGS) def=ALL_TERM_DOC idir= LINK TO docs/checkdoc FROM docs/checkdoc.c docs/termdoc.c
1.1       maekawa   175:
                    176: docs/allterm.h: $(CORETERM)
                    177:        join term/\#?.trm as docs/allterm.h
                    178:
1.1.1.2 ! maekawa   179: clean:
        !           180:        @-delete $(OBJS) bf_test.o quiet
        !           181:        @-delete docs/\#?.o docs/\#?.lnk quiet
        !           182:
        !           183: veryclean: clean
        !           184:        @-delete demo/binary[1-3] fitdemo/fit.log quiet
        !           185:        @-delete bf_test demo/fit.log gnuplot docs/gnuplot.gih quiet
        !           186:        @-delete docs/doc2gih docs/doc2tex docs/doc2ms docs/checkdoc quiet
        !           187:
        !           188: install: gnuplot docs/gnuplot.gih
        !           189:        copy docs/gnuplot.gih $(HELPDEST)
        !           190:        copy gnuplot $(DEST)
        !           191:
        !           192: debug:
        !           193:        smake -f makefile.amg DEBUG=dbg=sf LNDBG=addsym OFLAGS= all
1.1       maekawa   194:
1.1.1.2 ! maekawa   195: #
        !           196: # Dependencies; do not edit!
        !           197: #
1.1       maekawa   198: alloc.o: alloc.c plot.h
                    199: amiga.o: amiga.c
                    200: bf_test.o: bf_test.c
                    201: binary.o: binary.c plot.h
                    202: bitmap.o: bitmap.c bitmap.h plot.h
                    203: command.o: command.c plot.h setshow.h help.h
                    204: contour.o: contour.c plot.h
                    205: datafile.o: datafile.c plot.h fnproto.h binary.h setshow.h
                    206: eval.o: eval.c plot.h
                    207: fit.o: fit.c fit.h matrix.h plot.h
                    208: graph3d.o: graph3d.c plot.h setshow.h
                    209: help.o: help.c plot.h help.h
                    210: hidden3d.o: hidden3d.c plot.h setshow.h
                    211: internal.o: internal.c plot.h
                    212: interpol.o: interpol.c plot.h setshow.h
                    213: matrix.o: matrix.c matrix.h fit.h
                    214: misc.o: misc.c plot.h setshow.h help.h
                    215: parse.o: parse.c plot.h help.h
                    216: plot.o: plot.c plot.h setshow.h
                    217: plot2d.o: plot2d.c plot.h setshow.h fit.h binary.h help.h
                    218: plot3d.o: plot3d.c plot.h setshow.h binary.h help.h
                    219: scanner.o: scanner.c plot.h
                    220: show.o: show.c plot.h setshow.h
                    221: specfun.o: specfun.c plot.h
                    222: standard.o: standard.c plot.h
                    223: stdfn.o: stdfn.c stdfn.h
                    224: time.o: time.c plot.h setshow.h
                    225: util.o: util.c plot.h
                    226: util3d.o: util3d.c plot.h setshow.h
                    227: version.o: version.c

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>