2006-07-27 17:53:53 +02:00
|
|
|
#######################################################################
|
|
|
|
#
|
|
|
|
# Copyright (C) 2006 Novell, Inc.
|
|
|
|
#
|
|
|
|
# This program 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; either
|
|
|
|
# version 2 of the License, or (at your option) any later version.
|
|
|
|
#
|
|
|
|
# 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#######################################################################
|
|
|
|
|
|
|
|
SUBDIRS = src
|
2006-10-19 01:26:16 +02:00
|
|
|
DIST_SUBDIRS = src linux
|
2006-07-27 17:53:53 +02:00
|
|
|
|
2006-08-14 22:27:43 +02:00
|
|
|
EXTRA_DIST = $(JAVAFILES) \
|
|
|
|
make_test.sh \
|
|
|
|
run_test.sh
|
2006-07-27 17:53:53 +02:00
|
|
|
|
|
|
|
ROOT = ../..
|
|
|
|
|
|
|
|
LIBDIR = $(ROOT)/$(LIB)
|
|
|
|
|
|
|
|
JAVAROOT = .
|
|
|
|
JAVAC= javac
|
|
|
|
|
|
|
|
MODULE_NAME = CasaJaasSupport
|
|
|
|
MODULE_EXT = jar
|
|
|
|
|
|
|
|
JAVAFILES = src/com/novell/casa/jaas/CasaLoginModule.java \
|
|
|
|
src/com/novell/casa/jaas/CasaPrincipal.java
|
|
|
|
|
|
|
|
BUILDDIR = build
|
|
|
|
|
|
|
|
CLASSES = $(addprefix $(BUILDDIR)/, $(JAVAFILES:%.java=%.class))
|
|
|
|
|
|
|
|
LIBS =
|
|
|
|
CLASSPATH = $(LIBDIR)/java/CasaAuthToken.jar:$(LIBS)
|
|
|
|
|
|
|
|
CUR_DIR := $(shell pwd)
|
|
|
|
|
|
|
|
all: $(BUILDDIR)/$(MODULE_NAME).$(MODULE_EXT)
|
|
|
|
|
|
|
|
$(BUILDDIR)/%.class: %.java
|
|
|
|
@echo [======== Compiling $@ ========]
|
2006-08-14 22:27:43 +02:00
|
|
|
$(JAVAC) -g -sourcepath src -classpath $(CLASSPATH) -d $(BUILDDIR)/classes $<
|
2006-07-27 17:53:53 +02:00
|
|
|
|
|
|
|
$(BUILDDIR)/$(MODULE_NAME).$(MODULE_EXT): $(BUILDDIR) $(CLASSES)
|
|
|
|
@echo [======== Jarring $@ ========]
|
|
|
|
jar cvf $(BUILDDIR)/$(MODULE_NAME).$(MODULE_EXT) -C $(BUILDDIR)/classes .
|
|
|
|
cp $(BUILDDIR)/$(MODULE_NAME).$(MODULE_EXT) $(LIBDIR)/java/
|
|
|
|
|
|
|
|
$(BUILDDIR):
|
|
|
|
[ -d $(BUILDDIR) ] || mkdir -p $(BUILDDIR)
|
|
|
|
[ -d $(BUILDDIR)/classes ] || mkdir -p $(BUILDDIR)/classes
|
|
|
|
[ -d $(LIBDIR) ] || mkdir -p $(LIBDIR)
|
|
|
|
[ -d $(LIBDIR)/java ] || mkdir -p $(LIBDIR)/java
|
|
|
|
|
|
|
|
install-exec-local:
|
|
|
|
|
|
|
|
uninstall-local:
|
|
|
|
|
|
|
|
#installcheck-local: install
|
|
|
|
|
|
|
|
clean-local:
|
|
|
|
if [ -d $(BUILDDIR) ]; then rm -rf $(BUILDDIR); fi
|
|
|
|
if [ -f $(LIBDIR)/java/$(MODULE_NAME).$(MODULE_EXT) ]; then rm -f $(LIBDIR)/java/$(MODULE_NAME).$(MODULE_EXT); fi
|
|
|
|
|
|
|
|
distclean-local:
|
|
|
|
|
|
|
|
maintainer-clean-local:
|
|
|
|
rm -f Makefile.in
|
|
|
|
rm -f Makefile
|
|
|
|
|