makefile

来自「Java示例100」· 代码 · 共 72 行

TXT
72
字号
## Makefile for compiling and executing files under# demo/samples/generic/Inheritance/Inheritance3/## Usage: make <all> | <thin> | <oci> | <ocitns> | <single demo>## Before you run any demo programs, you should:#       1. set up your database and make sure your database started with#          COMPATIBLE parameter with the value of 9.0.0.0.0 or greater#          in your database init files (e.g., tkinit.ora)#       2. set up demo schema. Please refer to Samples-Readme.txt, section#          Setting Up Schemas for details.#       3. Modify this makefile to use appropriate host/port/SID/service_name.#          search for MODIFY_HERE ... to process your modification## Features demonstrated:#       Oracle 9i inheritance feature -- accessing subtype objects by using#       JDBC default mapping.#JDBC_URL=jdbc:oracle:oci:@JDBC_URL_2=jdbc:oracle:oci:@# It supposes that CLASSPATH contains the JDK classesDEMO_CLASSPATH=.:${ORACLE_HOME}/jlib/jndi.jar:${ORACLE_HOME}/jlib/jta.jarCLASSPATH=${ORACLE_HOME}/jdbc/lib/classes12.jar:${DEMO_CLASSPATH}# MODIFY_HERE# Please use a correct path on your machineJAVAC=/usr/local/packages/jdk1.2/bin/javacJAVA=/usr/local/packages/jdk1.2/bin/javaall: clobber compile run# MODIFY_HERE# Please use appropriate <host> <port> and <sid>thin:	make all JDBC_URL=jdbc:oracle:thin:@localhost:1521:orcloci:	make all JDBC_URL=jdbc:oracle:oci:@# MODIFY_HERE# Please use appropriate <host> <port> and <service_name>ocitns:	make all JDBC_URL="jdbc:oracle:oci:@\(DESCRIPTION=\(ADDRESS=\(PROTOCOL=tcp\)\(HOST=localhost\)\(PORT=1521\)\)\(CONNECT_DATA=\(SERVICE_NAME=orcl.oracle.com\)\)\)"compile:	$(JAVAC) -classpath $(CLASSPATH) -g `find . -name \*.java -print`%.class: %.java	$(JAVAC) -classpath $(CLASSPATH) -g  $<print: 	echo "Classpath is $(CLASSPATH)"run: Inheritance3Inheritance3: Inheritance3.class 	$(JAVA) -classpath $(CLASSPATH) -DJDBC_URL=$(JDBC_URL) Inheritance3clobber:	rm -f *.class	rm -f *.out  

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?