.c.o:
#        copy $*.c to ram:
        lc -ff -o$*.o $*.c
#        lc -ff -oram:$*.o ram:$*.c
#        copy ram:$*.o to $*.o
#        -delete ram:$*.o
#        -delete ram:$*.c

ofiles = scrnio.o scrnops.o scrndef.o main.o gadgetdef.o menudef.o mouse.o gadgetuse.o
gfiles = bezpt.o revolve.o control.o poly.o fasttrig.o
imagefiles = readilbm.o writeilbm.o packer.o mapstuff.o mapcalc.o getfilenames.o mapimgpix.o

all:		surf MergeRGB tov3d

surf:		$(ofiles) $(gfiles) $(imagefiles)
		blink with surf.lnk

MergeRGB:	MergeRGB.o
		Blink with MergeRGB.lnk

MergeRGB.o:	mergergb.c

tov3d:		tov3d.o
		blink with tov3d.lnk

tov3d.o:	tov3d.c

bezpt.o:	bezpt.c scrnio.h control.h bezpt.h mytypes.h

control.o:	control.c bezpt.h control.h scrnio.h mytypes.h

fasttrig.o:	fasttrig.c fasttrig.h

gadgetdef.o:	gadgetdef.c scrnio.ih scrndef.h gadgetdef.h mytypes.h bezpt.h poly.h revolve.h readilbm.h

gadgetuse.o:	gadgetuse.c scrnio.ih scrndef.h gadgetdef.h mytypes.h poly.h readilbm.h

getfilenames.o:	getfilenames.c scrnio.ih scrndef.h mytypes.h

main.o:		main.c scrnio.h mytypes.h

mapcalc.o:	mapcalc.c mytypes.h revolve.h mapstuff.h menuexp.h

mapimgpix.o:	mapimgpix.c mytypes.h readilbm.h

mapstuff.o:	mapstuff.c mytypes.h poly.h bezpt.h revolve.h readilbm.h mapstuff.h menuexp.h

menudef.o:	menudef.c menuexp.h gadgetdef.h scrnio.h menudef.h scrndef.h poly.h readilbm.h menu_color.c menu_scrn.c menu_image.c menu_files.c

mouse.o:	mouse.c scrnio.ih scrnio.h mytypes.h bezpt.h control.h

packer.o:	packer.c

poly.o:		poly.c mytypes.h scrnio.h bezpt.h revolve.h control.h poly.h readilbm.h menuexp.h

readilbm.o:	readilbm.c readilbm.h

revolve.o:	revolve.c fasttrig.h bezpt.h revolve.h mytypes.h

scrndef.o:	scrndef.c scrndef.h

scrnio.o:	scrnio.c scrnio.ih scrndef.h scrnio.h gadgetdef.h menudef.h

scrnops.o:	scrnops.c scrnio.ih scrndef.h scrnio.h gadgetdef.h menudef.h bezpt.h revolve.h control.h poly.h

writeilbm.o:	writeilbm.c mytypes.h

