#
# Use the first of the compile commands with lattice, the second with gcc
#

%.o : %.c
	lc -iINCLUDE:  $*
#	gcc -c  $*.c

#
# Use the first of thelink  commands with lattice, the second with gcc
#

rdes : rdes.o setkey.o rwdata.o enc.o
	blink from lib:c.o rdes.o rwdata.o setkey.o enc.o to rdes lib lib:lc.lib
#	gcc -ordes rdes.o rwdata.o setkey.o enc.o -lc

rdes.o : rdes.c

setkey.o : setkey.c

rwdata.o : rwdata.c

#
# Comment out one of the following targets to use either the
# 68k or the C version of the de/encrypt routine
#

#enc.o : enc.c

enc.o :  enc.a
	asm enc.a
