TARGET = cbmconvert

OBJS = main.o util.o read.o write.o unlynx.o unark.o unarc.o t64.o c2n.o \
       image.o archive.o
HDRS = util.h input.h output.h

.c.o:
	sc code=near data=near stringmerge nostkchk unsignedchar objectname=$@ $<


$(TARGET): $(OBJS)
	sc link to $(TARGET) data=auto $(OBJS) lib:sc.lib

main.o: main.c $(HDRS)
util.o: util.c $(HDRS)
image.o: image.c $(HDRS)
read.o: read.c $(HDRS)
write.o: write.c $(HDRS)
unlynx.o: unlynx.c $(HDRS)
unark.o: unark.c $(HDRS)
unarc.o: unarc.c $(HDRS)
t64.o: t64.c $(HDRS)
c2n.o: c2n.c $(HDRS)
