LIBS=           -I/opt/sybase/include  -lsybdb -L/opt/sybase/lib -lm
 
CFLAGS=         -O2 -I/opt/sybase/include  -lsybdb -L/opt/sybase/lib


OBJS = analysis.o bload.o bsave.o build.o classcom.o \
       classfun.o commline.o conscomp.o constrct.o \
       deffacts.o deffnctn.o defglobl.o defins.o defrule.o \
       deftmcom.o deftmfun.o deftmlhs.o deftmpsr.o drive.o \
       drulebin.o edbasic.o edmain.o edmisc.o edstruct.o \
       edterm.o engine.o evaluatn.o expressn.o factcom.o \
       factmngr.o generate.o genrcbin.o genrccmp.o genrccom.o \
       genrcfun.o inscom.o insfun.o insquery.o intrfile.o \
       lgcldpnd.o main.o match.o math.o memory.o msgcom.o \
       msgfun.o multivar.o objbin.o objcmp.o parsutil.o \
       reorder.o reteutil.o retract.o router.o rulecom.o \
       ruleprsr.o scanner.o spclform.o strings.o symbol.o \
       sysdep.o sysio.o syspred.o sysprime.o syssecnd.o \
       textpro.o utility.o variable.o dbfun.o

clips: $(OBJS)
	cc -o clips $(OBJS) -lm -ltermcap $(CFLAGS) $(LIBS)


analysis.o : analysis.c setup.h constant.h symbol.h clipsmem.h expressn.h \
  reorder.h variable.h analysis.h generate.h utility.h router.h deftempl.h \
  facts.h match.h engine.h defrule.h network.h evaluatn.h defglobl.h
bload.o : bload.c setup.h clipsmem.h utility.h expressn.h symbol.h evaluatn.h \
  constant.h router.h constrct.h bload.h bsave.h genrcbin.h genrcfun.h \
  object.h deffnctn.h
bsave.o : bsave.c setup.h clipsmem.h constant.h symbol.h expressn.h evaluatn.h \
  router.h utility.h genrcbin.h genrcfun.h object.h deffnctn.h bsave.h bload.h
build.o : build.c setup.h constant.h clipsmem.h router.h expressn.h symbol.h \
  constrct.h network.h match.h engine.h defrule.h evaluatn.h facts.h \
  variable.h generate.h utility.h reteutil.h drive.h build.h
classcom.o : classcom.c setup.h bload.h expressn.h symbol.h objbin.h object.h \
  evaluatn.h constant.h objcmp.h classfun.h clipsmem.h constrct.h facts.h \
  match.h engine.h defrule.h network.h inscom.h insfun.h insquery.h msgcom.h \
  msgfun.h router.h scanner.h parsutil.h utility.h classcom.h defins.h
classfun.o : classfun.c setup.h bload.h expressn.h symbol.h defins.h object.h \
  evaluatn.h constant.h clipsmem.h constrct.h inscom.h insfun.h msgcom.h \
  msgfun.h router.h scanner.h utility.h classfun.h
commline.o : commline.c setup.h constant.h commline.h symbol.h clipsmem.h \
  scanner.h expressn.h evaluatn.h utility.h router.h constrct.h generate.h \
  spclform.h intrfile.h
conscomp.o : conscomp.c setup.h symbol.h clipsmem.h constant.h expressn.h \
  evaluatn.h utility.h router.h conscomp.h deffnctn.h genrcfun.h object.h
constrct.o : constrct.c setup.h constant.h clipsmem.h symbol.h scanner.h \
  router.h expressn.h evaluatn.h constrct.h utility.h spclform.h parsutil.h
deffacts.o : deffacts.c setup.h constant.h clipsmem.h symbol.h scanner.h \
  router.h expressn.h evaluatn.h constrct.h utility.h parsutil.h generate.h \
  deffacts.h bload.h bsave.h conscomp.h deffnctn.h genrcfun.h object.h
