# MAKEFILE FOR RCOMP

include ../makedef

RCOMP_INCL = rcdecl.h \
	rul_tags.h \
	../op_codes.h \
	../sp_codes.h \
	errors.h \
	rcfunc.h

RCOMP_OBJS = \
 rctype.o \
 cscn.o \
 getopt.o \
 ccst.o \
 clu.o \
 scan.o \
 specif.o \
 get_csmb.o \
 get_iden.o \
 cs.o \
 cj.o \
 cerr.o \
 cgop.o 

rcomp: $(RCOMP_OBJS)
	$(CC) -g -o rcomp $(RCOMP_OBJS)

rcdecl.h: rul_tags.h \
	../op_codes.h \
	../sp_codes.h \
	errors.h \
	rcfunc.h

rctype.o: \
	rctype.c \
	$(RCOMP_INCL)

cscn.o: \
	cscn.c \
	$(RCOMP_INCL) 

scan.o: \
	scan.c \
	$(RCOMP_INCL)

specif.o: \
	specif.c \
	$(RCOMP_INCL)

get_csmb.o: \
	get_csmb.c \
	$(RCOMP_INCL)

get_iden.o: \
	get_iden.c \
	$(RCOMP_INCL)

getopt.o: \
	getopt.c \
	$(RCOMP_INCL)

ccst.o: \
	ccst.c \
	parse.inc \
	left.inc \
	right.inc \
	$(RCOMP_INCL)

clu.o: \
	 clu.c \
	$(RCOMP_INCL)

cs.o: \
	cs.c \
	$(RCOMP_INCL)

cj.o: \
	cj.c \
	$(RCOMP_INCL)

cerr.o: \
	cerr.c \
	$(RCOMP_INCL)

cgop.o: \
	cgop.c \
	../op_names.inc \
	../sp_names.inc \
	$(RCOMP_INCL)

