⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile

📁 关系型数据库 Postgresql 6.5.2
💻
字号:
#-------------------------------------------------------------------------## Makefile#    Makefile for Java JDBC interface## IDENTIFICATION#    $Header: /usr/local/cvsroot/pgsql/src/interfaces/jdbc/Makefile,v 1.14 1999/06/23 05:56:17 peter Exp $##-------------------------------------------------------------------------FIND		= findIDL2JAVA	= idltojava -fno-cpp -fno-tieJAR		= jarJAVA		= javaJAVAC		= javacJAVADOC		= javadocRM		= rm -fTOUCH		= touch# This defines how to compile a java class.java.class:	$(JAVAC) $<.SUFFIXES:	.class .java.PHONY:		all clean doc examples# In 6.5, the all rule builds the makeVersion class which then calls make using# the jdbc1 or jdbc2 rulesall:	makeVersion.class	make $$($(JAVA) makeVersion)	@echo ------------------------------------------------------------	@echo The JDBC driver has now been built. To make it available to	@echo other applications, copy the postgresql.jar file to a public	@echo "place (under unix this could be /usr/local/lib) and add it"	@echo to the class path.	@echo	@echo Then either add -Djdbc.drivers=postgresql.Driver to the	@echo commandline when running your application, or edit the	@echo "properties file for your application (~/.hotjava/properties"	@echo "under unix for HotJava), and add a line containing"	@echo jdbc.drivers=postgresql.Driver	@echo	@echo More details are in the README file and in the main postgresql	@echo documentation.	@echo	@echo ------------------------------------------------------------	@echo To build the examples, type:	@echo "  make examples"	@echo	@echo "To build the CORBA example (requires Java2):"	@echo "  make corba"	@echo ------------------------------------------------------------	@echodep depend:# This rule builds the javadoc documentationdoc:	export CLASSPATH=.;\		$(JAVADOC) -public \			postgresql \			postgresql.fastpath \			postgresql.largeobject# These classes form the driver. These, and only these are placed into# the jar file.OBJ_COMMON=	postgresql/Connection.class \		postgresql/Driver.class \		postgresql/Field.class \		postgresql/PG_Stream.class \		postgresql/ResultSet.class \		postgresql/errors.properties \		postgresql/errors_fr.properties \		postgresql/fastpath/Fastpath.class \		postgresql/fastpath/FastpathArg.class \		postgresql/geometric/PGbox.class \		postgresql/geometric/PGcircle.class \		postgresql/geometric/PGline.class \		postgresql/geometric/PGlseg.class \		postgresql/geometric/PGpath.class \		postgresql/geometric/PGpoint.class \		postgresql/geometric/PGpolygon.class \		postgresql/largeobject/LargeObject.class \		postgresql/largeobject/LargeObjectManager.class \		postgresql/util/PGmoney.class \		postgresql/util/PGobject.class \		postgresql/util/PGtokenizer.class \		postgresql/util/PSQLException.class \		postgresql/util/Serialize.class \		postgresql/util/UnixCrypt.class# These files are unique to the JDBC 1 (JDK 1.1) driverOBJ_JDBC1=	postgresql/jdbc1/CallableStatement.class \		postgresql/jdbc1/Connection.class \		postgresql/jdbc1/DatabaseMetaData.class \		postgresql/jdbc1/PreparedStatement.class \		postgresql/jdbc1/ResultSet.class \		postgresql/jdbc1/ResultSetMetaData.class \		postgresql/jdbc1/Statement.class# These files are unique to the JDBC 2 (JDK 2 nee 1.2) driverOBJ_JDBC2=	postgresql/jdbc2/ResultSet.class \		postgresql/jdbc2/PreparedStatement.class \		postgresql/jdbc2/CallableStatement.class \		postgresql/jdbc2/Connection.class \		postgresql/jdbc2/DatabaseMetaData.class \		postgresql/jdbc2/ResultSetMetaData.class \		postgresql/jdbc2/Statement.class# This rule should never occur, but will be called when makeVersion fails to# understand the java.version property correctly.jdbc0:	@echo	@echo FATAL ERROR!	@echo	@echo makeVersion has not been able to determine what version of	@echo the JDK you are using, and hence what version of the driver	@echo to compile.	@echo	@echo There are two versions available, one that conforms to the	@echo JDBC 1 specification, and one to the JDBC 2 specification.	@echo	@echo To build the driver for JDBC 1 (usually for JDK 1.1 thru 1.1.7)	@echo then type: make jdbc1	@echo	@echo To build the driver for JDBC 2 (usually for JDK 1.2 and later)	@echo then type: make jdbc2	@echo	@echo If you still have problems, then please email the interfaces	@echo or bugs lists, or better still to me direct (peter@retep.org.uk)	@echo# This rule builds the JDBC1 compliant driverjdbc1:	$(OBJ_COMMON) $(OBJ_JDBC1) postgresql.jar# This rule builds the JDBC2 compliant driverjdbc2:	$(OBJ_COMMON) $(OBJ_JDBC2) postgresql.jar# If you have problems with this rule, replace the $( ) with ` ` as some# shells (mainly sh under Solaris) doesn't recognise $( )## Note:	This works by storing all compiled classes under the postgresql#	directory. We use this later for compiling the dual-mode driver.#postgresql.jar: $(OBJ) $(OBJ_COMMON)	$(JAR) -c0f $@ $$($(FIND) postgresql -name "*.class" -print) \		$(wildcard postgresql/*.properties)# This rule removes any temporary and compiled files from the source tree.clean:	$(FIND) . -name "*~" -exec $(RM) {} \;	$(FIND) . -name "*.class" -exec $(RM) {} \;	$(FIND) . -name "*.html" -exec $(RM) {} \;	-$(RM) -rf stock example/corba/stock.built	-$(RM) postgresql.jar	-$(RM) -rf Package-postgresql *output######################################################################## This helps make workout what classes are from what source files## Java is unlike C in that one source file can generate several# _Different_ file names#postgresql/Connection.class:		postgresql/Connection.javapostgresql/DatabaseMetaData.class:	postgresql/DatabaseMetaData.javapostgresql/Driver.class:		postgresql/Driver.javapostgresql/Field.class:			postgresql/Field.javapostgresql/PG_Stream.class:		postgresql/PG_Stream.javapostgresql/PreparedStatement.class:	postgresql/PreparedStatement.javapostgresql/ResultSet.class:		postgresql/ResultSet.javapostgresql/ResultSetMetaData.class:	postgresql/ResultSetMetaData.javapostgresql/Statement.class:		postgresql/Statement.javapostgresql/fastpath/Fastpath.class:	postgresql/fastpath/Fastpath.javapostgresql/fastpath/FastpathArg.class:	postgresql/fastpath/FastpathArg.javapostgresql/geometric/PGbox.class:	postgresql/geometric/PGbox.javapostgresql/geometric/PGcircle.class:	postgresql/geometric/PGcircle.javapostgresql/geometric/PGlseg.class:	postgresql/geometric/PGlseg.javapostgresql/geometric/PGpath.class:	postgresql/geometric/PGpath.javapostgresql/geometric/PGpoint.class:	postgresql/geometric/PGpoint.javapostgresql/geometric/PGpolygon.class:	postgresql/geometric/PGpolygon.javapostgresql/largeobject/LargeObject.class: postgresql/largeobject/LargeObject.javapostgresql/largeobject/LargeObjectManager.class: postgresql/largeobject/LargeObjectManager.javapostgresql/util/PGmoney.class:		postgresql/util/PGmoney.javapostgresql/util/PGobject.class:		postgresql/util/PGobject.javapostgresql/util/PGtokenizer.class:	postgresql/util/PGtokenizer.javapostgresql/util/Serialize.class:	postgresql/util/Serialize.javapostgresql/util/UnixCrypt.class:	postgresql/util/UnixCrypt.java######################################################################## These classes are in the example directory, and form the examplesEX=	example/basic.class \	example/blobtest.class \	example/datestyle.class \	example/psql.class \	example/ImageViewer.class \	example/metadata.class \	example/threadsafe.class#	example/Objects.class# This rule builds the examplesexamples:	postgresql.jar $(EX)	@echo ------------------------------------------------------------	@echo The examples have been built.	@echo	@echo For instructions on how to use them, simply run them. For example:	@echo	@echo "  java example.blobtest"	@echo	@echo This would display instructions on how to run the example.	@echo ------------------------------------------------------------	@echo Available examples:	@echo	@echo "  example.basic        Basic JDBC useage"	@echo "  example.blobtest     Binary Large Object tests"	@echo "  example.datestyle    Shows how datestyles are handled"	@echo "  example.ImageViewer  Example application storing images"	@echo "  example.psql         Simple java implementation of psql"	@echo "  example.Objects      Demonstrates Object Serialisation"	@echo " "	@echo These are not really examples, but tests various parts of the driver	@echo "  example.metadata     Tests various metadata methods"	@echo "  example.threadsafe   Tests the driver's thread safety"	@echo ------------------------------------------------------------	@echoexample/basic.class:			example/basic.javaexample/blobtest.class:			example/blobtest.javaexample/datestyle.class:		example/datestyle.javaexample/psql.class:			example/psql.javaexample/ImageViewer.class:		example/ImageViewer.javaexample/threadsafe.class:		example/threadsafe.javaexample/metadata.class:			example/metadata.java######################################################################### CORBA		This extensive example shows how to integrate PostgreSQL#		JDBC & CORBA.CORBASRC = $(wildcard example/corba/*.java)CORBAOBJ = $(subst .java,.class,$(CORBASRC))corba: jdbc2 example/corba/stock.built $(CORBAOBJ)	@echo -------------------------------------------------------	@echo The corba example has been built. Before running, you	@echo will need to read the example/corba/readme file on how	@echo to run the example.	@echo## This compiles our idl file and the stubs## Note: The idl file is in example/corba, but it builds a directory under# the current one. For safety, we delete that directory before running# idltojava#example/corba/stock.built: example/corba/stock.idl	-rm -rf stock	$(IDL2JAVA) $<	$(JAVAC) stock/*.java	$(TOUCH) $@# tip: we cant use $(wildcard stock/*.java) in the above rule as a race#      condition occurs, where javac is passed no arguments#######################################################################

⌨️ 快捷键说明

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