.c.o:
	sc > $>.cmp.er noicons $*.c

gfx2grob: \
	Convert.o \
	FileStuf.o \
	GetOpts.o \
	IffStuff.o \
	gfx2grob.o \
	PrintMsg.o

	slink > $@.lnk.er noicons < with <
		from
			lib:cres.o
			Convert.o
			FileStuf.o
			GetOpts.o
			IffStuff.o
			gfx2grob.o
			PrintMsg.o
		to $@
		lib
			lib:sc.lib
			lib:iff.lib
			lib:amiga.lib
		batch
<

Convert.o: \
	Convert.c \
	gfx2grob.h \
	PrintMsg.h \
	FileStuf.h \
	IffStuff.h \
	Convert.h

FileStuf.o: \
	FileStuf.c \
	gfx2grob.h \
	PrintMsg.h \
	FileStuf.h \
	IffStuff.h

GetOpts.o: \
	GetOpts.c \
	gfx2grob.h \
	PrintMsg.h \
	GetOpts.h

IffStuff.o: \
	IffStuff.c \
	gfx2grob.h \
	PrintMsg.h \
	Convert.h \
	iff.h \
	IffStuff.h

gfx2grob.o: \
	gfx2grob.c \
	gfx2grob.h \
	PrintMsg.h \
	GetOpts.h \
	Convert.h

PrintMsg.o: \
	PrintMsg.c \
	gfx2grob.h \
	Convert.h \
	IffStuff.h \
	PrintMsg.h

clean:
	-delete \#?.er
	-delete \#?.o
