
# Make file for CVM-REVA 
# Digital Designs and Systems, Inc.  
# Chris Barnhart ceb@ai.mit.edu 5-5-95

# Path to C30/C40 compilers
TIPATH = j:/bin

#path to the CVM Operating system - NEOS
OS_INC = j:/cvmvis/neos

# path to the CVM VISION library
LIB_INC = j:/cvmvis/cvmvis

# PATH to TI run time support libary
RTS_INC = j:/lib



AR = $(TIPATH)/ar30
CC = $(TIPATH)/cl30
LNK = $(TIPATH)/lnk30
ASM = $(TIPATH)/asm30
HEX = $(TIPATH)/hex30

# C compiler options
CCFLAGS =  -s -k -q -o -i$(OS_INC) -i$(RTS_INC) -i$(LIB_INC) -al -dCVMREVA -mi

.SUFFIXES: .c .obj .out .i0


.c.obj:
	$(CC) $(CCFLAGS) $<

.obj.out:
	@echo Linking $< with $*.cmd
	$(LNK) $*.cmd

.out.i0:
	@echo Translating $< to $@
	$(HEX) -i -romwidth 32 $<

all: example1.i0 example2.i0 example3.i0 example4.i0 example5.i0 example6.i0 example7.i0


clean:
	@echo Cleaning up
	del *.map
	del *.lst
	del *.obj
