force all files to end in "/* end of filename"
[platform/upstream/binutils.git] / gas / Makefile.loic
1 # Makefile for GAS.
2 # Copyright (C) 1989, Free Software Foundation
3
4 # This file is part of GAS, the GNU Assembler.
5
6 # GAS is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 1, or (at your option)
9 # any later version.
10
11 # GAS is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 # GNU General Public License for more details.
15
16 # You should have received a copy of the GNU General Public License
17 # along with GAS; see the file COPYING.  If not, write to
18 # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
19
20 BINDIR = /usr/local/bin
21
22 BINARY = gas
23
24 #
25 # Add these flags to XCFLAGS below for specific use.
26 #
27 # If you machine does not have vfprintf, but does have _doprnt(),
28 # -DNO_VARARGS
29 #
30 # If the return-type of a signal-hander is void (instead of int),
31 # -DSIGTY
32 #
33 # To include the mc68851 mmu coprocessor instructions in the 68020 assembler,
34 # -Dm68851 
35 #
36 # If you want the 80386 assembler to correctly handle fsub/fsubr and fdiv/fdivr
37 # opcodes (unlike most 80386 assemblers)
38 # -DNON_BROKEN_WORDS
39 #
40 XCFLAGS =
41
42 # Your favorite compiler
43 CC = gcc
44
45 # Uncomment the following lines if you use USG
46
47 INCLUDE_DIRS = -I.
48 COFF_OBJECTS = stack.o
49 CPPFLAGS = -DUSG
50 CFLAGS = -g $(CPPFLAGS) $(XCFLAGS)
51 LDFLAGS = 
52 #LOADLIBES = -lPW
53
54 # Uncomment the following lines if you use BSD
55 #INCLUDE_DIRS = -I.
56 #CPPFLAGS = 
57 #CFLAGS = -g $(CPPFLAGS) $(XCFLAGS)
58 #LDFLAGS = 
59 #LOADLIBES =
60
61 CONFIG_FILES = \
62         machine.c machine.h atof.c obj-format.c obj-format.h opcode.h
63
64 OBJECTS = \
65         as.o xrealloc.o xmalloc.o hash.o hex-value.o \
66         atof-generic.o append.o messages.o expr.o app.o \
67         frags.o input-file.o input-scrub.o output-file.o \
68         subsegs.o symbols.o version.o flonum-const.o flonum-copy.o \
69         flonum-mult.o strstr.o bignum-copy.o obstack.o write.o read.o \
70         obj-format.o machine.o atof.o $(COFF_OBJECTS)
71
72 SOURCES = $(OBJECTS:.o=.c)
73
74 all : $(BINARY)
75
76 install : all
77         cp $(BINARY) $(BINDIR)
78
79 clean : 
80         rm -f $(OBJECTS)
81
82 clobber : clean
83         rm -f $(BINARY) $(CONFIG_FILES) dependencies TAGS m68k.h
84
85 $(BINARY) : $(OBJECTS)
86         $(CC) -o $(BINARY) $(LDFLAGS) $(OBJECTS) $(LOADLIBES)
87
88 TAGS : $(SOURCES)
89         etags $(SOURCES) *.h
90
91 CXREF : $(SOURCES)
92         cxref -c $(INCLUDE_DIRS) $(SOURCES)
93
94 stack.o: stack.c
95         $(CC) $(CFLAGS) -c stack.c
96
97 atof.o: \
98         flonum.h \
99         bignum.h
100 obj-format.o: \
101         as.h \
102         md.h \
103         aout.h \
104         a.out.gnu.h \
105         struc-symbol.h \
106         write.h \
107         append.h
108 read.o: \
109         obj-format.h \
110         a.out.gnu.h \
111         as.h \
112         read.h \
113         md.h \
114         hash.h \
115         obstack.h \
116         frags.h \
117         flonum.h \
118         bignum.h \
119         struc-symbol.h \
120         expr.h \
121         symbols.h \
122         sparc.h
123 write.o: \
124         obj-format.h \
125         a.out.gnu.h \
126         as.h \
127         md.h \
128         subsegs.h \
129         obstack.h \
130         struc-symbol.h \
131         write.h \
132         symbols.h \
133         append.h \
134         sparc.h
135 obstack.o: \
136         obstack.h
137 bignum-copy.o: \
138         bignum.h
139 flonum-mult.o: \
140         flonum.h \
141         bignum.h
142 flonum-copy.o: \
143         flonum.h \
144         bignum.h
145 flonum-const.o: \
146         flonum.h \
147         bignum.h
148 symbols.o: \
149         obj-format.h \
150         a.out.gnu.h \
151         as.h \
152         hash.h \
153         obstack.h \
154         struc-symbol.h \
155         symbols.h \
156         frags.h
157 subsegs.o: \
158         obj-format.h \
159         a.out.gnu.h \
160         as.h \
161         subsegs.h \
162         obstack.h \
163         frags.h \
164         struc-symbol.h \
165         write.h
166 input-scrub.o: \
167         as.h \
168         read.h \
169         input-file.h
170 input-file.o: \
171         input-file.h
172 frags.o: \
173         obj-format.h \
174         a.out.gnu.h \
175         as.h \
176         subsegs.h \
177         obstack.h \
178         frags.h \
179         struc-symbol.h
180 expr.o: \
181         obj-format.h \
182         a.out.gnu.h \
183         as.h \
184         flonum.h \
185         bignum.h \
186         read.h \
187         struc-symbol.h \
188         expr.h \
189         obstack.h \
190         symbols.h
191 messages.o: \
192         as.h
193 atof-generic.o: \
194         flonum.h \
195         bignum.h
196 hash.o: \
197         hash.h
198 as.o: \
199         obj-format.h \
200         a.out.gnu.h \
201         as.h \
202         struc-symbol.h \
203         write.h