Makefile
上传用户:psq1974
上传日期:2007-01-06
资源大小:1195k
文件大小:7k
源码类别:

mpeg/mp3

开发平台:

C/C++

  1. #-------------------------------------------------------------------------
  2. #
  3. # Makefile
  4. #    Makefile for Java JDBC interface
  5. #
  6. # IDENTIFICATION
  7. #    $Header: /usr/local/cvsroot/pgsql/src/interfaces/jdbc/Makefile,v 1.10 1998/10/08 00:38:18 momjian Exp $
  8. #
  9. #-------------------------------------------------------------------------
  10. # These are commented out, but would be included in the postgresql source
  11. FIND = find
  12. JAR = jar
  13. JAVA = java
  14. JAVAC = javac
  15. JAVADOC = javadoc
  16. RM = rm -f
  17. # This defines how to compile a java class
  18. .java.class:
  19. $(JAVAC) $<
  20. .SUFFIXES: .class .java
  21. .PHONY: all clean doc examples
  22. all:   postgresql.jar
  23. @echo ------------------------------------------------------------
  24. @echo The JDBC driver has now been built. To make it available to
  25. @echo other applications, copy the postgresql.jar file to a public
  26. @echo "place (under unix this could be /usr/local/lib) and add it"
  27. @echo to the class path.
  28. @echo
  29. @echo Then either add -Djdbc.drivers=postgresql.Driver to the
  30. @echo commandline when running your application, or edit the
  31. @echo "properties file for your application (~/.hotjava/properties"
  32. @echo "under unix for HotJava), and add a line containing"
  33. @echo jdbc.drivers=postgresql.Driver
  34. @echo
  35. @echo More details are in the README file.
  36. @echo ------------------------------------------------------------
  37. @echo To build the examples, type:
  38. @echo "  make examples"
  39. @echo ------------------------------------------------------------
  40. @echo
  41. dep depend:
  42. # This rule builds the javadoc documentation
  43. doc:
  44. export CLASSPATH=.;
  45. $(JAVADOC) -public 
  46. postgresql 
  47. postgresql.fastpath 
  48. postgresql.largeobject
  49. # These classes form the driver. These, and only these are placed into
  50. # the jar file.
  51. OBJS= postgresql/CallableStatement.class 
  52. postgresql/Connection.class 
  53. postgresql/DatabaseMetaData.class 
  54. postgresql/Driver.class 
  55. postgresql/Field.class 
  56. postgresql/PG_Stream.class 
  57. postgresql/PreparedStatement.class 
  58. postgresql/ResultSet.class 
  59. postgresql/ResultSetMetaData.class 
  60. postgresql/Statement.class 
  61. postgresql/fastpath/Fastpath.class 
  62. postgresql/fastpath/FastpathArg.class 
  63. postgresql/geometric/PGbox.class 
  64. postgresql/geometric/PGcircle.class 
  65. postgresql/geometric/PGline.class 
  66. postgresql/geometric/PGlseg.class 
  67. postgresql/geometric/PGpath.class 
  68. postgresql/geometric/PGpoint.class 
  69. postgresql/geometric/PGpolygon.class 
  70. postgresql/largeobject/LargeObject.class 
  71. postgresql/largeobject/LargeObjectManager.class 
  72. postgresql/util/PGmoney.class 
  73. postgresql/util/PGobject.class 
  74. postgresql/util/PGtokenizer.class 
  75. postgresql/util/Serialize.class 
  76. postgresql/util/UnixCrypt.class
  77. # If you have problems with the first line, try the second one.
  78. # This is needed when compiling under Solaris, as the solaris sh doesn't
  79. # recognise $( )
  80. postgresql.jar: $(OBJS)
  81. $(JAR) -c0f $@ $$($(FIND) postgresql -name "*.class" -print)
  82. # $(JAR) -c0f $@ `$(FIND) postgresql -name "*.class" -print`
  83. # This rule removes any temporary and compiled files from the source tree.
  84. clean:
  85. $(FIND) . -name "*~" -exec $(RM) {} ;
  86. $(FIND) . -name "*.class" -exec $(RM) {} ;
  87. $(FIND) . -name "*.html" -exec $(RM) {} ;
  88. $(RM) postgresql.jar
  89. -$(RM) -rf Package-postgresql *output
  90. #######################################################################
  91. # This helps make workout what classes are from what source files
  92. #
  93. # Java is unlike C in that one source file can generate several
  94. # _Different_ file names
  95. #
  96. postgresql/CallableStatement.class: postgresql/CallableStatement.java
  97. postgresql/Connection.class: postgresql/Connection.java
  98. postgresql/DatabaseMetaData.class: postgresql/DatabaseMetaData.java
  99. postgresql/Driver.class: postgresql/Driver.java
  100. postgresql/Field.class: postgresql/Field.java
  101. postgresql/PG_Stream.class: postgresql/PG_Stream.java
  102. postgresql/PreparedStatement.class: postgresql/PreparedStatement.java
  103. postgresql/ResultSet.class: postgresql/ResultSet.java
  104. postgresql/ResultSetMetaData.class: postgresql/ResultSetMetaData.java
  105. postgresql/Statement.class: postgresql/Statement.java
  106. postgresql/fastpath/Fastpath.class: postgresql/fastpath/Fastpath.java
  107. postgresql/fastpath/FastpathArg.class: postgresql/fastpath/FastpathArg.java
  108. postgresql/geometric/PGbox.class: postgresql/geometric/PGbox.java
  109. postgresql/geometric/PGcircle.class: postgresql/geometric/PGcircle.java
  110. postgresql/geometric/PGlseg.class: postgresql/geometric/PGlseg.java
  111. postgresql/geometric/PGpath.class: postgresql/geometric/PGpath.java
  112. postgresql/geometric/PGpoint.class: postgresql/geometric/PGpoint.java
  113. postgresql/geometric/PGpolygon.class: postgresql/geometric/PGpolygon.java
  114. postgresql/largeobject/LargeObject.class: postgresql/largeobject/LargeObject.java
  115. postgresql/largeobject/LargeObjectManager.class: postgresql/largeobject/LargeObjectManager.java
  116. postgresql/util/PGmoney.class: postgresql/util/PGmoney.java
  117. postgresql/util/PGobject.class: postgresql/util/PGobject.java
  118. postgresql/util/PGtokenizer.class: postgresql/util/PGtokenizer.java
  119. postgresql/util/Serialize.class: postgresql/util/Serialize.java
  120. postgresql/util/UnixCrypt.class: postgresql/util/UnixCrypt.java
  121. #######################################################################
  122. # These classes are in the example directory, and form the examples
  123. EX= example/basic.class 
  124. example/blobtest.class 
  125. example/datestyle.class 
  126. example/psql.class 
  127. example/ImageViewer.class 
  128. example/metadata.class 
  129. example/threadsafe.class
  130. # example/Objects.class
  131. # This rule builds the examples
  132. examples: postgresql.jar $(EX)
  133. @echo ------------------------------------------------------------
  134. @echo The examples have been built.
  135. @echo
  136. @echo For instructions on how to use them, simply run them. For example:
  137. @echo
  138. @echo "  java example.blobtest"
  139. @echo
  140. @echo This would display instructions on how to run the example.
  141. @echo ------------------------------------------------------------
  142. @echo Available examples:
  143. @echo
  144. @echo "  example.basic        Basic JDBC useage"
  145. @echo "  example.blobtest     Binary Large Object tests"
  146. @echo "  example.datestyle    Shows how datestyles are handled"
  147. @echo "  example.ImageViewer  Example application storing images"
  148. @echo "  example.psql         Simple java implementation of psql"
  149. @echo "  example.Objects      Demonstrates Object Serialisation"
  150. @echo " "
  151. @echo These are not really examples, but tests various parts of the driver
  152. @echo "  example.metadata     Tests various metadata methods"
  153. @echo "  example.threadsafe   Tests the driver's thread safety"
  154. @echo ------------------------------------------------------------
  155. @echo
  156. example/basic.class: example/basic.java
  157. example/blobtest.class: example/blobtest.java
  158. example/datestyle.class: example/datestyle.java
  159. example/psql.class: example/psql.java
  160. example/ImageViewer.class: example/ImageViewer.java
  161. #example/Objects.class: example/Objects.java
  162. example/threadsafe.class: example/threadsafe.java
  163. example/metadata.class: example/metadata.java
  164. #######################################################################