home *** CD-ROM | disk | FTP | other *** search
/ Dream 52 / Amiga_Dream_52.iso / Atari / Gnu / gassrc04.zoo / Makefile.cminix < prev    next >
Makefile  |  1991-01-24  |  7KB  |  238 lines

  1. CROSSDIR = /net/acae127/home/bammi/atari/cross-minix
  2. CROSSBIN = $(CROSSDIR)/bin
  3. CROSSLIB = $(CROSSDIR)/lib
  4. CROSSINC = $(CROSSDIR)/include
  5.  
  6. # This makefile may be used to make the VAX, the 68020 the 80386 or the
  7. # ns32k assembler.
  8.  
  9. # If you just want to compile the vax assembler, type 'make avax'
  10.  
  11. # If you just want to compile the mc68020 assembler, make sure m68k.h
  12. # is correctly set up, and type type 'make a68'  (Except on HPUX machines,
  13. # where you will have to make the changes marked below before typing
  14. # 'make a68'
  15.  
  16. # If you just want to compile the i386 assembler, type 'make a386'
  17.  
  18. # If you just want to compile the ns32k assembler, type 'make a32k'
  19.  
  20. # To make the 68020 assembler compile as the default, un-comment the next
  21. # five lines (the first line starts with a:), and comment out the
  22. # a: groups for the other assemblers.
  23. #
  24. #NOTE:  m68k.h should be a symbolic or hard-link to one of
  25. # m-sun3.h , m-hpux.h or m-generic.h
  26. # depending on which machine you want to compile the 68020 assembler for.
  27. #
  28. # To compile for HPUX, link m-hpux.h to m68k.h , un-comment the
  29. # next two lines, and comment out the OPTIONS line below
  30. # OPTIONS = -I../hp-include -I.
  31. # LOADLIBES = -lGNU
  32. #
  33. # If you want the 68k assembler to be completely compatable with the the
  34. # SUN one, un-comment the -DSUN_ASM_SYNTAX line below.
  35. #
  36. # If you machine does not have vfprintf, but does have _doprnt(),
  37. # remove the # from the -DNO_VARARGS line below.
  38. #
  39. # If the return-type of a signal-hander is void (instead of int),
  40. # remove the # from the -DSIGTY line below.
  41. #
  42. # To include the mc68851 mmu coprocessor instructions in the 68020 assembler,
  43. # remove the # from the -Dm68851 line below.
  44. #
  45. # If you want the 68020 assembler use a register prefix character, un-comment
  46. # the REGISTER_PREFIX line, and (maybe) change the '%' to the appropriate
  47. # character.
  48. #
  49. # If you want the assembler to treat .L* or ..* symbols as local, instead of
  50. # the usual L* symbols, un-comment the DOT_LABEL_PREFIX line.
  51. #
  52. # If you want the 80386 assembler to correctly handle fsub/fsubr and fdiv/fdivr
  53. # opcodes (unlike most 80386 assemblers), remove the # from
  54. # the -DNON_BROKEN_WORDS line below.
  55. #
  56. # To compile 80386 Gas for the Sequent Symmetry, un-comment the -DEXEC_VERSION
  57. # and the -DUSE_SYSTEM_HDR lines below.
  58. #
  59. # To compile gas for the HP 9000/300 un-comment the -DUSE_HP_HDR line below.
  60. #
  61. # For the ns32k, the options are 32532 or 32032 CPU and 32381 or 32081 FPU.
  62. # To select the NS32532, remove the # from the -DNS32532 line below.
  63. # To compile in tne NS32381 opcodes in addition to the NS32081 opcodes
  64. # (the 32381 is a superset of the 32081), remove the # from the -DNS32381
  65. # line below.
  66. #
  67. # For the ns32k on a Sequent, uncomment the SEQUENT_COMPATABILITY line below.
  68. #
  69. # If you want the .align N directive to align to the next N byte boundry,
  70. # instead of the next 1<<N boundry, un-comment the OTHER_ALIGN line below.
  71. # (This option is automatically enabled when building the sparc assembler.
  72. #
  73. O1 = # -DNO_VARARGS
  74. O2 = # -DNON_BROKEN_WORDS
  75. O3 = -Dm68851
  76. O4 = # -DEXEC_VERSION=1
  77. O5 = -DSIGTY=void
  78. O6 = # -DNS32532
  79. O6 = # -DNS32381
  80. O7 = # -DDOT_LABEL_PREFIX
  81. O8 = # -DSEQUENT_COMPATABILITY
  82. O9 = # -DREGISTER_PREFIX=\'%\'
  83. O10= # -DOTHER_ALIGN
  84.  
  85. G1 = # -DUSE_SYSTEM_HDR
  86. G2 = # -DUSE_HP_HDR
  87. G3 = # -DSUN_ASM_SYNTAX
  88.  
  89. OPTIONS = -Datariminix=1 $(O1) $(O2) $(O3) $(O4) $(O5) $(O6) $(O7) $(O8) $(O9) $(O10)
  90. a:    a68
  91.     @rm -f a
  92.     @ln a68 a
  93. lint:    lint_68k
  94.  
  95. # To make the VAX assembler compile as the default, un-comment the next five
  96. # lines, and comment out the a: group of lines for the other assemblers.
  97. #OPTIONS =
  98. #a:    avax
  99. #    @rm -f a
  100. #    @ln avax a
  101. #lint:    lint_vax
  102.  
  103. # To make the 80386 assembler compile as the default, un-comment the
  104. # next five lines, and comment out the 'a:' groups for the other assemblers.
  105. #OPTIONS =
  106. #a:    a386
  107. #    @rm -f a
  108. #    @ln a386 a
  109. #lint:    lint_386
  110.  
  111. # To make the ns32k assembler compile as the default, un comment the
  112. # next five lines, and comment out the 'a:' groups for the other assemblers.
  113. #OPTIONS =
  114. #a:    a32k
  115. #    @rm -f a
  116. #    @ln a32k a
  117. #lint:    lint_32k
  118. #
  119.  
  120. CC=$(CROSSBIN)/mgcc
  121. CFLAGS = -O -I. $(OPTIONS)
  122. LDFLAGS = $(CFLAGS)
  123. # To compile gas on a System Five machine, comment out the two lines above
  124. # and un-comment out the next three lines
  125. # CFLAGS = -g -I. -DUSG $(OPTIONS)
  126. # LDFLAGS = $(CFLAGS)
  127. # LOADLIBES = -lmalloc -lPW
  128.  
  129. a =\
  130. as.o        xrealloc.o    xmalloc.o    hash.o        hex-value.o \
  131. atof-generic.o    append.o    messages.o    expr.o        app.o \
  132. frags.o        input-file.o    input-scrub.o    output-file.o     \
  133. subsegs.o    symbols.o                    version.o \
  134. flonum-const.o    flonum-copy.o    flonum-mult.o    strstr.o    bignum-copy.o \
  135. obstack.o
  136.  
  137.  
  138.  
  139. y =\
  140. m68k.o        atof-ieee.o read.o write.
  141. Y = m68k.c atof-ieee.c m68k-opcode.h m-hpux.h m-sun3.h m-generic.h
  142.  
  143. a68: $a $y
  144.     $(CC) -o a68 $(LDFLAGS) $a $y $(LOADLIBES) -s
  145.  
  146. atof-ieee.o:    flonum.h
  147.  
  148. hash.o:    hash.c
  149.     $(CC) -c $(CFLAGS) -Derror=as_fatal hash.c
  150.  
  151. xmalloc.o:    xmalloc.c
  152.     $(CC) -c $(CFLAGS) -Derror=as_fatal xmalloc.c
  153.  
  154. xrealloc.o:    xrealloc.c
  155.     $(CC) -c $(CFLAGS) -Derror=as_fatal xrealloc.c
  156.  
  157. m68k.o:        gnu-out.h as.h expr.h flonum.h frags.h hash.h
  158. m68k.o:        m68k-opcode.h m68k.h md.h obstack.h struc-symbol.h
  159.  
  160. app.o:        as.h
  161.  
  162. as.o:        gnu-out.h as.h read.h struc-symbol.h write.h
  163. atof-generic.o:    flonum.h
  164. bignum-copy.o:    bignum.h
  165. expr.o:        gnu-out.h as.h expr.h flonum.h obstack.h read.h struc-symbol.h
  166. expr.o:         symbols.h
  167. flonum-const.o:    flonum.h
  168. flonum-copy.o:    flonum.h
  169. flonum-mult.o:    flonum.h
  170. flonum-normal.o:flonum.h
  171. flonum-print.o:    flonum.h
  172. frags.o:    gnu-out.h as.h frags.h obstack.h struc-symbol.h subsegs.h
  173. hash.o:        hash.h
  174. input-file.o:    input-file.h
  175. input-scrub.o:    as.h input-file.h read.h
  176. messages.o:    as.h
  177. obstack.o:    obstack.h
  178. read.o:        gnu-out.h as.h expr.h flonum.h frags.h hash.h md.h obstack.h
  179. read.o:        read.h struc-symbol.h symbols.h
  180. subsegs.o:    gnu-out.h as.h frags.h obstack.h struc-symbol.h subsegs.h write.h
  181. symbols.o:    gnu-out.h as.h frags.h hash.h obstack.h struc-symbol.h symbols.h
  182. write.o:    gnu-out.h as.h md.h obstack.h struc-symbol.h subsegs.h
  183. write.o:    symbols.h write.h
  184.  
  185. flonum.h:                    bignum.h
  186.  
  187. # app is no longer a separate process.
  188. # app:    app.c
  189. #    $(CC) -o app app.c
  190. clean:
  191.     rm -f a avax a68 a386 $a $w $x $y $z a core gmon.out bugs a.out
  192.  
  193. oprint:    oprint.o pp.o
  194.     $(CC) $(LDFLAGS) -o oprint oprint.o pp.o
  195.  
  196.  
  197. A =\
  198. as.c        xrealloc.c    xmalloc.c    hash.c        hex-value.c \
  199. atof-generic.c    append.c    messages.c    expr.c        bignum-copy.c \
  200. frags.c        input-file.c    input-scrub.c    output-file.c    read.c \
  201. subsegs.c    symbols.c    write.c                strstr.c \
  202. flonum-const.c    flonum-copy.c    flonum-mult.c    app.c        version.c \
  203. obstack.c 
  204.  
  205. B =\
  206. m68k.c        atof-ieee.c    
  207.  
  208. H = \
  209. gnu.out.h        as.h        bignum.h    expr.h        flonum.h \
  210. frags.h        hash.h        input-file.h    m68k-opcode.h    md.h     \
  211. obstack.h    read.h        struc-symbol.h    subsegs.h    i386.h     \
  212. symbols.h    vax-inst.h    vax-opcode.h    write.h        i386-opcode.h \
  213. m-sun3.h    m-generic.h    pmmu.h        m-hpux.h    ns32k-opcode.h
  214.  
  215.  
  216. # JF unused    flonum-normal.c    flonum-print.c cpystr.c
  217.  
  218. lint_68k:
  219.     lint -I. $A $B
  220.  
  221. lint_vax:
  222.     lint -I. $A $C
  223.  
  224. lint_i386:
  225.     lint -I. $A $D
  226.  
  227. gas-dist.tar: COPYING README $A $B $C $D $E $H $V Makefile
  228.     tar cvf gas-dist.tar COPYING README $A $B $C $D $E $H $V Makefile
  229.  
  230. gas-dist.tar.Z:    gas-dist.tar
  231.     compress < gas-dist.tar > gas-dist.tar.Z
  232.  
  233. dist:    gas-dist.tar gas-dist.tar.Z
  234.  
  235. install:    a
  236.  
  237.  
  238.