|
|
1.1.1.3 ! root 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. 1.1 root 19: 1.1.1.3 ! root 20: # This makefile may be used to make the VAX, 68020, 80386, ! 21: # SPARC, or ns32k assembler(s). 1.1 root 22: 1.1.1.3 ! root 23: # If you are on a BSD system, un-comment the next two lines, and comment out ! 24: # the lines for SystemV and HPUX below 1.1 root 25: CFLAGS = -g -I. 26: LDFLAGS = $(CFLAGS) 1.1.1.3 ! root 27: # To compile gas on a System Five machine, comment out the two lines above ! 28: # and un-comment out the next three lines ! 29: # Comment out the -lPW on the LOADLIBES line if you are using GCC. ! 30: # CFLAGS = -g -I. -DUSG ! 31: # LDFLAGS = $(CFLAGS) ! 32: # LOADLIBES = -lmalloc -lPW ! 33: # To compile gas for HPUX, link m-hpux.h to m68k.h , and un-comment the ! 34: # next two lines. (If you are using GCC, comment out the alloca.o part) ! 35: # (Get alloca from the emacs distribution, or use GCC.) ! 36: # CFLAGS = -g -I. -DUSG ! 37: # LOADLIBES = alloca.o ! 38: ! 39: # If you just want to compile the vax assembler, type 'make avax' ! 40: ! 41: # If you just want to compile the i386 assembler, type 'make a386' ! 42: ! 43: # If you just want to compile the ns32k assembler, type 'make a32k' ! 44: ! 45: # If you just want to compile the sparc assembler, type 'make asparc' ! 46: ! 47: # If you just want to compile the mc68020 assembler, make sure m68k.h ! 48: # is correctly set up, and type type 'make a68' (Except on HPUX machines, ! 49: # where you will have to make the changes marked below before typing ! 50: # 'make a68' ! 51: # m68k.h should be a symbolic or hard-link to one of ! 52: # m-sun3.h , m-hpux.h or m-generic.h ! 53: # depending on which machine you want to compile the 68020 assembler for. ! 54: # ! 55: # If you machine does not have vfprintf, but does have _doprnt(), ! 56: # remove the # from the -DNO_VARARGS line below. ! 57: # ! 58: # To include the mc68851 mmu coprocessor instructions in the 68020 assembler, ! 59: # remove the # from the -Dm68851 line below. ! 60: # ! 61: # If you want the 80386 assembler to correctly handle fsub/fsubr and fdiv/fdivr ! 62: # opcodes (unlike most 80386 assemblers), remove the # from ! 63: # the -DNON_BROKEN_WORDS line below. ! 64: ! 65: O1 = -DNO_VARARGS ! 66: O2 = # -DNON_BROKEN_WORDS ! 67: O3 = # -Dm68851 ! 68: ! 69: OPTIONS = $(O1) $(O2) $(O3) 1.1 root 70: 1.1.1.3 ! root 71: # ! 72: # To make the 68020 assembler compile as the default, un-comment the next ! 73: # line, and comment out all the other lines that start with DEFAULT_GAS ! 74: DEFAULT_GAS=a68 ! 75: # ! 76: # To make the VAX assembler compile as the default, un-comment the next ! 77: # line and commment out all the other lines that start with DEFAULT_GAS ! 78: #DEFAULT_GAS=avax ! 79: # ! 80: # To make the 80386 assembler compile as the default, un-comment the next ! 81: # line and commment out all the other lines that start with DEFAULT_GAS ! 82: #DEFAULT_GAS=a386 ! 83: # ! 84: # To make the ns32k assembler compile as the default, un-comment the next ! 85: # line and commment out all the other lines that start with DEFAULT_GAS ! 86: #DEFAULT_GAS=a32k ! 87: # ! 88: # To make the sparc assembler compile as the default, un-comment the next ! 89: # line and commment out all the other lines that start with DEFAULT_GAS ! 90: #DEFAULT_GAS=asparc ! 91: ! 92: # Global Sources ------------------------------------------------------------- ! 93: ! 94: a =\ ! 95: as.o xrealloc.o xmalloc.o hash.o hex-value.o \ ! 96: atof-generic.o append.o messages.o expr.o app.o \ ! 97: frags.o input-file.o input-scrub.o output-file.o \ ! 98: subsegs.o symbols.o version.o \ 1.1 root 99: flonum-const.o flonum-copy.o flonum-mult.o strstr.o bignum-copy.o \ 1.1.1.3 ! root 100: gdb.o gdb-file.o gdb-symbols.o gdb-blocks.o obstack.o \ 1.1 root 101: gdb-lines.o 102: 1.1.1.3 ! root 103: a: $(DEFAULT_GAS) ! 104: @rm -f a ! 105: @ln $(DEFAULT_GAS) a 1.1 root 106: 1.1.1.3 ! root 107: # SPARC GAS ------------------------------------------------------------------ ! 108: v = sparc.o atof-m68k.o write-sparc.o read-sparc.o 1.1 root 109: 1.1.1.3 ! root 110: V = sparc.c sparc.h sparc-opcode.h 1.1 root 111: 1.1.1.3 ! root 112: atof-m68k.o: flonum.h ! 113: sparc.o: sparc.c sparc.h sparc-opcode.h as.h frags.h struc-symbol.h ! 114: sparc.o: flonum.h expr.h hash.h md.h write.h read.h symbols.h ! 115: $(CC) -c $(CFLAGS) -DSPARC sparc.c 1.1 root 116: 1.1.1.3 ! root 117: write-sparc.o: write.c ! 118: $(CC) -c -DSPARC $(CFLAGS) $< ! 119: mv write.o write-sparc.o 1.1 root 120: 1.1.1.3 ! root 121: read-sparc.o: read.c ! 122: $(CC) -c -DSPARC $(CFLAGS) $< ! 123: mv read.o read-sparc.o 1.1 root 124: 1.1.1.3 ! root 125: asparc: $a $v ! 126: $(CC) -o asparc $(LDFLAGS) $a $v $(LOADLIBES) ! 127: ! 128: # NS32K GAS ------------------------------------------------------------------ ! 129: w = ns32k.o atof-ns32k.o write.o read.o ! 130: ! 131: W = ns32k.c atof-ns32k.c ns32k-opcode.h ! 132: ! 133: atof-ns32k.o: flonum.h ! 134: ns32k.o: as.h frags.h struc-symbol.h flonum.h expr.h md.h hash.h ! 135: ns32k.o: write.h symbols.h ns32k-opcode.h ! 136: ! 137: a32k: $a $w ! 138: $(CC) -o a32k $(LDFLAGS) $a $w $(LOADLIBES) ! 139: ! 140: # 80386 GAS ------------------------------------------------------------------ ! 141: x = i386.o atof-i386.o write.o read.o ! 142: ! 143: X = i386.c atof-i386.c i386.h i386-opcode.h ! 144: ! 145: i386.o: i386.c as.h read.h flonum.h frags.h struc-symbol.h expr.h ! 146: i386.o: symbols.h hash.h md.h i386.h i386-opcode.h ! 147: $(CC) $(CFLAGS) $(OPTIONS) -c $< ! 148: ! 149: atof-i386.o: flonum.h ! 150: ! 151: a386: $a $x ! 152: $(CC) -o a386 $(LDFLAGS) $a $x $(LOADLIBES) ! 153: ! 154: # 68020 GAS ------------------------------------------------------------------ ! 155: y = m68k.o atof-m68k.o write.o read.o ! 156: ! 157: Y = m68k.c atof-m68k.c m68k-opcode.h m-hpux.h m-sun3.h m-generic.h 1.1 root 158: 159: atof-m68k.o: flonum.h 1.1.1.3 ! root 160: m68k.o: m68k.c a.out.h as.h expr.h flonum.h frags.h hash.h ! 161: m68k.o: m68k-opcode.h m68k.h md.h obstack.h struc-symbol.h ! 162: $(CC) $(CFLAGS) $(OPTIONS) -c $< ! 163: ! 164: a68: $a $y ! 165: $(CC) -o a68 $(LDFLAGS) $a $y $(LOADLIBES) ! 166: ! 167: # VAX GAS -------------------------------------------------------------------- ! 168: z = vax.o atof-vax.o write.o read.o ! 169: ! 170: Z = vax.c atof-vax.c vax-opcode.h vax-inst.h make-gas.com objrecdef.h vms.c ! 171: ! 172: vax.o: vax.c a.out.h as.h expr.h flonum.h frags.h md.h obstack.h ! 173: vax.o: read.h struc-symbol.h symbols.h vax-inst.h vax-opcode.h 1.1 root 174: atof-vax.o: as.h flonum.h read.h 1.1.1.3 ! root 175: ! 176: avax: $a $z ! 177: $(CC) -o avax $(LDFLAGS) $a $z $(LOADLIBES) ! 178: ! 179: # global files --------------------------------------------------------------- ! 180: ! 181: messages.o: messages.c ! 182: $(CC) $(CFLAGS) $(OPTIONS) -c $< ! 183: ! 184: hash.o: hash.c ! 185: $(CC) $(CFLAGS) -Derror=as_fatal -c $< ! 186: ! 187: xmalloc.o: xmalloc.c ! 188: $(CC) $(CFLAGS) -Derror=as_fatal -c $< ! 189: ! 190: xrealloc.o: xrealloc.c ! 191: $(CC) $(CFLAGS) -Derror=as_fatal -c $< ! 192: ! 193: A =\ ! 194: as.c xrealloc.c xmalloc.c hash.c hex-value.c \ ! 195: atof-generic.c append.c messages.c expr.c bignum-copy.c \ ! 196: frags.c input-file.c input-scrub.c output-file.c read.c \ ! 197: subsegs.c symbols.c write.c strstr.c \ ! 198: flonum-const.c flonum-copy.c flonum-mult.c app.c version.c \ ! 199: gdb.c gdb-file.c gdb-symbols.c gdb-blocks.c obstack.c \ ! 200: gdb-lines.c ! 201: ! 202: H = \ ! 203: a.out.h as.h bignum.h expr.h flonum.h \ ! 204: frags.h hash.h input-file.h md.h \ ! 205: obstack.h read.h struc-symbol.h subsegs.h \ ! 206: symbols.h write.h ! 207: ! 208: gas-dist.tar: COPYING README $A $H $Z $Y $X $W $V Makefile ! 209: -rm -r gas-dist ! 210: mkdir gas-dist ! 211: ln COPYING README $A $H $Z $Y $X $W $V Makefile gas-dist ! 212: tar cvhf gas-dist.tar gas-dist ! 213: ! 214: gas-dist.tar.Z: gas-dist.tar ! 215: compress < gas-dist.tar > gas-dist.tar.Z ! 216: ! 217: clean: ! 218: rm -f a avax a68 a386 a32k asparc $a $v $w $x $y $z a core gmon.out bugs a.out ! 219: ! 220: dist: gas-dist.tar gas-dist.tar.Z ! 221: ! 222: install: a ! 223: cp a /usr/local/bin/gas ! 224: ! 225: ! 226: # General .o-->.h dependencies ! 227: ! 228: app.o: as.h ! 229: as.o: a.out.h as.h read.h struc-symbol.h write.h ! 230: atof-generic.o: flonum.h 1.1 root 231: bignum-copy.o: bignum.h 232: expr.o: a.out.h as.h expr.h flonum.h obstack.h read.h struc-symbol.h 233: expr.o: symbols.h 234: flonum-const.o: flonum.h 235: flonum-copy.o: flonum.h 236: flonum-mult.o: flonum.h 237: flonum-normal.o:flonum.h 238: flonum-print.o: flonum.h 239: frags.o: a.out.h as.h frags.h obstack.h struc-symbol.h subsegs.h 240: gdb.o: as.h 241: gdb-blocks.o: as.h 242: gdb-lines.o: as.h frags.h obstack.h 243: gdb-symbols.o: a.out.h as.h struc-symbol.h 244: hash.o: hash.h 245: input-file.o: input-file.h 246: input-scrub.o: as.h input-file.h read.h 247: messages.o: as.h 248: obstack.o: obstack.h 249: read.o: a.out.h as.h expr.h flonum.h frags.h hash.h md.h obstack.h 250: read.o: read.h struc-symbol.h symbols.h 251: subsegs.o: a.out.h as.h frags.h obstack.h struc-symbol.h subsegs.h write.h 252: symbols.o: a.out.h as.h frags.h hash.h obstack.h struc-symbol.h symbols.h 253: write.o: a.out.h as.h md.h obstack.h struc-symbol.h subsegs.h 254: write.o: symbols.h write.h 255: 256: flonum.h: bignum.h 257:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.