# Intel C Code Builder runtime Makefile

CFLAGS= -c -O2
CC=icc

HDRS = ..\h\define.h ..\h\config.h ..\h\typedefs.h ..\h\sys.h\
	  ..\h\proto.h ..\h\cstructs.h ..\h\cpuconf.h \
	  ..\h\rmacros.h ..\h\rexterns.h ..\h\rstructs.h \
	  ..\h\rproto.h ..\h\cproto.h

####################################################################
#
# Make entries for iconx
#

OBJ=	xcnv.obj xdata.obj xdef.obj xerr_msg.obj xextcall.obj xfconv.obj \
	  xfmath.obj xfmisc.obj xfmonitr.obj xfscan.obj xfstr.obj xfstranl.obj \
	  xfstruct.obj xfsys.obj ximain.obj ximisc.obj xinit.obj xinterp.obj \
	  xinvoke.obj xistart.obj xkeyword.obj xlmisc.obj xoarith.obj \
	  xoasgn.obj xocat.obj xocomp.obj xomisc.obj xoref.obj xoset.obj \
	  xovalue.obj xralc.obj xrcoexpr.obj xrcomp.obj xrdebug.obj \
	  xrlocal.obj xrlrgint.obj xrmemmgt.obj xrmisc.obj xrstruct.obj \
	  xrsys.obj xfxtra.obj

iconx: $(OBJ)
        icc @iconx.lnk
	copy iconx.exe ..\..\bin

xcnv.obj: cnv.r $(HDRS)
	..\..\bin\rtt32 -x cnv.r
	$(CC) $(CFLAGS) xcnv.c
	del xcnv.c

xdata.obj: data.r $(HDRS)
	..\..\bin\rtt32 -x data.r
	$(CC) $(CFLAGS) xdata.c
	del xdata.c

xdef.obj: def.r $(HDRS)
	..\..\bin\rtt32 -x def.r
	$(CC) $(CFLAGS) xdef.c
	del xdef.c

xerr_msg.obj: err_msg.r $(HDRS)
	..\..\bin\rtt32 -x err_msg.r
	$(CC) $(CFLAGS) xerr_msg.c
	del xerr_msg.c

xextcall.obj: extcall.r $(HDRS)
	..\..\bin\rtt32 -x extcall.r
	$(CC) $(CFLAGS) xextcall.c
	del xextcall.c

xfconv.obj: fconv.r $(HDRS)
	..\..\bin\rtt32 -x fconv.r
	$(CC) $(CFLAGS) xfconv.c
	del xfconv.c

xfmath.obj: fmath.r $(HDRS)
	..\..\bin\rtt32 -x fmath.r
	$(CC) $(CFLAGS) xfmath.c
	del xfmath.c

xfmisc.obj: fmisc.r $(HDRS)
	..\..\bin\rtt32 -x fmisc.r
	$(CC) $(CFLAGS) xfmisc.c
	del xfmisc.c

xfmonitr.obj: fmonitr.r $(HDRS)
	..\..\bin\rtt32 -x fmonitr.r
	$(CC) $(CFLAGS) xfmonitr.c
	del xfmonitr.c

xfscan.obj: fscan.r $(HDRS)
	..\..\bin\rtt32 -x fscan.r
	$(CC) $(CFLAGS) xfscan.c
	del xfscan.c

xfstr.obj: fstr.r $(HDRS)
	..\..\bin\rtt32 -x fstr.r
	$(CC) $(CFLAGS) xfstr.c
	del xfstr.c

xfstranl.obj: fstranl.r $(HDRS)
	..\..\bin\rtt32 -x fstranl.r
	$(CC) $(CFLAGS) xfstranl.c
	del xfstranl.c

xfstruct.obj: fstruct.r $(HDRS)
	..\..\bin\rtt32 -x fstruct.r
	$(CC) $(CFLAGS) xfstruct.c
	del xfstruct.c

xfsys.obj: fsys.r $(HDRS)
	..\..\bin\rtt32 -x fsys.r
	$(CC) $(CFLAGS) xfsys.c
	del xfsys.c

xfxtra.obj: fxtra.r $(HDRS)
	..\..\bin\rtt32 -x fxtra.r
	$(CC) $(CFLAGS) xfxtra.c
	del xfxtra.c

ximain.obj: imain.r $(HDRS)
	..\..\bin\rtt32 -x imain.r
	$(CC) $(CFLAGS) ximain.c
	del ximain.c

ximisc.obj: imisc.r $(HDRS)
	..\..\bin\rtt32 -x imisc.r
	$(CC) $(CFLAGS) ximisc.c
	del ximisc.c

