2009-09-01 Tristan Gingold <gingold@adacore.com>
[binutils.git] / gas / makefile.vms
blobb645b59b412f4d0e7677e49217f221830fe09399
2 # makefile for gas
4 # Created by Klaus Kaempf, kkaempf@progis.de
6 #CC=gcc
7 CC=cc
8 ARCH=ALPHA
10 ifeq ($(CC),gcc)
11 DEFS=
12 CFLAGS=/include=([],[-.bfd],[.config],[-.include],[-])$(DEFS)
13 LFLAGS=
14 LIBS=,GNU_CC_LIBRARY:libgcc/lib,sys$$library:vaxcrtl.olb/lib,GNU_CC_LIBRARY:crt0.obj
15 else
16 #DEFS=/define=("VMS_DEBUG","DEBUG2","DEBUG3","DEBUG5","DEBUG_SYMS","DEBUG_ALPHA")
17 OPT=/noopt/debug
18 CFLAGS=/names=(as_is,shortened)\
19  /include=([],[-.bfd],[.config],[-.include],[-])$(DEFS)$(OPT)\
20  /prefix=(all,except=("getopt","optarg","optopt","optind","opterr"))
21 #LFLAGS=/debug/map=as.map
22 LIBS=,sys$$library:vaxcrtl.olb/lib
23 endif
25 OBJS=targ-cpu.obj,obj-format.obj,atof-targ.obj,app.obj,as.obj,atof-generic.obj,\
26   cond.obj,depend.obj,expr.obj,flonum-konst.obj,\
27   flonum-copy.obj,flonum-mult.obj,frags.obj,hash.obj,input-file.obj,\
28   input-scrub.obj,literal.obj,messages.obj,output-file.obj,read.obj,\
29   subsegs.obj,symbols.obj,write.obj,listing.obj,ecoff.obj,stabs.obj,sb.obj,\
30   macro.obj,ehopt.obj,dw2gencfi.obj,dwarf2dbg.obj,remap.obj
32 LIBIBERTY = [-.libiberty]libiberty.olb
34 LIBBFD = [-.bfd]libbfd.olb
35 LIBOPCODES = [-.opcodes]libopcodes.olb
36 BFDDEP = [-.bfd]bfd.h
38 all: as.exe
40 as.exe: $(OBJS) $(LIBOPCODES) $(LIBBFD) $(LIBIBERTY)
41         link$(LFLAGS)/exe=$@ $(OBJS),$(LIBOPCODES)/lib,$(LIBBFD)/lib,$(LIBIBERTY)/lib$(LIBS)
43 ifneq ($(CC),gcc)
44 # Work-around a DEC-C bug.
45 targ-cpu.obj: targ-cpu.c targ-cpu.h
46               $(COMPILE.c) /noopt/obj=$@ $<
47 endif
49 clean:
50         $$ purge
51         $(RM) *.obj;
52         $(RM) *.exe;
53         $(RM) atof-targ.c;
54         $(RM) obj-format.c;
55         $(RM) obj-format.h;
56         $(RM) targ-env.h;
57         $(RM) targ-cpu.h;
58         $(RM) targ-cpu.c;