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=")
|
1998-05-06 19:32:31 +00:00
|
|
|
CFLAGS=/noopt/nodebug/include=([],[-.bfd],[.config],[-.include],[-])$(DEFS)\
|
1997-02-14 02:55:29 +00:00
|
|
|
/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,\
|
1997-11-22 21:01:27 +00:00
|
|
|
bignum-copy.obj,cond.obj,depend.obj,expr.obj,flonum-konst.obj,flonum-copy.obj,\
|
1996-08-08 16:42:41 +00:00
|
|
|
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,\
|
1998-05-06 19:27:05 +00:00
|
|
|
write.obj,listing.obj,ecoff.obj,ehopt.obj,stabs.obj,sb.obj,macro.obj
|
1996-08-08 16:42:41 +00:00
|
|
|
|
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]
|
1998-05-06 19:32:31 +00:00
|
|
|
gmake -f makefile.vms "CC=$(CC)"
|
1997-04-01 21:26:16 +00:00
|
|
|
$(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;
|