home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / gnu / gas-1.38.1-src.lha / src / amiga / gas-1.38 / Makefile < prev    next >
Makefile  |  1993-09-09  |  9KB  |  278 lines

  1. # Makefile for GAS.
  2. # Copyright (C) 1989, Free Software Foundation
  3. # This file is part of GAS, the GNU Assembler.
  4. # GAS is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; either version 1, or (at your option)
  7. # any later version.
  8. # GAS is distributed in the hope that it will be useful,
  9. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  11. # GNU General Public License for more details.
  12. # You should have received a copy of the GNU General Public License
  13. # along with GAS; see the file COPYING.  If not, write to
  14. # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  15.  
  16. # This makefile may be used to make the VAX, 68020, 80386, 
  17. # SPARC, ns32k, or i860 assembler(s).
  18.  
  19. BINDIR = /usr/local/bin
  20. CC=gcc
  21. LOADLIBES = #-lc
  22.  
  23. #G0 = -O2 -resident
  24. G0 = -O2
  25.  
  26. .c.o:
  27.     $(CC) -c $(CFLAGS) $*.c
  28.  
  29. # If you are on a BSD system, un-comment the next two lines, and comment out
  30. # the lines for SystemV and HPUX below
  31. #G0 = -g  -I. #-O -Wall
  32. LDFLAGS = $(CFLAGS)
  33. #
  34. # To compile gas on a System Five machine, comment out the two lines above
  35. # and un-comment out the next three lines
  36. # Comment out the -lPW on the LOADLIBES line if you are using GCC.
  37. # G0 = -g -I. -DUSG
  38. # LDFLAGS = $(CFLAGS)
  39. # LOADLIBES = -lmalloc -lPW
  40. #
  41. # To compile gas for HPUX, link m-hpux.h to m68k.h , and un-comment the
  42. # next two lines.  (If you are using GCC, comment out the alloca.o part)
  43. # (Get alloca from the emacs distribution, or use GCC.)
  44. # HPUX 7.0 may have a bug in setvbuf.  gas gives an error message like
  45. # 1:"Unknown operator" -- Statement 'NO_APP' ignored
  46. # if setvbuf is broken.  Re-compile input-file.c (and only input-file.c
  47. # with -DVMS and the problem should go away.
  48. #
  49. # G0 = -g -I. -DUSG
  50. # LOADLIBES = alloca.o
  51. #
  52. # To compile gas for a Sequent Symmetry, comment out all the above lines,
  53. # and un-comment the next two lines.
  54. # G0 = -g -I. -DUSE_SYSTEM_HDR -DEXEC_VERSION=1
  55. # LOADLIBES = -lc /usr/att/lib/libc.a
  56.  
  57. # If you just want to compile the vax assembler, type 'make avax'
  58.  
  59. # If you just want to compile the i386 assembler, type 'make a386'
  60.  
  61. # If you just want to compile the ns32k assembler, type 'make a32k'
  62.  
  63. # If you just want to compile the sparc assembler, type 'make asparc'
  64.  
  65. # If you just want to compile the mc68020 assembler, make sure m68k.h
  66. # is correctly set up, and type type 'make a68'  (Except on HPUX machines,
  67. # where you will have to make the changes marked below before typing
  68. # 'make a68'
  69. # m68k.h should be a symbolic or hard-link to one of
  70. # m-sun3.h , m-hpux.h or m-generic.h
  71. # depending on which machine you want to compile the 68020 assembler for.
  72. #
  73. # If you want the 68k assembler to be completely compatable with the the
  74. # SUN one, un-comment the -DSUN_ASM_SYNTAX line below.
  75. #
  76. # If you machine does not have vfprintf, but does have _doprnt(),
  77. # remove the # from the -DNO_VARARGS line below.
  78. #
  79. # If the return-type of a signal-hander is void (instead of int),
  80. # remove the # from the -DSIGTY line below.
  81. #
  82. # To include the mc68851 mmu coprocessor instructions in the 68020 assembler,
  83. # remove the # from the -Dm68851 line below.
  84. #
  85. # If you want the 68020 assembler use a register prefix character, un-comment
  86. # the REGISTER_PREFIX line, and (maybe) change the '%' to the appropriate
  87. # character.
  88. #
  89. # If you want the assembler to treat .L* or ..* symbols as local, instead of
  90. # the usual L* symbols, un-comment the DOT_LABEL_PREFIX line.
  91. #
  92. # If you want the 80386 assembler to correctly handle fsub/fsubr and fdiv/fdivr
  93. # opcodes (unlike most 80386 assemblers), remove the # from
  94. # the -DNON_BROKEN_WORDS line below.
  95. #
  96. # To compile 80386 Gas for the Sequent Symmetry, un-comment the -DEXEC_VERSION
  97. # and the -DUSE_SYSTEM_HDR lines below.
  98. #
  99. # To compile gas for the HP 9000/300 un-comment the -DUSE_HP_HDR line below.
  100. #
  101. # For the ns32k, the options are 32532 or 32032 CPU and 32381 or 32081 FPU.
  102. # To select the NS32532, remove the # from the -DNS32532 line below.
  103. # To compile in tne NS32381 opcodes in addition to the NS32081 opcodes
  104. # (the 32381 is a superset of the 32081), remove the # from the -DNS32381
  105. # line below.
  106. #
  107. # For the ns32k on a Sequent, uncomment the SEQUENT_COMPATABILITY line below.
  108. #
  109. # If you want the .align N directive to align to the next N byte boundry,
  110. # instead of the next 1<<N boundry, un-comment the OTHER_ALIGN line below.
  111. # (This option is automatically enabled when building the sparc assembler.
  112. #
  113.  
  114. #O1 =  -DNO_VARARGS
  115. O1 =
  116. #O2 =  -DNON_BROKEN_WORDS
  117. O2 =
  118. O3 =  -Dm68851
  119. #O4 =  -DEXEC_VERSION=1
  120. O4 =
  121. O5 =  -DSIGTY=void
  122. #O6 =  -DNS32532
  123. O6 =
  124. #O6 =  -DNS32381
  125. #O7 =  -DDOT_LABEL_PREFIX
  126. O7 =
  127. #O8 =  -DSEQUENT_COMPATABILITY
  128. O8 =
  129. #O9 =  -DREGISTER_PREFIX=\'%\'
  130. O9 =
  131. #O10=  -DOTHER_ALIGN
  132. O10 =
  133.  
  134. #G1 =  -DUSE_SYSTEM_HDR
  135. G1 =
  136. #G2 =  -DUSE_HP_HDR
  137. G2 =
  138. G3 =  -DSUN_ASM_SYNTAX
  139. #G3 =
  140. G4 =
  141.  
  142. OPTIONS = $(O1) $(O2) $(O3) $(O4) $(O5) $(O6) $(O7) $(O8) $(O9) $(O10)
  143.  
  144. CFLAGS = $(G0) $(G1) $(G2) $(G3) $(G4)
  145.  
  146. #
  147. # To make the 68020 assembler compile as the default, un-comment the next
  148. # line, and comment out all the other lines that start with DEFAULT_GAS
  149. DEFAULT_GAS=a68
  150. #
  151. # To make the VAX assembler compile as the default, un-comment the next
  152. # line and commment out all the other lines that start with DEFAULT_GAS
  153. #DEFAULT_GAS=avax
  154. #
  155. # To make the 80386 assembler compile as the default, un-comment the next
  156. # line and commment out all the other lines that start with DEFAULT_GAS
  157. #DEFAULT_GAS=a386
  158. #
  159. # To make the ns32k assembler compile as the default, un-comment the next
  160. # line and commment out all the other lines that start with DEFAULT_GAS
  161. #DEFAULT_GAS=a32k
  162. #
  163. # To make the sparc assembler compile as the default, un-comment the next
  164. # line and commment out all the other lines that start with DEFAULT_GAS
  165. #DEFAULT_GAS=asparc
  166. #
  167. # To make the i860 assembler compile as the default, un-comment the next
  168. # line and comment out all the other lines that start with DEFAULT_GAS
  169. #DEFAULT_GAS=a860
  170.  
  171. # Global Sources -------------------------------------------------------------
  172.  
  173. a =\
  174. as.o        xrealloc.o    xmalloc.o    hash.o        hex-value.o   \
  175. atof-generic.o    append.o    messages.o    expr.o        app.o         \
  176. frags.o        input-file.o    input-scrub.o    output-file.o                  \
  177. subsegs.o    symbols.o                    version.o     \
  178. flonum-const.o    flonum-copy.o    flonum-mult.o    strstr.o    bignum-copy.o \
  179. obstack.o
  180. #gdb.o        gdb-file.o    gdb-symbols.o    gdb-blocks.o    gdb-lines.o
  181.  
  182. a:    $(DEFAULT_GAS)
  183. #    @rm -f a
  184. #    @ln $(DEFAULT_GAS) a
  185.  
  186. # 68020 GAS ------------------------------------------------------------------
  187. y = m68k.o m68k-opcode.o  atof-ieee.o write.o read.o
  188.  
  189. Y = m68k.c m68k-opcode.c atof-ieee.c m68k-opcode.h m-hpux.h m-sun3.h m-generic.h
  190.  
  191. atof-ieee.o:    flonum.h
  192.  
  193. m68k.o:        m68k.c a.out.gnu.h as.h expr.h flonum.h frags.h hash.h
  194. m68k.o:        m68k-opcode.h m68k.h md.h obstack.h struc-symbol.h
  195.     $(CC) -c $(CFLAGS) $(OPTIONS) m68k.c
  196.  
  197. m68k-opcode.o:    m68k-opcode.c a.out.gnu.h as.h expr.h flonum.h frags.h hash.h
  198. m68k-opcode.o:    m68k-opcode.h m68k.h md.h obstack.h struc-symbol.h
  199.     $(CC) -c $(CFLAGS) $(OPTIONS) m68k-opcode.c
  200.  
  201. a68: $a $y
  202.     $(CC) -o a68 $(LDFLAGS) $a $y $(LOADLIBES)
  203.  
  204. # global files ---------------------------------------------------------------
  205.  
  206. as.o: as.c
  207.     $(CC) -c $(CFLAGS) $(OPTIONS) as.c
  208.  
  209. messages.o: messages.c
  210.     $(CC) -c $(CFLAGS) $(OPTIONS) messages.c
  211.  
  212. hash.o:    hash.c
  213.     $(CC) -c $(CFLAGS) -Derror=as_fatal hash.c
  214.  
  215. xmalloc.o:    xmalloc.c
  216.     $(CC) -c $(CFLAGS) -Derror=as_fatal xmalloc.c
  217.  
  218. xrealloc.o:    xrealloc.c
  219.     $(CC) -c $(CFLAGS) -Derror=as_fatal xrealloc.c
  220.  
  221. A =\
  222. as.c        xrealloc.c    xmalloc.c    hash.c        hex-value.c \
  223. atof-generic.c    append.c    messages.c    expr.c        bignum-copy.c \
  224. frags.c        input-file.c    input-scrub.c    output-file.c    read.c \
  225. subsegs.c    symbols.c    write.c                strstr.c \
  226. flonum-const.c    flonum-copy.c    flonum-mult.c    app.c        version.c \
  227. obstack.c 
  228.  
  229. H = \
  230. a.out.gnu.h    as.h        bignum.h    expr.h        flonum.h \
  231. frags.h        hash.h        input-file.h    md.h     \
  232. obstack.h    read.h        struc-symbol.h    subsegs.h    \
  233. symbols.h    write.h
  234.  
  235. clean:
  236.     rm -f a avax a68 a386 a32k asparc $a $v $w $x $y $z a core gmon.out bugs a.out
  237.  
  238. install:    a
  239.     cp a $(BINDIR)/gas
  240.  
  241.  
  242. # General .o-->.h dependencies
  243.  
  244. app.o:        as.h
  245. as.o:        a.out.gnu.h as.h read.h struc-symbol.h write.h
  246. atof-generic.o:    flonum.h
  247. bignum-copy.o:    bignum.h
  248. expr.o:        a.out.gnu.h as.h expr.h flonum.h obstack.h read.h struc-symbol.h
  249. expr.o:         symbols.h
  250. flonum-const.o:    flonum.h
  251. flonum-copy.o:    flonum.h
  252. flonum-mult.o:    flonum.h
  253. flonum-normal.o: flonum.h
  254. flonum-print.o:    flonum.h
  255. frags.o:    a.out.gnu.h as.h frags.h obstack.h struc-symbol.h subsegs.h
  256. #gdb.o:        as.h
  257. #gdb-blocks.o:    as.h
  258. #gdb-lines.o:    as.h frags.h obstack.h
  259. #gdb-symbols.o:    a.out.gnu.h as.h struc-symbol.h
  260. hash.o:        hash.h
  261. input-file.o:    input-file.h
  262. input-scrub.o:    as.h input-file.h read.h
  263. messages.o:    as.h
  264. obstack.o:    obstack.h
  265. read.o:        a.out.gnu.h as.h expr.h flonum.h frags.h hash.h md.h obstack.h
  266. read.o:        read.h struc-symbol.h symbols.h
  267. subsegs.o:    a.out.gnu.h as.h frags.h obstack.h struc-symbol.h subsegs.h write.h
  268. symbols.o:    a.out.gnu.h as.h frags.h hash.h obstack.h struc-symbol.h symbols.h
  269. write.o:    a.out.gnu.h as.h md.h obstack.h struc-symbol.h subsegs.h
  270. write.o:    symbols.h write.h
  271.  
  272. flonum.h:                    bignum.h
  273.  
  274.