Icons are changed
[gnuplot] / config / makefile.ami
1 #
2 # $Id: makefile.ami,v 1.7 2004/04/13 17:23:30 broeker Exp $
3 #
4 # GNUPLOT Makefile for Manx Aztec C 5.2 beta of better on the Amiga
5
6 # Pat R. Empleo Sept 1991
7 #
8 #   Usage:
9 #
10 #      make -f makefile.ami
11 #
12 #
13
14 # where to install help file gnuplot.gih
15 HELPFILE=S:gnuplot.gih
16 # Where to send email about bugs and comments (locally)
17 EMAIL="gnuplot-bugs@lists.sourceforge.net"
18
19 #
20 # Manx Aztec C v5.2 compiler options
21 #
22 #
23 CC     = cc
24 CFLAGS = -mcd -DAMIGA_AC_5 -fa -sab -wosw -MR
25
26 # note that current versions of Aztec may very well have float.h
27 # if anyone can verify this, please fix it.
28
29 #
30 # Manx Aztec C v5.2 linker options
31 #
32 LD   = ln
33 LIBS = -lmal -lc
34
35 #
36 # Terminal (device) support --- see term.h
37 #
38 TERMFLAGS = -Iterm -I.
39
40 #
41 # List of object files except term.o, version.o
42 #
43 OBJS = alloc.o binary.o bitmap.o command.o contour.o datafile.o dynarray.o \
44         eval.o fit.o graphics.o graph3d.o help.o hidden3d.o history.o \
45         internal.o interpol.o matrix.o misc.o parse.o plot.o plot2d.o \
46         plot3d.o readline.o save.o scanner.o set.o show.o specfun.o \
47         standard.o stdfn.o tables.o time.o unset.o util.o util3d.o variable.o
48 #
49 # List of sources
50 #
51 CSOURCE1 = alloc.c binary.c bitmap.c command.c contour.c datafile.c dynarray.c
52 CSOURCE2 = eval.c fit.c graphics.c graph3d.c help.c hidden3d.c history.c
53 CSOURCE3 = internal.c interpol.c matrix.c misc.c parse.c plot.c plot2d.c
54 CSOURCE4 = plot3d.c readline.c save.c scanner.c set.c show.c specfun.c time.c
55 CSOURCE5 = standard.c stdfn.c tables.c term.c util.c util3d.c version.c variable.c
56 CSOURCE6 = term/amiga.trm term/aed.trm term/cgi.trm term/dumb.trm term/dxf.trm \
57         term/dxy.trm term/eepic.trm term/epson.trm term/fig.trm \
58         term/hp26.trm term/hp2648.trm term/hpgl.trm term/hpljii.trm \
59         term/apollo.trm term/gpr.trm
60 CSOURCE7 = term/impcodes.h term/imagen.trm term/object.h \
61         term/iris4d.trm term/kyo.trm term/latex.trm term/pbm.trm term/pc.trm 
62 CSOURCE8 = term/post.trm term/qms.trm term/regis.trm term/sun.trm \
63         term/t410x.trm term/tek.trm term/unixpc.trm term/unixplot.trm \
64         term/v384.trm term/x11.trm term/bigfig.trm term/vws.trm gplt_x11.c
65
66 #
67 # Docs
68 #
69 DOCS1 = docs/Makefile docs/README docs/checkdoc.c docs/doc2gih.c \
70         docs/doc2hlp.c docs/doc2hlp.vms docs/doc2ms.c docs/doc2tex.c \
71         docs/gnuplot.1 docs/lasergnu.1 docs/toc_entry.sty \
72         docs/titlepage.ms docs/titlepage.tex
73 DOCS2 = docs/gnuplot.doc
74 DOCS3 = docs/latextut/Makefile docs/latextut/eg1.plt \
75         docs/latextut/eg2.plt docs/latextut/eg3.dat docs/latextut/eg3.plt \
76         docs/latextut/eg4.plt docs/latextut/eg5.plt docs/latextut/eg6.plt \
77         docs/latextut/header.tex docs/latextut/tutorial.tex \
78         docs/latextut/linepoint.plt
79
80 #
81 # Targets
82 #
83
84 default: gnuplot doc
85
86 gnuplot: $(OBJS) term.o version.o
87         $(LD) $(OBJS) term.o version.o $(LIBS) -o gnuplot
88
89 doc:
90         cd docs
91         make -f makefile.ami gih
92
93 #
94 # Dependencies
95 #
96 plot.o: plot.c
97         $(CC) $(CFLAGS) plot.c
98
99 term.o: term.h term.c $(CSOURCE5) $(CSOURCE6) $(CSOURCE7)
100         $(CC) $(CFLAGS) $(TERMFLAGS) term.c
101
102 version.o:
103         $(CC) $(CFLAGS) -DCONTACT=$(EMAIL) version.c
104
105 $(OBJS): plot.h
106         $(CC) $(CFLAGS) $*.c
107
108 command.o:
109         $(CC) $(CFLAGS) -c command.c -DHELPFILE=\"$(HELPFILE)\"
110
111 show.o:
112         $(CC) $(CFLAGS) -c show.c -DHELPFILE=\"$(HELPFILE)\"
113
114 command.o help.o misc.o: help.h
115
116 command.o graphics.o graph3d.o misc.o plot.o set.o show.o term.o interpol.o: setshow.h
117
118 command.o fit.o matrix.o: fit.h
119
120 fit.o matrix.o: matrix.h
121
122 fit.o: fit.c fit.h matrix.h plot.h
123
124 matrix.o: matrix.c matrix.h fit.h
125
126 bitmap.o term.o: bitmap.h
127
128 variable.o: variable.c plot.h variable.h
129
130 #
131 # misc
132 #
133 clean:
134         delete #?.o
135
136 veryclean: spotless
137
138 spotless:
139         delete #?.o gnuplot
140