home *** CD-ROM | disk | FTP | other *** search
/ Dream 52 / Amiga_Dream_52.iso / Atari / Gnu / gassrc04.zoo / Makefile.hp < prev    next >
Makefile  |  1991-07-28  |  7KB  |  241 lines

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