2
|
1 |
#
|
|
2 |
# Copyright 2007 Sun Microsystems, Inc. All Rights Reserved.
|
|
3 |
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
4 |
#
|
|
5 |
# This code is free software; you can redistribute it and/or modify it
|
|
6 |
# under the terms of the GNU General Public License version 2 only, as
|
|
7 |
# published by the Free Software Foundation. Sun designates this
|
|
8 |
# particular file as subject to the "Classpath" exception as provided
|
|
9 |
# by Sun in the LICENSE file that accompanied this code.
|
|
10 |
#
|
|
11 |
# This code is distributed in the hope that it will be useful, but WITHOUT
|
|
12 |
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
13 |
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
14 |
# version 2 for more details (a copy is included in the LICENSE file that
|
|
15 |
# accompanied this code).
|
|
16 |
#
|
|
17 |
# You should have received a copy of the GNU General Public License version
|
|
18 |
# 2 along with this work; if not, write to the Free Software Foundation,
|
|
19 |
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
20 |
#
|
|
21 |
# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
|
|
22 |
# CA 95054 USA or visit www.sun.com if you need additional information or
|
|
23 |
# have any questions.
|
|
24 |
#
|
|
25 |
|
|
26 |
BUILDDIR = ../../..
|
|
27 |
PACKAGE = sun.security.krb5
|
|
28 |
PRODUCT = sun
|
|
29 |
include $(BUILDDIR)/common/Defs.gmk
|
|
30 |
|
|
31 |
#
|
|
32 |
# Java Files
|
|
33 |
#
|
|
34 |
AUTO_FILES_JAVA_DIRS = sun/security/krb5
|
|
35 |
|
|
36 |
ifeq ($(PLATFORM), windows)
|
|
37 |
#
|
|
38 |
# Java files that define native methods
|
|
39 |
#
|
|
40 |
FILES_export = \
|
|
41 |
sun/security/krb5/Credentials.java \
|
|
42 |
sun/security/krb5/Config.java
|
|
43 |
include FILES_c_windows.gmk
|
|
44 |
# We need some extra libs for win32
|
|
45 |
LIBRARY = w2k_lsa_auth
|
|
46 |
EXTRA_LIBS += Secur32.lib netapi32.lib\
|
|
47 |
kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib\
|
|
48 |
advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib\
|
|
49 |
odbccp32.lib wsock32.lib
|
|
50 |
endif # PLATFORM
|
|
51 |
|
|
52 |
#
|
|
53 |
# Find native code
|
|
54 |
#
|
|
55 |
vpath %.c \
|
|
56 |
$(PLATFORM_SRC)/native/sun/security/krb5
|
|
57 |
|
|
58 |
JGSS_NATIVE_SRC=$(PLATFORM_SRC)/native/sun/security/krb5
|
|
59 |
JGSS_NATIVE_DIR_EXISTS := $(shell if [ -d $(JGSS_NATIVE_SRC) ] ; then echo true; else echo false; fi)
|
|
60 |
|
|
61 |
#
|
|
62 |
# Rules
|
|
63 |
#
|
|
64 |
ifeq ($(PLATFORM), windows)
|
|
65 |
ifeq ($(JGSS_NATIVE_DIR_EXISTS), true)
|
|
66 |
include $(BUILDDIR)/common/Library.gmk
|
|
67 |
endif
|
|
68 |
else
|
|
69 |
include $(BUILDDIR)/common/Classes.gmk
|
|
70 |
endif # PLATFORM
|
|
71 |
|
|
72 |
#
|
|
73 |
# Libraries to link
|
|
74 |
#
|
|
75 |
ifeq ($(PLATFORM), windows)
|
|
76 |
OTHER_LDLIBS = $(JVMLIB)
|
|
77 |
else
|
|
78 |
OTHER_LDLIBS = -ldl $(JVMLIB)
|
|
79 |
endif
|