deffnctn.o : deffnctn.c setup.h constant.h clipsmem.h scanner.h constrct.h \
  spclform.h symbol.h generate.h expressn.h router.h utility.h deffnctn.h \
  evaluatn.h facts.h match.h engine.h defrule.h network.h parsutil.h \
  sysprime.h defglobl.h genrcfun.h object.h bload.h bsave.h conscomp.h
defglobl.o : defglobl.c setup.h constant.h clipsmem.h symbol.h scanner.h \
  expressn.h evaluatn.h constrct.h router.h utility.h facts.h match.h \
  engine.h defrule.h network.h generate.h defglobl.h bload.h bsave.h \
  conscomp.h deffnctn.h genrcfun.h object.h
defins.o : defins.c setup.h bload.h expressn.h symbol.h clipsmem.h constant.h \
  constrct.h engine.h match.h evaluatn.h facts.h network.h defrule.h \
  generate.h inscom.h object.h router.h scanner.h utility.h defins.h
defrule.o : defrule.c setup.h constant.h symbol.h clipsmem.h scanner.h \
  expressn.h evaluatn.h router.h constrct.h network.h match.h engine.h \
  defrule.h facts.h reorder.h analysis.h ruleprsr.h retract.h build.h drive.h \
  reteutil.h utility.h variable.h spclform.h parsutil.h generate.h deftmfun.h \
  defglobl.h bload.h
deftmcom.o : deftmcom.c setup.h clipsmem.h expressn.h symbol.h evaluatn.h \
  constant.h utility.h constrct.h router.h facts.h match.h engine.h defrule.h \
  network.h deftempl.h reorder.h deftmpsr.h deftmfun.h scanner.h bload.h \
  bsave.h conscomp.h deffnctn.h genrcfun.h object.h
deftmfun.o : deftmfun.c setup.h constant.h clipsmem.h symbol.h scanner.h \
  expressn.h evaluatn.h router.h utility.h variable.h facts.h match.h engine.h \
  defrule.h network.h generate.h commline.h parsutil.h deftempl.h reorder.h \
  deftmfun.h
deftmlhs.o : deftmlhs.c setup.h constant.h clipsmem.h symbol.h scanner.h \
  expressn.h router.h utility.h constrct.h reorder.h ruleprsr.h parsutil.h \
  generate.h deftempl.h facts.h match.h engine.h defrule.h network.h \
  evaluatn.h deftmlhs.h
deftmpsr.o : deftmpsr.c setup.h constant.h clipsmem.h symbol.h scanner.h \
  expressn.h router.h utility.h constrct.h reorder.h ruleprsr.h parsutil.h \
  generate.h deftempl.h facts.h match.h engine.h defrule.h network.h \
  evaluatn.h deftmpsr.h
drive.o : drive.c setup.h constant.h symbol.h clipsmem.h expressn.h evaluatn.h \
  network.h match.h engine.h defrule.h facts.h reteutil.h utility.h drive.h \
  router.h retract.h generate.h lgcldpnd.h
drulebin.o : drulebin.c setup.h symbol.h constant.h expressn.h evaluatn.h \
  utility.h reteutil.h facts.h match.h engine.h defrule.h network.h build.h \
  conscomp.h deffnctn.h genrcfun.h object.h bload.h bsave.h clipsmem.h
edbasic.o : edbasic.c setup.h ed.h clips.h constant.h clipsmem.h symbol.h \
  router.h sysdep.h expressn.h evaluatn.h facts.h match.h engine.h defrule.h \
  network.h constrct.h utility.h intrfile.h drive.h deffacts.h deftempl.h \
  reorder.h defglobl.h deffnctn.h genrccom.h genrcfun.h object.h extobj.h \
  scanner.h
