# # file: makefile # # created: 11/11/96 by Andrew Rock # # purpose: makefile for the entre program. # OPTS = # OPTS = -prof -auto # OPTS = -O -fvia-C -O2-for-C OBJS = entre.o BSTree.o Bindings.o Expr.o Parser.o Eval.o Cmd.o Lexer.o Script.o CGIOBJS = entre.cgi.o BSTree.o Bindings.o Expr.o Parser.o Eval.o Cmd.o \ Lexer.o Script.o CGI.o all : entre entre.cgi entre : ${OBJS} ghc ${OPTS} -o entre ${OBJS} strip entre entre.cgi : ${CGIOBJS} ghc ${OPTS} -o entre.cgi ${CGIOBJS} strip entre.cgi chmod go+rx entre.cgi entre.o entre.hi : entre.lhs BSTree.hi Bindings.hi Expr.hi Parser.hi Eval.hi \ Cmd.hi Lexer.hi Script.hi ghc ${OPTS} -c entre.lhs entre.cgi.o : entre.cgi.lhs BSTree.hi Bindings.hi Expr.hi Parser.hi Eval.hi \ Cmd.hi Lexer.hi Script.hi CGI.hi ghc ${OPTS} -c entre.cgi.lhs Script.o Script.hi : Script.lhs Expr.hi Parser.hi Lexer.hi ghc ${OPTS} -c Script.lhs Cmd.o Cmd.hi : Cmd.lhs Expr.hi Parser.hi Lexer.hi ghc ${OPTS} -c Cmd.lhs Eval.o Eval.hi : Eval.lhs Expr.hi Bindings.hi ghc ${OPTS} -c Eval.lhs Bindings.o Bindings.hi : Bindings.lhs BSTree.hi Expr.hi ghc ${OPTS} -c Bindings.lhs Expr.o Expr.hi : Expr.lhs Parser.hi ghc ${OPTS} -c Expr.lhs BSTree.o BSTree.hi : BSTree.lhs ghc ${OPTS} -c BSTree.lhs Lexer.o Lexer.hi : Lexer.lhs Parser.hi ghc ${OPTS} -c Lexer.lhs Parser.o Parser.hi : Parser.lhs ghc ${OPTS} -c Parser.lhs CGI.o CGI.hi : CGI.lhs BSTree.hi ghc ${OPTS} -c CGI.lhs clean : rm *.o *.hi