1996-08-08 16:42:41 +00:00
|
|
|
#
|
|
|
|
# makefile for gas
|
|
|
|
#
|
1997-02-14 02:55:29 +00:00
|
|
|
# Created by Klaus K"ampf, kkaempf@progis.de
|
1996-08-08 16:42:41 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
ifeq ($(CC),gcc)
|
|
|
|
DEFS=
|
1997-04-01 21:26:16 +00:00
|
|
|
CFLAGS=/include=([],[-.bfd],[.config],[-.include],[-])$(DEFS)
|
1996-08-08 16:42:41 +00:00
|
|
|
LFLAGS=
|
1997-10-20 19:43:05 +00:00
|
|
|
LIBS=,GNU_CC_LIBRARY:libgcc/lib,sys$$library:vaxcrtl.olb/lib,GNU_CC_LIBRARY:crt0.obj
|
1996-08-08 16:42:41 +00:00
|
|
|
else
|
|
|
|
DEFS=/define=("table_size_of_flonum_powers_of_ten"="tabsiz_flonum_powers_of_ten",\
|
|
|
|
"_bfd_generic_get_section_contents_in_window"="_bfd_generic_get_win_section_cont",\
|
|
|
|
"_elf_section_from_bfd_section"="_bfd_elf_sec_from_bfd_sec","const=")
|
1997-02-14 02:55:29 +00:00
|
|
|
CFLAGS=/noopt/debug/include=([],[-.bfd],[.config],[-.include],[-])$(DEFS)\
|
|
|
|
/warnings=disable=(missingreturn,implicitfunc,ptrmismatch,undefescap,longextern,duptypespec)
|
1996-08-08 16:42:41 +00:00
|
|
|
LFLAGS=
|
1997-10-20 19:43:05 +00:00
|
|
|
LIBS=,sys$$library:vaxcrtl.olb/lib
|
1996-08-08 16:42:41 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
OBJS=targ-cpu.obj,obj-format.obj,atof-targ.obj,app.obj,as.obj,atof-generic.obj,\
|
|
|
|
bignum-copy.obj,cond.obj,expr.obj,flonum-konst.obj,flonum-copy.obj,\
|
|
|
|
flonum-mult.obj,frags.obj,hash.obj,input-file.obj,input-scrub.obj,\
|
|
|
|
literal.obj,messages.obj,output-file.obj,read.obj,subsegs.obj,symbols.obj,\
|
|
|
|
write.obj,listing.obj,ecoff.obj,stabs.obj,sb.obj,macro.obj
|
|
|
|
|
1997-04-05 18:20:59 +00:00
|
|
|
GASPOBJS = gasp.obj,macro.obj,sb.obj,hash.obj
|
|
|
|
|
1996-08-08 16:42:41 +00:00
|
|
|
LIBIBERTY = [-.libiberty]libiberty.olb
|
|
|
|
LIBBFD = [-.bfd]libbfd.olb
|
|
|
|
LIBOPCODES = [-.opcodes]libopcodes.olb
|
|
|
|
|
1997-04-01 21:26:16 +00:00
|
|
|
all: config.status [-.bfd]bfd.h as.exe gasp.exe
|
1996-08-08 16:42:41 +00:00
|
|
|
|
|
|
|
as.exe: $(OBJS) $(LIBOPCODES) $(LIBBFD) $(LIBIBERTY)
|
|
|
|
link$(LFLAGS)/exe=$@ $(OBJS),$(LIBOPCODES)/lib,$(LIBBFD)/lib,$(LIBIBERTY)/lib$(LIBS)
|
|
|
|
|
1997-04-05 18:20:59 +00:00
|
|
|
gasp.exe: $(GASPOBJS) $(LIBBFD) $(LIBIBERTY)
|
|
|
|
link$(LFLAGS)/exe=$@ $(GASPOBJS),$(LIBBFD)/lib,$(LIBIBERTY)/lib$(LIBS)
|
1996-08-08 16:42:41 +00:00
|
|
|
|
1997-04-01 21:26:16 +00:00
|
|
|
config.status:
|
|
|
|
$$ @config-gas
|
|
|
|
|
1996-08-08 16:42:41 +00:00
|
|
|
targ-cpu.c: [.config]tc-alpha.c
|
|
|
|
copy $< $@
|
|
|
|
targ-cpu.h: [.config]tc-alpha.h
|
|
|
|
copy $< $@
|
|
|
|
targ-env.h: [.config]te-generic.h
|
|
|
|
copy $< $@
|
|
|
|
obj-format.h: [.config]obj-evax.h
|
|
|
|
copy $< $@
|
|
|
|
obj-format.c: [.config]obj-evax.c
|
|
|
|
copy $< $@
|
|
|
|
atof-targ.c: [.config]atof-ieee.c
|
|
|
|
copy $< $@
|
|
|
|
|
|
|
|
targ-cpu.obj: targ-cpu.c targ-cpu.h [.config]atof-vax.c
|
1997-04-01 21:26:16 +00:00
|
|
|
|
|
|
|
[-.bfd]bfd.h:
|
|
|
|
$(CD) [-.bfd]
|
|
|
|
gmake -f makefile.vms
|
|
|
|
$(CD) [-.gas]
|
|
|
|
|
|
|
|
clean:
|
|
|
|
$$ purge
|
|
|
|
$(RM) *.obj;
|
|
|
|
$(RM) *.exe;
|
|
|
|
$(RM) atof-targ.c;
|
|
|
|
$(RM) obj-format.c;
|
|
|
|
$(RM) obj-format.h;
|
|
|
|
$(RM) targ-env.h;
|
|
|
|
$(RM) targ-cpu.h;
|
|
|
|
$(RM) targ-cpu.c;
|
|
|
|
$(RM) config.status;
|