edmain.o : edmain.c setup.h ed.h clips.h constant.h clipsmem.h symbol.h \
  router.h sysdep.h expressn.h evaluatn.h facts.h match.h engine.h defrule.h \
  network.h constrct.h utility.h intrfile.h drive.h deffacts.h deftempl.h \
  reorder.h defglobl.h deffnctn.h genrccom.h genrcfun.h object.h extobj.h \
  scanner.h
edmisc.o : edmisc.c setup.h ed.h clips.h constant.h clipsmem.h symbol.h \
  router.h sysdep.h expressn.h evaluatn.h facts.h match.h engine.h defrule.h \
  network.h constrct.h utility.h intrfile.h drive.h deffacts.h deftempl.h \
  reorder.h defglobl.h deffnctn.h genrccom.h genrcfun.h object.h extobj.h \
  scanner.h
edstruct.o : edstruct.c setup.h ed.h clips.h constant.h clipsmem.h symbol.h \
  router.h sysdep.h expressn.h evaluatn.h facts.h match.h engine.h defrule.h \
  network.h constrct.h utility.h intrfile.h drive.h deffacts.h deftempl.h \
  reorder.h defglobl.h deffnctn.h genrccom.h genrcfun.h object.h extobj.h \
  scanner.h
edterm.o : edterm.c setup.h ed.h clips.h constant.h clipsmem.h symbol.h \
  router.h sysdep.h expressn.h evaluatn.h facts.h match.h engine.h defrule.h \
  network.h constrct.h utility.h intrfile.h drive.h deffacts.h deftempl.h \
  reorder.h defglobl.h deffnctn.h genrccom.h genrcfun.h object.h extobj.h \
  scanner.h
engine.o : engine.c setup.h constant.h symbol.h clipsmem.h expressn.h \
  evaluatn.h constrct.h network.h match.h engine.h defrule.h facts.h drive.h \
  retract.h router.h utility.h reteutil.h sysdep.h intrfile.h sysprime.h
evaluatn.o : evaluatn.c setup.h constant.h symbol.h clipsmem.h expressn.h \
  evaluatn.h facts.h match.h engine.h defrule.h network.h utility.h router.h \
  sysprime.h generate.h scanner.h genrccom.h genrcfun.h object.h deffnctn.h \
  defglobl.h extobj.h
expressn.o : expressn.c setup.h constant.h scanner.h expressn.h symbol.h \
  evaluatn.h clipsmem.h router.h utility.h generate.h genrccom.h genrcfun.h \
  object.h deffnctn.h extobj.h
factcom.o : factcom.c setup.h clipsmem.h expressn.h symbol.h facts.h match.h \
  engine.h defrule.h network.h evaluatn.h constant.h generate.h reteutil.h \
  utility.h router.h scanner.h parsutil.h lgcldpnd.h sysprime.h deftempl.h \
  reorder.h deftmfun.h extobj.h
factmngr.o : factmngr.c setup.h constant.h symbol.h clipsmem.h expressn.h \
  evaluatn.h facts.h match.h engine.h defrule.h network.h scanner.h router.h \
  generate.h build.h reteutil.h utility.h retract.h intrfile.h constrct.h \
  parsutil.h lgcldpnd.h deftempl.h reorder.h deftmfun.h
generate.o : generate.c setup.h constant.h clipsmem.h symbol.h expressn.h \
  reorder.h variable.h evaluatn.h utility.h router.h generate.h
genrcbin.o : genrcbin.c setup.h constant.h clipsmem.h bload.h expressn.h \
  symbol.h bsave.h objbin.h object.h evaluatn.h genrcfun.h genrcbin.h router.h
genrccmp.o : genrccmp.c setup.h constant.h genrcfun.h symbol.h expressn.h \
  evaluatn.h object.h conscomp.h deffnctn.h objcmp.h genrccmp.h
