1 #
   2 # Copyright (c) 2000, 2008, Oracle and/or its affiliates. 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.  Oracle designates this
   8 # particular file as subject to the "Classpath" exception as provided
   9 # by Oracle 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 Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any
  23 # questions.
  24 #
  25 
  26 # Makefile for building auth modules.
  27 
  28 BUILDDIR = ../../../../..
  29 MODULE  = security-auth
  30 PACKAGE = com.sun.security.auth.module
  31 PRODUCT = sun
  32 
  33 # LIBRARY name changed later below, but it is important to tell Defs some name
  34 #    upfront so that it knows it is building a library.
  35 LIBRARY = jaas  
  36 
  37 # Force name of temp directory (needed due to LIBRARY change below)
  38 LIBRARY_OUTPUT = jaas  
  39 
  40 include $(BUILDDIR)/common/Defs.gmk
  41 
  42 #
  43 # Files to compile.
  44 #
  45 
  46 include FILES_java.gmk
  47 
  48 
  49 ifeq ($(PLATFORM), windows)
  50 
  51 LIBRARY = jaas_nt
  52   include FILES_export_windows.gmk
  53   include FILES_c_windows.gmk
  54 # We need some extra libs for windows 
  55   ifneq ($(LIBRARY),fdlibm)
  56     EXTRA_LIBS += netapi32.lib user32.lib mpr.lib
  57   endif #fdlibm
  58   # code generates errors when compiled at warning level 3 and warnings are fatal
  59 endif # windows
  60 
  61 ifeq ($(PLATFORM), solaris)
  62   LIBRARY = jaas_unix
  63   FILES_m = mapfile-vers
  64   include $(BUILDDIR)/common/Mapfile-vers.gmk
  65   include FILES_export_unix.gmk
  66   include FILES_export_solaris.gmk
  67   include FILES_c_unix.gmk
  68   include FILES_c_solaris.gmk
  69 endif # solaris
  70 
  71 ifeq ($(PLATFORM), linux)
  72   LIBRARY = jaas_unix
  73   include FILES_export_unix.gmk
  74   include FILES_c_unix.gmk
  75 endif # linux 
  76 
  77 #
  78 # Rules.
  79 #
  80 include $(BUILDDIR)/common/Library.gmk
  81 
  82 #
  83 # JVMDI implementation lives in the VM.
  84 #
  85 OTHER_LDLIBS = $(JVMLIB)