#
#CC=gcc
CC=cc
-ARCH=ALPHA
ifeq ($(CC),gcc)
DEFS=
#DEFS=/define=("VMS_DEBUG","DEBUG2","DEBUG3","DEBUG5","DEBUG_SYMS","DEBUG_ALPHA")
OPT=/noopt/debug
CFLAGS=/names=(as_is,shortened)\
- /include=([],[-.bfd],[.config],[-.include],[-])$(DEFS)$(OPT)\
+ /include=([],[-.bfd],[.config],"../include","../")$(DEFS)$(OPT)\
/prefix=(all,except=("getopt","optarg","optopt","optind","opterr"))
#LFLAGS=/debug/map=as.map
-LIBS=,sys$$library:vaxcrtl.olb/lib
endif
-OBJS=targ-cpu.obj,obj-format.obj,atof-targ.obj,app.obj,as.obj,atof-generic.obj,\
- cond.obj,depend.obj,expr.obj,flonum-konst.obj,\
+OBJS:=targ-cpu.obj,obj-format.obj,atof-targ.obj,app.obj,as.obj,\
+ atof-generic.obj,cond.obj,depend.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,ehopt.obj,dw2gencfi.obj,dwarf2dbg.obj,remap.obj
-LIBIBERTY = [-.libiberty]libiberty.olb
+ifeq ($(ARCH),IA64)
+OBJS:=$(OBJS),te-vms.obj
+endif
+LIBIBERTY = [-.libiberty]libiberty.olb
LIBBFD = [-.bfd]libbfd.olb
LIBOPCODES = [-.opcodes]libopcodes.olb
-BFDDEP = [-.bfd]bfd.h
all: as.exe
$(COMPILE.c) /noopt/obj=$@ $<
endif
+te-vms.obj: [.config]te-vms.c
+ $(COMPILE.c) /obj=$@ $< + sys$$library:sys$$lib_c.tlb/lib
+
clean:
$$ purge
$(RM) *.obj;