CC=gcc
CCFLAGS= -O2
DEFS= -DCYCLE_SOFT_MAX=100000 -DCYCLE_HARD_MAX=1000000

CFILES= cache1.c cache2.c clearq.c compile1.c compile2.c construct.c \
        dbhandle.c edit.c file.c globals.c interface.c interp.c main.c \
        oper1.c oper2.c preprocess.c sys1.c sys2.c sys3.c sys4.c sys5.c \
        sys6a.c sys6b.c sys7.c token.c

OFILES= cache1.o cache2.o clearq.o compile1.c compile2.o construct.o \
        dbhandle.o edit.o file.o globals.o interface.o interp.o main.o \
        oper1.o oper2.o preprocess.o sys1.o sys2.o sys3.o sys4.o sys5.o \
        sys6a.o sys6b.o sys7.o token.o

.c.o: $(OFILES)
	$(CC) $(CCFLAGS) $(DEFS) -c $<

all: netci

netci: $(OFILES)
	$(CC) $(CCFLAGS) $(DEFS) $(OFILES) -o netci
	cat after.txt

clean:
	rm -f *.o

cache1.o: cache1.c config.h stddef.h object.h globals.h construct.h \
 dbhandle.h interp.h file.h
cache2.o: cache2.c config.h stddef.h object.h globals.h construct.h \
 dbhandle.h interp.h file.h clearq.h
clearq.o: clearq.c config.h stddef.h object.h dbhandle.h construct.h \
 interp.h cache.h globals.h edit.h
compile1.o: compile1.c config.h stddef.h object.h instr.h construct.h \
 file.h token.h globals.h
compile2.o: compile2.c config.h stddef.h object.h instr.h construct.h \
 file.h token.h globals.h
construct.o: construct.c config.h stddef.h object.h instr.h construct.h \
 globals.h cache.h
dbhandle.o: dbhandle.c config.h stddef.h object.h globals.h construct.h \
 interface.h dbhandle.h
edit.o: edit.c config.h stddef.h object.h interface.h globals.h file.h
file.o: file.c config.h stddef.h object.h file.h globals.h interp.h \
 construct.h
globals.o: globals.c config.h stddef.h object.h
interface.o: interface.c config.h stddef.h object.h globals.h interp.h \
 dbhandle.h construct.h clearq.h file.h cache.h edit.h interface.h
interp.o: interp.c config.h stddef.h object.h construct.h interp.h \
 instr.h operproto.h globals.h cache.h
main.o: main.c config.h stddef.h object.h interp.h interface.h cache.h \
 construct.h clearq.h globals.h dbhandle.h
oper1.o: oper1.c config.h stddef.h object.h construct.h instr.h operproto.h \
 operdefine.h globals.h cache.h
oper2.o: oper2.c config.h stddef.h object.h construct.h instr.h operproto.h \
 operdefine.h globals.h
preprocess.o: preprocess.c config.h stddef.h object.h file.h token.h \
 construct.h instr.h
sys1.o: sys1.c config.h stddef.h object.h instr.h construct.h compile.h \
 interp.h operproto.h interface.h dbhandle.h globals.h cache.h
sys2.o: sys2.c config.h stddef.h object.h instr.h construct.h compile.h \
 interp.h operproto.h interface.h dbhandle.h globals.h
sys3.o: sys3.c config.h stddef.h object.h instr.h construct.h compile.h \
 interp.h operproto.h interface.h dbhandle.h globals.h
sys4.o: sys4.c config.h stddef.h object.h instr.h construct.h compile.h \
 interp.h operproto.h interface.h dbhandle.h globals.h cache.h
sys5.o: sys5.c config.h stddef.h object.h instr.h construct.h compile.h \
 interp.h operproto.h interface.h dbhandle.h globals.h cache.h file.h \
 edit.h
sys6a.o: sys6a.c config.h stddef.h object.h operproto.h instr.h construct.h
sys6b.o: sys6b.c config.h stddef.h object.h operproto.h instr.h construct.h \
 dbhandle.h
sys7.o: sys7.c config.h object.h instr.h stddef.h interp.h interface.h \
 globals.h cache.h operproto.h
token.o: token.c config.h stddef.h object.h file.h token.h construct.h instr.h