genrccom.o : genrccom.c setup.h classcom.h object.h evaluatn.h constant.h \
  symbol.h expressn.h defins.h classfun.h inscom.h clipsmem.h constrct.h \
  defglobl.h facts.h match.h engine.h defrule.h network.h generate.h bload.h \
  genrcbin.h genrcfun.h genrccmp.h router.h scanner.h parsutil.h spclform.h \
  utility.h deffnctn.h genrccom.h
genrcfun.o : genrcfun.c setup.h classcom.h object.h evaluatn.h constant.h \
  symbol.h expressn.h defins.h classfun.h insfun.h clipsmem.h constrct.h \
  router.h sysprime.h utility.h genrcfun.h bload.h bsave.h
inscom.o : inscom.c setup.h classcom.h object.h evaluatn.h constant.h symbol.h \
  expressn.h defins.h classfun.h clipsmem.h facts.h match.h engine.h defrule.h \
  network.h generate.h insfun.h insquery.h msgcom.h msgfun.h multivar.h \
  router.h scanner.h utility.h inscom.h
insfun.o : insfun.c setup.h classfun.h object.h evaluatn.h constant.h symbol.h \
  expressn.h clipsmem.h engine.h match.h facts.h network.h defrule.h \
  generate.h msgcom.h msgfun.h router.h scanner.h utility.h insfun.h
insquery.o : insquery.c setup.h classfun.h object.h evaluatn.h constant.h \
  symbol.h expressn.h clipsmem.h engine.h match.h facts.h network.h defrule.h \
  generate.h insfun.h router.h scanner.h spclform.h utility.h insquery.h
intrfile.o : intrfile.c setup.h clipsmem.h evaluatn.h constant.h symbol.h \
  expressn.h router.h utility.h constrct.h intrfile.h bsave.h bload.h
lgcldpnd.o : lgcldpnd.c setup.h constant.h clipsmem.h engine.h symbol.h \
  match.h evaluatn.h expressn.h facts.h network.h defrule.h reteutil.h \
  router.h utility.h lgcldpnd.h
main.o : main.c setup.h sysdep.h commline.h
match.o : match.c setup.h constant.h symbol.h clipsmem.h expressn.h evaluatn.h \
  facts.h match.h engine.h defrule.h network.h generate.h drive.h reteutil.h \
  router.h
math.o : math.c setup.h evaluatn.h constant.h symbol.h expressn.h router.h
memory.o : memory.c setup.h constant.h clipsmem.h router.h utility.h
msgcom.o : msgcom.c setup.h bload.h expressn.h symbol.h classcom.h object.h \
  evaluatn.h constant.h defins.h classfun.h clipsmem.h constrct.h defglobl.h \
  facts.h match.h engine.h defrule.h network.h generate.h insfun.h msgfun.h \
  multivar.h router.h scanner.h parsutil.h spclform.h utility.h msgcom.h
msgfun.o : msgfun.c setup.h classfun.h object.h evaluatn.h constant.h symbol.h \
  expressn.h clipsmem.h constrct.h generate.h insfun.h msgcom.h router.h \
  sysprime.h utility.h msgfun.h
multivar.o : multivar.c setup.h clipsmem.h facts.h match.h engine.h symbol.h \
  defrule.h expressn.h network.h evaluatn.h constant.h utility.h router.h \
  multivar.h object.h
objbin.o : objbin.c setup.h constant.h clipsmem.h bload.h expressn.h symbol.h \
  bsave.h objbin.h object.h evaluatn.h defins.h classfun.h msgcom.h
objcmp.o : objcmp.c setup.h constant.h classfun.h object.h evaluatn.h symbol.h \
  expressn.h defins.h conscomp.h deffnctn.h genrcfun.h objcmp.h
parsutil.o : parsutil.c setup.h constant.h clipsmem.h symbol.h scanner.h \
  expressn.h router.h constrct.h generate.h parsutil.h utility.h deftempl.h \
  facts.h match.h engine.h defrule.h network.h evaluatn.h reorder.h deftmfun.h
