## gmake file, requires a posix like shell include ${ORACLE_HOME}/javavm/demo/unix.mk include ${ORACLE_HOME}/javavm/demo/java.mk # targets all: compile deploy sql run all2: compile deploy sql2 run all3: compile deploy sql3 run # classpath MAKE_CLASSPATH = $(JDK12_CLASSPATH) CLIENT_CLASS = \ Point.class \ PointRuntime.class \ Point2.class \ Point2Factory.class \ Point2Runtime.class \ Point3.class \ Point3Runtime.class compile: client.jar client.jar: $(CLIENT_CLASS) jar cfM $@ $? deploy: jsprocndb jsprocndb: client.jar loadjava -f -verbose -oracleresolver -resolve -oci8 -u $(USER)/$(PASS) $? touch jsprocndb sql: sqlplus /nolog @create.sql $(USER) $(PASS) point run: sqlplus /nolog @run.sql $(USER) $(PASS) sql2: sqlplus /nolog @create.sql $(USER) $(PASS) point2 sql3: sqlplus /nolog @create.sql $(USER) $(PASS) point3 clean: $(RMRF) *.class */*.class client.jar *ndb *.~?~ */*.~?~