1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209
|
#
# This file is part of the OpenLink Software Virtuoso Open-Source (VOS)
# project.
#
# Copyright (C) 1998-2018 OpenLink Software
#
# This project is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; only version 2 of the License, dated June 1991.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
#
if WITH_JDK2
JDK2_TARGETS = jdk2-target
JDK2_TEST = jdk2-test
JDK3_DOC = jdk2-doc
endif
if WITH_JDK3
JDK3_TARGETS = jdk3-target
JDK3_TEST = jdk3-test
JDK3_DOC = jdk3-doc
endif
if WITH_JDK4
JDK4_TARGETS = jdk4-target
JDK4_TEST = jdk4-test
JDK4_DOC = jdk4-doc
endif
if WITH_JDK4_1
JDK4_1_TARGETS = jdk4_1-target
JDK4_1_TEST = jdk4_1-test
JDK4_1_DOC = jdk4_1-doc
endif
if WITH_JDK4_2
JDK4_2_TARGETS = jdk4_2-target
JDK4_2_TEST = jdk4_2-test
JDK4_2_DOC = jdk4_2-doc
endif
JDK_TESTS = $(JDK2_TEST) $(JDK3_TEST) $(JDK4_TEST) $(JDK4_1_TEST) $(JDK4_2_TEST)
SUBDIRS = . virtuoso testsuite_2.0 testsuite_3.0 testsuite_4.0
all-am: $(JDK2_TARGETS) $(JDK3_TARGETS) $(JDK4_TARGETS) $(JDK4_1_TARGETS) $(JDK4_2_TARGETS)
doc: $(JDK2_DOC) $(JDK3_DOC) $(JDK4_DOC) $(JDK4_1_DOC) $(JDK4_2_DOC)
run-tests:
$(MAKE) $(JDK_TESTS)
#
# JDK 1.3 / JDBC 2.0
#
.PHONY: jdk2-target
jdk2-target:
@cd virtuoso/jdbc2; $(MAKE) -$(MAKEFLAGS) std2
.PHONY: jdk2-target-ssl
jdk2-target-ssl:
@cd virtuoso/jdbc2; $(MAKE) -$(MAKEFLAGS) ssl2
.PHONY: jdk2-doc
jdk2-doc:
@cd virtuoso/jdbc2; $(MAKE) -$(MAKEFLAGS) doc2
.PHONY: jdk2-test
jdk2-test:
env "JDK2=@ac_jdk2_path@" $(SHELL) ./test2.sh "jdbc:virtuoso://localhost:$(PORT)/"
#
# JDK 1.4+1.5 / JDBC 3.0
#
.PHONY: jdk3-target
jdk3-target:
@cd virtuoso/jdbc2; $(MAKE) -$(MAKEFLAGS) std3
@cd virtuoso/jdbc2; $(MAKE) -$(MAKEFLAGS) ssl3
.PHONY: jdk3-test
jdk3-test:
env "JDK3=@ac_jdk3_path@" $(SHELL) ./test3.sh "jdbc:virtuoso://localhost:$(PORT)/"
.PHONY: jdk3-doc
jdk3-doc:
@cd virtuoso/jdbc2; $(MAKE) -$(MAKEFLAGS) doc3
#
# JDK 1.6 / JDBC 4.0
#
.PHONY: jdk4-target
jdk4-target:
@cd virtuoso/jdbc2; $(MAKE) -$(MAKEFLAGS) std4
@cd virtuoso/jdbc2; $(MAKE) -$(MAKEFLAGS) ssl4
.PHONY: jdk4-test
jdk4-test:
env "JDK4=@ac_jdk4_path@" $(SHELL) ./test4.sh "jdbc:virtuoso://localhost:$(PORT)/"
.PHONY: jdk4-doc
jdk4-doc:
@cd virtuoso/jdbc2; $(MAKE) -$(MAKEFLAGS) doc4
#
# JDK 1.7 / JDBC 4.1
#
.PHONY: jdk4_1-target
jdk4_1-target:
@cd virtuoso/jdbc2; $(MAKE) -$(MAKEFLAGS) std4_1
@cd virtuoso/jdbc2; $(MAKE) -$(MAKEFLAGS) ssl4_1
.PHONY: jdk4_1-test
jdk4_1-test:
env "JDK4_1=@ac_jdk4_1_path@" $(SHELL) ./test4.sh "jdbc:virtuoso://localhost:$(PORT)/"
.PHONY: jdk4_1-doc
jdk4_1-doc:
@cd virtuoso/jdbc2; $(MAKE) -$(MAKEFLAGS) doc4_1
#
# JDK 1.8 / JDBC 4.2
#
.PHONY: jdk4_2-target
jdk4_2-target:
@cd virtuoso/jdbc2; $(MAKE) -$(MAKEFLAGS) std4_2
@cd virtuoso/jdbc2; $(MAKE) -$(MAKEFLAGS) ssl4_2
.PHONY: jdk4_2-test
jdk4_2-test:
env "JDK4_2=@ac_jdk4_2_path@" $(SHELL) ./test4.sh "jdbc:virtuoso://localhost:$(PORT)/"
.PHONY: jdk4_2-doc
jdk4_2-doc:
@cd virtuoso/jdbc2; $(MAKE) -$(MAKEFLAGS) doc4_2
#
# Install/uninstall
#
install-data-local:
-$(MKDIR_P) "$(DESTDIR)${libdir}/jdbc-2.0"
-$(MKDIR_P) "$(DESTDIR)${libdir}/jdbc-3.0"
-$(MKDIR_P) "$(DESTDIR)${libdir}/jdbc-4.0"
-$(MKDIR_P) "$(DESTDIR)${libdir}/jdbc-4.1"
-$(MKDIR_P) "$(DESTDIR)${libdir}/jdbc-4.2"
-cp virtjdbc2.jar "$(DESTDIR)${libdir}/jdbc-2.0"
-cp virtjdbc3.jar virtjdbc3ssl.jar "$(DESTDIR)${libdir}/jdbc-3.0"
-cp virtjdbc4.jar virtjdbc4ssl.jar "$(DESTDIR)${libdir}/jdbc-4.0"
-cp virtjdbc4_1.jar virtjdbc4_1ssl.jar "$(DESTDIR)${libdir}/jdbc-4.1"
-cp virtjdbc4_2.jar virtjdbc4_2ssl.jar "$(DESTDIR)${libdir}/jdbc-4.2"
uninstall-local:
-rm -rf "$(DESTDIR)${libdir}/jdbc-2.0"
-rm -rf "$(DESTDIR)${libdir}/jdbc-3.0"
-rm -rf "$(DESTDIR)${libdir}/jdbc-4.0"
-rm -rf "$(DESTDIR)${libdir}/jdbc-4.1"
-rm -rf "$(DESTDIR)${libdir}/jdbc-4.2"
MAINTAINERCLEANFILES = *.jar
clean-local:
-rm -f testsuite*.jar
-rm -rf Documents/*
-rm -rf doc
EXTRA_DIST = \
java.sql.Driver* \
JDBC.release \
manifest*.main \
openlink/util/*.java \
termcap \
test2.bat \
test2.sh \
test3.bat \
test3.sh \
test4.bat \
test4.sh \
test4_1.bat \
test4_1.sh \
test4_2.bat \
test4_2.sh \
test.bat \
test.sh \
virtjdbc2.jar \
virtjdbc3.jar \
virtjdbc3ssl.jar \
virtjdbc4.jar \
virtjdbc4ssl.jar \
virtjdbc4_1.jar \
virtjdbc4_1ssl.jar \
virtjdbc4_2.jar \
virtjdbc4_2ssl.jar
|