CC=sc

DASOBJS=das.o
DSOBJS=ds.o
CASOBJS=cas.o link.o st.o res.o op.o ex.o io.o
RELOCOBJS=reloc.o
SEMIOBJS=semi.o
NLOBJS=nl.o

all:	ds cas das reloc semi nl

das:	$(DASOBJS)
		$(CC) LINK $(DASOBJS) TO das

ds:		$(DSOBJS)
		$(CC) LINK $(DSOBJS) TO ds 

cas:	$(CASOBJS)
		$(CC) LINK $(CASOBJS) TO cas 

reloc:	$(RELOCOBJS)
		$(CC) LINK $(RELOCOBJS) TO reloc 

semi:	$(SEMIOBJS)
		$(CC) LINK $(SEMIOBJS) TO semi 

nl:		$(NLOBJS)
		$(CC) LINK $(NLOBJS) TO nl 

cas.o:	cas.c io.h op.h st.h link.h
        $(CC) cas.c

link.o:	link.c io.h ex.h res.h st.h
        $(CC) link.c

st.o:		st.c io.h ex.h op.h res.h
        $(CC) st.c

res.o:	res.c io.h ex.h st.h res.h
        $(CC) res.c

op.o:		op.c io.h ex.h st.h res.h op.h
        $(CC) op.c

ex.o:		ex.c io.h ex.h st.h res.h
        $(CC) ex.c

io.o:		io.c io.h op.h
        $(CC) io.c

ds.o:		ds.c
        $(CC) ds.c

das.o:	das.c
        $(CC) das.c

reloc.o:	reloc.c
        $(CC) reloc.c

semi.o:	semi.c
        $(CC) semi.c

nl.o:		nl.c
        $(CC) nl.c