xinit.obj: init.r $(HDRS)
	..\..\bin\rtt32 -x init.r
	$(CC) $(CFLAGS) xinit.c
	del xinit.c

xinterp.obj: interp.r $(HDRS)
	..\..\bin\rtt32 -x interp.r
	$(CC) $(CFLAGS) xinterp.c
	del xinterp.c

xinvoke.obj: invoke.r $(HDRS)
	..\..\bin\rtt32 -x invoke.r
	$(CC) $(CFLAGS) xinvoke.c
	del xinvoke.c

xistart.obj: istart.r $(HDRS)
	..\..\bin\rtt32 -x istart.r
	$(CC) $(CFLAGS) xistart.c
	del xistart.c

xkeyword.obj: keyword.r $(HDRS)
	..\..\bin\rtt32 -x keyword.r
	$(CC) $(CFLAGS) xkeyword.c
	del xkeyword.c

xlmisc.obj: lmisc.r $(HDRS)
	..\..\bin\rtt32 -x lmisc.r
	$(CC) $(CFLAGS) xlmisc.c
	del xlmisc.c

xoarith.obj: oarith.r $(HDRS)
	..\..\bin\rtt32 -x oarith.r
	$(CC) $(CFLAGS) xoarith.c
	del xoarith.c

xoasgn.obj: oasgn.r $(HDRS)
	..\..\bin\rtt32 -x oasgn.r
	$(CC) $(CFLAGS) xoasgn.c
	del xoasgn.c

xocat.obj: ocat.r $(HDRS)
	..\..\bin\rtt32 -x ocat.r
	$(CC) $(CFLAGS) xocat.c
	del xocat.c

xocomp.obj: ocomp.r $(HDRS)
	..\..\bin\rtt32 -x ocomp.r
	$(CC) $(CFLAGS) xocomp.c
	del xocomp.c

xomisc.obj: omisc.r $(HDRS)
	..\..\bin\rtt32 -x omisc.r
	$(CC) $(CFLAGS) xomisc.c
	del xomisc.c

xoref.obj: oref.r $(HDRS)
	..\..\bin\rtt32 -x oref.r
	$(CC) $(CFLAGS) xoref.c
	del xoref.c

xoset.obj: oset.r $(HDRS)
	..\..\bin\rtt32 -x oset.r
	$(CC) $(CFLAGS) xoset.c
	del xoset.c

xovalue.obj: ovalue.r $(HDRS)
	..\..\bin\rtt32 -x ovalue.r
	$(CC) $(CFLAGS) xovalue.c
	del xovalue.c

xralc.obj: ralc.r $(HDRS)
	..\..\bin\rtt32 -x ralc.r
	$(CC) $(CFLAGS) xralc.c
	del xralc.c

xrcoexpr.obj: rcoexpr.r $(HDRS)
	..\..\bin\rtt32 -x rcoexpr.r
	$(CC) $(CFLAGS) xrcoexpr.c
	del xrcoexpr.c

xrcomp.obj: rcomp.r $(HDRS)
	..\..\bin\rtt32 -x rcomp.r
	$(CC) $(CFLAGS) xrcomp.c
	del xrcomp.c

xrdebug.obj: rdebug.r $(HDRS)
	..\..\bin\rtt32 -x rdebug.r
	$(CC) $(CFLAGS) xrdebug.c
	del xrdebug.c

xrlocal.obj: rlocal.r $(HDRS)
	..\..\bin\rtt32 -x rlocal.r
	$(CC) $(CFLAGS) xrlocal.c
	del xrlocal.c

xrlrgint.obj: rlrgint.r $(HDRS)
	..\..\bin\rtt32 -x rlrgint.r
	$(CC) $(CFLAGS) xrlrgint.c
	del xrlrgint.c

xrmemmgt.obj: rmemmgt.r $(HDRS)
	..\..\bin\rtt32 -x rmemmgt.r
	$(CC) $(CFLAGS) xrmemmgt.c
	del xrmemmgt.c

xrmisc.obj: rmisc.r $(HDRS)
	..\..\bin\rtt32 -x rmisc.r
	$(CC) $(CFLAGS) xrmisc.c
	del xrmisc.c

xrstruct.obj: rstruct.r $(HDRS)
	..\..\bin\rtt32 -x rstruct.r
	$(CC) $(CFLAGS) xrstruct.c
	del xrstruct.c

xrsys.obj: rsys.r $(HDRS)
	..\..\bin\rtt32 -x rsys.r
	$(CC) $(CFLAGS) xrsys.c
	del xrsys.c
