# Servlet template Makefile .SUFFIXES: .java .class .sqlj all: compile load setup # This demo must be loaded into SYS because only SYS has permission # to freely read and write the policy table. USER = sys/change_on_install CLASS = PolicyServlet.class PUBLISHEDSERVICE = /security/policytable ; MAKE_CLASSPATH=$$ORACLE_HOME/rdbms/jlib/servlet.jar:$$ORACLE_HOME/javavm/lib/aurora.zip SERVSETUP = servletsetup.sql SQLSETUP = setup.sql #Use your platform's equivalents RMF = /bin/rm -f ECHO = /bin/echo CAT = /bin/cat # compile: $(CLASS) load: $(CLASS) loadjava -definer -s -g public -verbose -resolve -user $(USER) PolicyServlet*.class setup: $(RMF) $(SQLSETUP) $(ECHO) 'conn $(USER) as sysdba' > $(SQLSETUP) $(CAT) $(SERVSETUP) >> $(SQLSETUP) $(ECHO) 'exit;' >> $(SQLSETUP) sqlplus /nolog @$(SQLSETUP) # Rules .sqlj.class: sqlj -classpath $(MAKE_CLASSPATH) -ser2class $< .java.class: javac -g -classpath $(MAKE_CLASSPATH) $< clean: rm -rf *.class $(SQLSETUP)