reorder.o : reorder.c setup.h constant.h clipsmem.h expressn.h symbol.h \
  router.h reorder.h
reteutil.o : reteutil.c setup.h constant.h clipsmem.h symbol.h router.h \
  network.h expressn.h match.h engine.h defrule.h evaluatn.h facts.h \
  generate.h utility.h retract.h reteutil.h drive.h build.h sysprime.h
retract.o : retract.c setup.h constant.h clipsmem.h symbol.h evaluatn.h \
  expressn.h router.h network.h match.h engine.h defrule.h facts.h reteutil.h \
  utility.h retract.h drive.h lgcldpnd.h
router.o : router.c setup.h constant.h evaluatn.h symbol.h expressn.h router.h \
  clipsmem.h utility.h sysdep.h
rulecom.o : rulecom.c setup.h engine.h symbol.h match.h evaluatn.h constant.h \
  expressn.h facts.h network.h defrule.h utility.h constrct.h drive.h \
  clipsmem.h router.h
ruleprsr.o : ruleprsr.c setup.h constant.h symbol.h clipsmem.h expressn.h \
  evaluatn.h scanner.h reorder.h ruleprsr.h router.h utility.h defrule.h \
  network.h match.h engine.h facts.h constrct.h parsutil.h deftempl.h \
  deftmlhs.h
scanner.o : scanner.c setup.h constant.h scanner.h clipsmem.h symbol.h \
  utility.h router.h
spclform.o : spclform.c setup.h constant.h scanner.h expressn.h symbol.h \
  evaluatn.h spclform.h clipsmem.h router.h utility.h generate.h parsutil.h \
  defglobl.h
strings.o : strings.c setup.h constant.h clipsmem.h utility.h expressn.h \
  symbol.h evaluatn.h scanner.h constrct.h router.h spclform.h defrule.h \
  network.h match.h engine.h facts.h
symbol.o : symbol.c setup.h constant.h symbol.h clipsmem.h router.h utility.h \
  evaluatn.h expressn.h
sysdep.o : sysdep.c setup.h sysdep.h constrct.h intrfile.h utility.h \
  clipsmem.h evaluatn.h constant.h symbol.h expressn.h router.h deffacts.h \
  defrule.h network.h match.h engine.h facts.h genrccom.h deffnctn.h \
  defglobl.h deftempl.h reorder.h extobj.h
sysio.o : sysio.c setup.h utility.h router.h evaluatn.h constant.h symbol.h \
  expressn.h facts.h match.h engine.h defrule.h network.h scanner.h clipsmem.h \
  commline.h
syspred.o : syspred.c setup.h expressn.h symbol.h evaluatn.h constant.h \
  router.h reteutil.h facts.h match.h engine.h defrule.h network.h
sysprime.o : sysprime.c setup.h match.h engine.h symbol.h defrule.h expressn.h \
  network.h evaluatn.h constant.h facts.h utility.h constrct.h clipsmem.h \
  router.h sysprime.h reteutil.h defglobl.h
syssecnd.o : syssecnd.c setup.h clipsmem.h sysdep.h facts.h match.h engine.h \
  symbol.h defrule.h expressn.h network.h evaluatn.h constant.h utility.h \
  router.h
textpro.o : textpro.c setup.h commline.h clipsmem.h evaluatn.h constant.h \
  symbol.h expressn.h utility.h router.h
utility.o : utility.c setup.h utility.h clipsmem.h constant.h evaluatn.h \
  symbol.h expressn.h facts.h match.h engine.h defrule.h network.h scanner.h \
  router.h extobj.h
variable.o : variable.c setup.h constant.h symbol.h clipsmem.h expressn.h \
  reorder.h generate.h router.h utility.h variable.h deftempl.h facts.h \
  match.h engine.h defrule.h network.h evaluatn.h
dbfun.o : dbfun.c

clean:
	rm -f *.o clips
