Fixed EOL issues that were breaking the build.

This commit is contained in:
Juan Carlos Luciani 2007-01-25 12:50:31 +00:00
parent 1adf80b8ae
commit 3e47ad8b60
9 changed files with 856 additions and 856 deletions

View File

@ -1,42 +1,42 @@
####################################################################### #######################################################################
# #
# Copyright (C) 2006 Novell, Inc. # Copyright (C) 2006 Novell, Inc.
# #
# This program is free software; you can redistribute it and/or # This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public # modify it under the terms of the GNU General Public
# License as published by the Free Software Foundation; either # License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version. # version 2 of the License, or (at your option) any later version.
# #
# This program is distributed in the hope that it will be useful, # This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of # but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details. # General Public License for more details.
# #
# You should have received a copy of the GNU General Public # You should have received a copy of the GNU General Public
# License along with this program; if not, write to the Free # License along with this program; if not, write to the Free
# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
# #
# Author: Juan Carlos Luciani <jluciani@novell.com> # Author: Juan Carlos Luciani <jluciani@novell.com>
# #
####################################################################### #######################################################################
SUBDIRS = SUBDIRS =
DIST_SUBDIRS = windows DIST_SUBDIRS = windows
CFILES = CFILES =
EXTRA_DIST = auth.policy \ EXTRA_DIST = auth.policy \
authtoken.settings \ authtoken.settings \
iaRealms.xml \ iaRealms.xml \
identoken.settings \ identoken.settings \
svc.settings \ svc.settings \
jaas.conf jaas.conf
.PHONY: package package-clean package-install package-uninstall .PHONY: package package-clean package-install package-uninstall
package package-clean package-install package-uninstall: package package-clean package-install package-uninstall:
$(MAKE) -C $(TARGET_OS) $@ $(MAKE) -C $(TARGET_OS) $@
maintainer-clean-local: maintainer-clean-local:
rm -f Makefile.in rm -f Makefile.in

View File

@ -1,307 +1,307 @@
####################################################################### #######################################################################
# #
# Copyright (C) 2006 Novell, Inc. # Copyright (C) 2006 Novell, Inc.
# #
# This program is free software; you can redistribute it and/or # This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public # modify it under the terms of the GNU General Public
# License as published by the Free Software Foundation; either # License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version. # version 2 of the License, or (at your option) any later version.
# #
# This program is distributed in the hope that it will be useful, # This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of # but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details. # General Public License for more details.
# #
# You should have received a copy of the GNU General Public # You should have received a copy of the GNU General Public
# License along with this program; if not, write to the Free # License along with this program; if not, write to the Free
# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
# #
# #
####################################################################### #######################################################################
AC_INIT(CASA_auth_token_svc, 1.7.1,,CASA_auth_token_svc) AC_INIT(CASA_auth_token_svc, 1.7.1,,CASA_auth_token_svc)
AC_CONFIG_SRCDIR(autogen.sh) AC_CONFIG_SRCDIR(autogen.sh)
AC_CANONICAL_SYSTEM AC_CANONICAL_SYSTEM
AM_INIT_AUTOMAKE(tar-pax) AM_INIT_AUTOMAKE(tar-pax)
RELEASE=`date +%Y%m%d_%H%M` RELEASE=`date +%Y%m%d_%H%M`
AC_SUBST(RELEASE) AC_SUBST(RELEASE)
AM_MAINTAINER_MODE AM_MAINTAINER_MODE
# #
# Check for a valid C# compiler # Check for a valid C# compiler
# #
#AC_CHECK_PROG(CSC, csc, csc) #AC_CHECK_PROG(CSC, csc, csc)
#test -z "$CSC" && AC_CHECK_PROG(CSC, mcs, mcs) #test -z "$CSC" && AC_CHECK_PROG(CSC, mcs, mcs)
#test -z "$CSC" && AC_MSG_ERROR([no acceptable C Sharp compiler found in \$PATH]) #test -z "$CSC" && AC_MSG_ERROR([no acceptable C Sharp compiler found in \$PATH])
# #
# Check for valid C# compiler in linux # Check for valid C# compiler in linux
# #
case $host_os in case $host_os in
cygwin*) cygwin*)
;; ;;
*) *)
AC_CHECK_PROG(CSC, csc, csc) AC_CHECK_PROG(CSC, csc, csc)
test -z "$CSC" && AC_CHECK_PROG(CSC, mcs, mcs) test -z "$CSC" && AC_CHECK_PROG(CSC, mcs, mcs)
test -z "$CSC" && AC_MSG_ERROR([no acceptable C Sharp compiler found in \$PATH]) test -z "$CSC" && AC_MSG_ERROR([no acceptable C Sharp compiler found in \$PATH])
;; ;;
esac esac
case $CSC in case $CSC in
# #
# Mono-specific configuration # Mono-specific configuration
# #
mcs) mcs)
CSC_EXEFLAG=/target:exe CSC_EXEFLAG=/target:exe
CSC_LIBFLAG=/target:library CSC_LIBFLAG=/target:library
CSC_EXEFLAG=/target:exe CSC_EXEFLAG=/target:exe
CSC_WINEXEFLAG=/target:winexe CSC_WINEXEFLAG=/target:winexe
CSCFLAGS='/d:MONO /warn:4 /d:TRACE -d:LINUX' CSCFLAGS='/d:MONO /warn:4 /d:TRACE -d:LINUX'
CSCFLAGS_DEBUG="/debug+ /d:DEBUG" CSCFLAGS_DEBUG="/debug+ /d:DEBUG"
CSCFLAGS_OPTIMIZE="/optimize+" CSCFLAGS_OPTIMIZE="/optimize+"
MONO=mono MONO=mono
MONO_DEBUG='mono --debug' MONO_DEBUG='mono --debug'
MONO_PATH= MONO_PATH=
SYSTEM_XML='System.Xml.dll' SYSTEM_XML='System.Xml.dll'
;; ;;
# #
# .NET-specific configuration # .NET-specific configuration
# #
csc) csc)
CSC_EXEFLAG=/target:exe CSC_EXEFLAG=/target:exe
CSC_LIBFLAG=/target:library CSC_LIBFLAG=/target:library
CSC_EXEFLAG=/target:exe CSC_EXEFLAG=/target:exe
CSC_WINEXEFLAG=/target:winexe CSC_WINEXEFLAG=/target:winexe
CSCFLAGS='/d:DOTNET /warn:4 /d:TRACE /nologo' CSCFLAGS='/d:DOTNET /warn:4 /d:TRACE /nologo'
CSCFLAGS_DEBUG="/debug+ /d:DEBUG" CSCFLAGS_DEBUG="/debug+ /d:DEBUG"
CSCFLAGS_OPTIMIZE="/optimize+" CSCFLAGS_OPTIMIZE="/optimize+"
MONO= MONO=
MONO_DEBUG= MONO_DEBUG=
MONO_PATH= MONO_PATH=
SYSTEM_XML='System.XML.dll' SYSTEM_XML='System.XML.dll'
;; ;;
esac esac
AC_SUBST(CSC) AC_SUBST(CSC)
AC_SUBST(CSC_EXEFLAG) AC_SUBST(CSC_EXEFLAG)
AC_SUBST(CSC_LIBFLAG) AC_SUBST(CSC_LIBFLAG)
AC_SUBST(CSC_WINEXEFLAG) AC_SUBST(CSC_WINEXEFLAG)
AC_SUBST(CSCFLAGS) AC_SUBST(CSCFLAGS)
AC_SUBST(CSCFLAGS_DEBUG) AC_SUBST(CSCFLAGS_DEBUG)
AC_SUBST(MONO) AC_SUBST(MONO)
AC_SUBST(MONO_PATH) AC_SUBST(MONO_PATH)
AC_SUBST(SYSTEM_XML) AC_SUBST(SYSTEM_XML)
SRCDIR='$(top_srcdir)' SRCDIR='$(top_srcdir)'
DOCDIR="$SRCDIR/doc" DOCDIR="$SRCDIR/doc"
TOOLDIR='$(top_srcdir)/tools' TOOLDIR='$(top_srcdir)/tools'
AC_SUBST(SRCDIR) AC_SUBST(SRCDIR)
AC_SUBST(DOCDIR) AC_SUBST(DOCDIR)
AC_SUBST(TOOLDIR) AC_SUBST(TOOLDIR)
EMPTY= EMPTY=
SPACE='$(EMPTY) $(EMPTY)' SPACE='$(EMPTY) $(EMPTY)'
AC_SUBST(EMPTY) AC_SUBST(EMPTY)
AC_SUBST(SPACE) AC_SUBST(SPACE)
# #
# Check for operating system and set TARGET_OS # Check for operating system and set TARGET_OS
# #
case $host_os in case $host_os in
cygwin*) cygwin*)
TARGET_OS='windows' TARGET_OS='windows'
;; ;;
*) *)
TARGET_OS='linux' TARGET_OS='linux'
;; ;;
esac esac
AC_SUBST(TARGET_OS) AC_SUBST(TARGET_OS)
AM_CONDITIONAL(LINUX, test "$TARGET_OS" = "linux") AM_CONDITIONAL(LINUX, test "$TARGET_OS" = "linux")
AM_CONDITIONAL(WINDOWS, test "$TARGET_OS" = "windows") AM_CONDITIONAL(WINDOWS, test "$TARGET_OS" = "windows")
# #
# Check for architecture and set TARGET_ARCH # Check for architecture and set TARGET_ARCH
# ia64 needs to be treated as non64. # ia64 needs to be treated as non64.
case $target_cpu in case $target_cpu in
x86_64|p*pc64|s390x) x86_64|p*pc64|s390x)
LIB=lib64 LIB=lib64
;; ;;
*ia64|*) *ia64|*)
LIB=lib LIB=lib
;; ;;
esac esac
AC_SUBST(LIB) AC_SUBST(LIB)
AM_CONDITIONAL(LIB64, test "$LIB" = lib64) AM_CONDITIONAL(LIB64, test "$LIB" = lib64)
# #
# #
# Set platform-specific variables # Set platform-specific variables
# #
case $TARGET_OS in case $TARGET_OS in
# #
# Linux-specific configuration # Linux-specific configuration
# #
linux) linux)
# #
# Set variables # Set variables
# #
COMMON_CLEAN_FILES='' COMMON_CLEAN_FILES=''
ICON_EXT='.ico' ICON_EXT='.ico'
ICON_FLAG='/resource:' ICON_FLAG='/resource:'
PLATFORM_SUBDIRS=$LINUX_SUBDIRS PLATFORM_SUBDIRS=$LINUX_SUBDIRS
SEP='/' SEP='/'
LINK=gcc LINK=gcc
;; ;;
# #
# Windows-specific configuration # Windows-specific configuration
# #
windows) windows)
COMMON_CLEAN_FILES='*.suo */*.suo *.csproj.user */*.csproj.user bin obj */bin */obj *.xml */*.xml *.pdb */*.pdb' COMMON_CLEAN_FILES='*.suo */*.suo *.csproj.user */*.csproj.user bin obj */bin */obj *.xml */*.xml *.pdb */*.pdb'
ICON_EXT='.ico' ICON_EXT='.ico'
ICON_FLAG='/win32icon:' ICON_FLAG='/win32icon:'
PLATFORM_SUBDIRS=$WINDOWS_SUBDIRS PLATFORM_SUBDIRS=$WINDOWS_SUBDIRS
SEP='$(EMPTY)\\$(EMPTY)' SEP='$(EMPTY)\\$(EMPTY)'
LINK=link.exe LINK=link.exe
;; ;;
esac esac
AC_SUBST(COMMON_CLEAN_FILES) AC_SUBST(COMMON_CLEAN_FILES)
AC_SUBST(ICON_EXT) AC_SUBST(ICON_EXT)
AC_SUBST(ICON_FLAG) AC_SUBST(ICON_FLAG)
AC_SUBST(PLATFORM_SUBDIRS) AC_SUBST(PLATFORM_SUBDIRS)
AC_SUBST(SEP) AC_SUBST(SEP)
AC_SUBST(LINK) AC_SUBST(LINK)
# #
# Run standard macros # Run standard macros
# #
AM_PROG_CC_STDC AM_PROG_CC_STDC
AC_PROG_INSTALL AC_PROG_INSTALL
AC_HEADER_STDC AC_HEADER_STDC
####### #######
# #
# set CFLAGS # set CFLAGS
# #
case $host_os in case $host_os in
linux*) linux*)
CFLAGS="$CFLAGS" CFLAGS="$CFLAGS"
;; ;;
cygwin*) cygwin*)
CC=cl.exe CC=cl.exe
CFLAGS="-D WIN32 -D SSCS_WIN32_PLAT_F -D N_PLAT_CLIENT -MT -Ox" CFLAGS="-D WIN32 -D SSCS_WIN32_PLAT_F -D N_PLAT_CLIENT -MT -Ox"
;; ;;
esac esac
# #
# Handle --enable-debug # Handle --enable-debug
# #
AC_ARG_ENABLE(debug, [ AC_ARG_ENABLE(debug, [
--enable-debug configure the Makefiles to build in DEBUG mode], --enable-debug configure the Makefiles to build in DEBUG mode],
[case "${enableval}" in [case "${enableval}" in
yes) enable_debug=true ;; yes) enable_debug=true ;;
no) enable_debug=false ;; no) enable_debug=false ;;
*) AC_MSG_ERROR(bad value ${enableval} for --enable-debug) ;; *) AC_MSG_ERROR(bad value ${enableval} for --enable-debug) ;;
esac],[enable_debug=false]) esac],[enable_debug=false])
AM_CONDITIONAL(DEBUG, test x$enable_debug = xtrue) AM_CONDITIONAL(DEBUG, test x$enable_debug = xtrue)
if test "$enable_debug" = "true" if test "$enable_debug" = "true"
then then
# Build debug version. # Build debug version.
# CFLAGS="$CFLAGS_DEBUG $CFLAGS -DDBG -DDEBUG" # CFLAGS="$CFLAGS_DEBUG $CFLAGS -DDBG -DDEBUG"
CFLAGS="$CFLAGS_DEBUG $CFLAGS -g -DDBG -DDEBUG \ CFLAGS="$CFLAGS_DEBUG $CFLAGS -g -DDBG -DDEBUG \
-fPIC -DPIC -DSSCS_LINUX_PLAT_F -O2 -fmessage-length=0 -Wall \ -fPIC -DPIC -DSSCS_LINUX_PLAT_F -O2 -fmessage-length=0 -Wall \
-D_REENTRANT -DALIGNMENT -DN_PLAT_UNIX \ -D_REENTRANT -DALIGNMENT -DN_PLAT_UNIX \
-DUNIX -DLINUX -DIAPX38" -DUNIX -DLINUX -DIAPX38"
CSCFLAGS="$CSCFLAGS_DEBUG $CSCFLAGS" CSCFLAGS="$CSCFLAGS_DEBUG $CSCFLAGS"
CXXFLAGS="$CXXFLAGS_DEBUG $CXXFLAGS" CXXFLAGS="$CXXFLAGS_DEBUG $CXXFLAGS"
DEVENV_CONFIGURATION=Debug DEVENV_CONFIGURATION=Debug
MONO=$MONO_DEBUG MONO=$MONO_DEBUG
else else
# Build optimized version. # Build optimized version.
CFLAGS="$CFLAGS_OPTIMIZE $CFLAGS -g -fPIC -DPIC \ CFLAGS="$CFLAGS_OPTIMIZE $CFLAGS -g -fPIC -DPIC \
-DSSCS_LINUX_PLAT_F -O2 -fmessage-length=0 -Wall \ -DSSCS_LINUX_PLAT_F -O2 -fmessage-length=0 -Wall \
-D_REENTRANT -DALIGNMENT -DN_PLAT_UNIX \ -D_REENTRANT -DALIGNMENT -DN_PLAT_UNIX \
-DUNIX -DLINUX -DIAPX38" -DUNIX -DLINUX -DIAPX38"
CSCFLAGS="$CSCFLAGS_OPTIMIZE $CSCFLAGS" CSCFLAGS="$CSCFLAGS_OPTIMIZE $CSCFLAGS"
CXXFLAGS="$CXXFLAGS_OPTIMIZE $CXXFLAGS" CXXFLAGS="$CXXFLAGS_OPTIMIZE $CXXFLAGS"
DEVENV_CONFIGURATION=Release DEVENV_CONFIGURATION=Release
fi fi
AC_SUBST(CSCFLAGS) AC_SUBST(CSCFLAGS)
AC_SUBST(DEVENV_CONFIGURATION) AC_SUBST(DEVENV_CONFIGURATION)
##comment out due to build failure ##comment out due to build failure
# Check for GCC version to add fstack-protector flag # Check for GCC version to add fstack-protector flag
# #
#GCC_VER="`gcc -dumpversion`" #GCC_VER="`gcc -dumpversion`"
#case "$GCC_VER" in #case "$GCC_VER" in
# 3*) # 3*)
# ;; # ;;
# 4*) # 4*)
# CFLAGS="$CFLAGS -fstack-protector" # CFLAGS="$CFLAGS -fstack-protector"
# ;; # ;;
# *) # *)
# ;; # ;;
#esac #esac
AC_SUBST(GCC_VER) AC_SUBST(GCC_VER)
# #
# Configure PKG_CONFIG # Configure PKG_CONFIG
# #
AC_PATH_PROG(PKG_CONFIG, pkg-config, no) AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
if test "x$PKG_CONFIG" = "xno"; then if test "x$PKG_CONFIG" = "xno"; then
AC_MSG_ERROR([You need to install pkg-config]) AC_MSG_ERROR([You need to install pkg-config])
fi fi
# #
# Configure files # Configure files
# #
AC_OUTPUT([ AC_OUTPUT([
Makefile Makefile
package/Makefile package/Makefile
package/linux/Makefile package/linux/Makefile
package/linux/CASA_auth_token_svc.spec package/linux/CASA_auth_token_svc.spec
package/linux/CASA_auth_token_svc_4zen.spec package/linux/CASA_auth_token_svc_4zen.spec
package/windows/Makefile package/windows/Makefile
package/windows/ClientKeystoreSetup/Makefile package/windows/ClientKeystoreSetup/Makefile
package/windows/CommandLauncher/Makefile package/windows/CommandLauncher/Makefile
package/windows/InitConfigFile/Makefile package/windows/InitConfigFile/Makefile
package/windows/MungeCryptoPropertiesFilePath/Makefile package/windows/MungeCryptoPropertiesFilePath/Makefile
package/windows/ServerKeystoreSetup/Makefile package/windows/ServerKeystoreSetup/Makefile
package/windows/SetupAsWindowsService/Makefile package/windows/SetupAsWindowsService/Makefile
package/windows/UpdateWarFile/Makefile package/windows/UpdateWarFile/Makefile
package/windows/server-java_msi/Makefile package/windows/server-java_msi/Makefile
Svc/Makefile Svc/Makefile
Svc/external/Makefile Svc/external/Makefile
Svc/src/Makefile Svc/src/Makefile
Svc/src/com/Makefile Svc/src/com/Makefile
Svc/src/com/novell/Makefile Svc/src/com/novell/Makefile
Svc/src/com/novell/casa/Makefile Svc/src/com/novell/casa/Makefile
Svc/src/com/novell/casa/authtoksvc/Makefile Svc/src/com/novell/casa/authtoksvc/Makefile
Svc/tomcat5/Makefile Svc/tomcat5/Makefile
Svc/tomcat5/conf/Makefile Svc/tomcat5/conf/Makefile
Svc/tomcat5/conf/Catalina/Makefile Svc/tomcat5/conf/Catalina/Makefile
Svc/tomcat5/conf/Catalina/localhost/Makefile Svc/tomcat5/conf/Catalina/localhost/Makefile
Svc/tomcat5/conf/linux/Makefile Svc/tomcat5/conf/linux/Makefile
Svc/tomcat5/conf/linux/zen/Makefile Svc/tomcat5/conf/linux/zen/Makefile
Svc/tomcat5/conf/windows/Makefile Svc/tomcat5/conf/windows/Makefile
Svc/linux/Makefile Svc/linux/Makefile
Svc/templates/Makefile Svc/templates/Makefile
Svc/templates/windows/Makefile Svc/templates/windows/Makefile
Svc/manifest/Makefile Svc/manifest/Makefile
Svc/windows/Makefile Svc/windows/Makefile
Jaas/Makefile Jaas/Makefile
Jaas/src/Makefile Jaas/src/Makefile
Jaas/src/com/Makefile Jaas/src/com/Makefile
Jaas/src/com/novell/Makefile Jaas/src/com/novell/Makefile
Jaas/src/com/novell/casa/Makefile Jaas/src/com/novell/casa/Makefile
Jaas/src/com/novell/casa/jaas/Makefile Jaas/src/com/novell/casa/jaas/Makefile
Jaas/src/com/novell/casa/jaas/sample/Makefile Jaas/src/com/novell/casa/jaas/sample/Makefile
Jaas/linux/Makefile Jaas/linux/Makefile
Jaas/windows/Makefile Jaas/windows/Makefile
]) ])

View File

@ -1,77 +1,77 @@
####################################################################### #######################################################################
# #
# Copyright (C) 2004 Novell, Inc. # Copyright (C) 2004 Novell, Inc.
# #
# This program is free software; you can redistribute it and/or # This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public # modify it under the terms of the GNU General Public
# License as published by the Free Software Foundation; either # License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version. # version 2 of the License, or (at your option) any later version.
# #
# This program is distributed in the hope that it will be useful, # This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of # but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details. # General Public License for more details.
# #
# You should have received a copy of the GNU General Public # You should have received a copy of the GNU General Public
# License along with this program; if not, write to the Free # License along with this program; if not, write to the Free
# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
# #
# Author: Greg Richardson <grichardson@novell.com> # Author: Greg Richardson <grichardson@novell.com>
# #
####################################################################### #######################################################################
SUBDIRS = SUBDIRS =
DIST_SUBDIRS = DIST_SUBDIRS =
EXTRA_DIST = ClientKeystoreSetup.java EXTRA_DIST = ClientKeystoreSetup.java
if DEBUG if DEBUG
TARGET_CFG = Debug TARGET_CFG = Debug
DEBUG = -g DEBUG = -g
else else
TARGET_CFG = Release TARGET_CFG = Release
DEBUG = -g:none DEBUG = -g:none
endif endif
PACKAGE = ClientKeystoreSetup PACKAGE = ClientKeystoreSetup
TARGET_FILE = $(PACKAGE).class TARGET_FILE = $(PACKAGE).class
LOG_FILE = $(PACKAGE).log LOG_FILE = $(PACKAGE).log
JAVAFILES = ClientKeystoreSetup.java JAVAFILES = ClientKeystoreSetup.java
CLASSES = $(addprefix $(BUILDDIR)/, $(JAVAFILES:%.java=%.class)) CLASSES = $(addprefix $(BUILDDIR)/, $(JAVAFILES:%.java=%.class))
BUILDDIR = bin/$(TARGET_CFG) BUILDDIR = bin/$(TARGET_CFG)
.PHONY: package package-clean package-install package-uninstall .PHONY: package package-clean package-install package-uninstall
all: $(BUILDDIR) $(CLASSES) all: $(BUILDDIR) $(CLASSES)
$(BUILDDIR)/%.class: %.java $(BUILDDIR)/%.class: %.java
@rm -f $(LOG_FILE) $@ @rm -f $(LOG_FILE) $@
@echo [======== Compiling $@ ========] @echo [======== Compiling $@ ========]
@javac $(DEBUG) -d $(BUILDDIR) $< 2> $(LOG_FILE) @javac $(DEBUG) -d $(BUILDDIR) $< 2> $(LOG_FILE)
@echo $$CMD; \ @echo $$CMD; \
if eval $$CMD; then \ if eval $$CMD; then \
ls -l $(BUILDDIR)/$(TARGET_FILE); \ ls -l $(BUILDDIR)/$(TARGET_FILE); \
cp $(BUILDDIR)/$(TARGET_FILE) bin; \ cp $(BUILDDIR)/$(TARGET_FILE) bin; \
else \ else \
grep -a "ERROR:" $(LOG_FILE); \ grep -a "ERROR:" $(LOG_FILE); \
fi fi
$(BUILDDIR): $(BUILDDIR):
[ -d $(BUILDDIR) ] || mkdir -p $(BUILDDIR) [ -d $(BUILDDIR) ] || mkdir -p $(BUILDDIR)
package-clean clean-local: package-clean clean-local:
rm -rf bin/Release/* bin/Release bin/Debug/* bin/Debug bin/* bin *.log rm -rf bin/Release/* bin/Release bin/Debug/* bin/Debug bin/* bin *.log
clean: clean:
rm -rf bin/Release/* bin/Release bin/Debug/* bin/Debug bin/* bin *.log rm -rf bin/Release/* bin/Release bin/Debug/* bin/Debug bin/* bin *.log
distclean-local: package-clean distclean-local: package-clean
rm -f Makefile rm -f Makefile
maintainer-clean-local: maintainer-clean-local:
rm -f Makefile.in rm -f Makefile.in

View File

@ -1,77 +1,77 @@
####################################################################### #######################################################################
# #
# Copyright (C) 2004 Novell, Inc. # Copyright (C) 2004 Novell, Inc.
# #
# This program is free software; you can redistribute it and/or # This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public # modify it under the terms of the GNU General Public
# License as published by the Free Software Foundation; either # License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version. # version 2 of the License, or (at your option) any later version.
# #
# This program is distributed in the hope that it will be useful, # This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of # but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details. # General Public License for more details.
# #
# You should have received a copy of the GNU General Public # You should have received a copy of the GNU General Public
# License along with this program; if not, write to the Free # License along with this program; if not, write to the Free
# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
# #
# Author: Greg Richardson <grichardson@novell.com> # Author: Greg Richardson <grichardson@novell.com>
# #
####################################################################### #######################################################################
SUBDIRS = SUBDIRS =
DIST_SUBDIRS = DIST_SUBDIRS =
EXTRA_DIST = InitConfigFile.java EXTRA_DIST = InitConfigFile.java
if DEBUG if DEBUG
TARGET_CFG = Debug TARGET_CFG = Debug
DEBUG = -g DEBUG = -g
else else
TARGET_CFG = Release TARGET_CFG = Release
DEBUG = -g:none DEBUG = -g:none
endif endif
PACKAGE = InitConfigFile PACKAGE = InitConfigFile
TARGET_FILE = $(PACKAGE).class TARGET_FILE = $(PACKAGE).class
LOG_FILE = $(PACKAGE).log LOG_FILE = $(PACKAGE).log
JAVAFILES = InitConfigFile.java JAVAFILES = InitConfigFile.java
CLASSES = $(addprefix $(BUILDDIR)/, $(JAVAFILES:%.java=%.class)) CLASSES = $(addprefix $(BUILDDIR)/, $(JAVAFILES:%.java=%.class))
BUILDDIR = bin/$(TARGET_CFG) BUILDDIR = bin/$(TARGET_CFG)
.PHONY: package package-clean package-install package-uninstall .PHONY: package package-clean package-install package-uninstall
all: $(BUILDDIR) $(CLASSES) all: $(BUILDDIR) $(CLASSES)
$(BUILDDIR)/%.class: %.java $(BUILDDIR)/%.class: %.java
@rm -f $(LOG_FILE) $@ @rm -f $(LOG_FILE) $@
@echo [======== Compiling $@ ========] @echo [======== Compiling $@ ========]
@javac $(DEBUG) -d $(BUILDDIR) $< 2> $(LOG_FILE) @javac $(DEBUG) -d $(BUILDDIR) $< 2> $(LOG_FILE)
@echo $$CMD; \ @echo $$CMD; \
if eval $$CMD; then \ if eval $$CMD; then \
ls -l $(BUILDDIR)/$(TARGET_FILE); \ ls -l $(BUILDDIR)/$(TARGET_FILE); \
cp $(BUILDDIR)/$(TARGET_FILE) bin; \ cp $(BUILDDIR)/$(TARGET_FILE) bin; \
else \ else \
grep -a "ERROR:" $(LOG_FILE); \ grep -a "ERROR:" $(LOG_FILE); \
fi fi
$(BUILDDIR): $(BUILDDIR):
[ -d $(BUILDDIR) ] || mkdir -p $(BUILDDIR) [ -d $(BUILDDIR) ] || mkdir -p $(BUILDDIR)
package-clean clean-local: package-clean clean-local:
rm -rf bin/Release/* bin/Release bin/Debug/* bin/Debug bin/* bin *.log rm -rf bin/Release/* bin/Release bin/Debug/* bin/Debug bin/* bin *.log
clean: clean:
rm -rf bin/Release/* bin/Release bin/Debug/* bin/Debug bin/* bin *.log rm -rf bin/Release/* bin/Release bin/Debug/* bin/Debug bin/* bin *.log
distclean-local: package-clean distclean-local: package-clean
rm -f Makefile rm -f Makefile
maintainer-clean-local: maintainer-clean-local:
rm -f Makefile.in rm -f Makefile.in

View File

@ -1,45 +1,45 @@
####################################################################### #######################################################################
# #
# Copyright (C) 2006 Novell, Inc. # Copyright (C) 2006 Novell, Inc.
# #
# This program is free software; you can redistribute it and/or # This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public # modify it under the terms of the GNU General Public
# License as published by the Free Software Foundation; either # License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version. # version 2 of the License, or (at your option) any later version.
# #
# This program is distributed in the hope that it will be useful, # This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of # but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details. # General Public License for more details.
# #
# You should have received a copy of the GNU General Public # You should have received a copy of the GNU General Public
# License along with this program; if not, write to the Free # License along with this program; if not, write to the Free
# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
# #
# Author: Greg Richardson <grichardson@novell.com> # Author: Greg Richardson <grichardson@novell.com>
# #
####################################################################### #######################################################################
SUBDIRS = ClientKeystoreSetup InitConfigFile MungeCryptoPropertiesFilePath ServerKeystoreSetup SetupAsWindowsService UpdateWarFile server-java_msi SUBDIRS = ClientKeystoreSetup InitConfigFile MungeCryptoPropertiesFilePath ServerKeystoreSetup SetupAsWindowsService UpdateWarFile server-java_msi
DIST_SUBDIRS = ClientKeystoreSetup CommandLauncher InitConfigFile MungeCryptoPropertiesFilePath ServerKeystoreSetup SetupAsWindowsService UpdateWarFile server-java_msi DIST_SUBDIRS = ClientKeystoreSetup CommandLauncher InitConfigFile MungeCryptoPropertiesFilePath ServerKeystoreSetup SetupAsWindowsService UpdateWarFile server-java_msi
EXTRA_DIST = EXTRA_DIST =
.PHONY: package package-clean package-install package-uninstall .PHONY: package package-clean package-install package-uninstall
package package-clean package-install package-uninstall: package package-clean package-install package-uninstall:
$(MAKE) -C ClientKeystoreSetup $@ $(MAKE) -C ClientKeystoreSetup $@
$(MAKE) -C InitConfigFile $@ $(MAKE) -C InitConfigFile $@
$(MAKE) -C MungeCryptoPropertiesFilePath $@ $(MAKE) -C MungeCryptoPropertiesFilePath $@
$(MAKE) -C ServerKeystoreSetup $@ $(MAKE) -C ServerKeystoreSetup $@
$(MAKE) -C SetupAsWindowsService $@ $(MAKE) -C SetupAsWindowsService $@
$(MAKE) -C UpdateWarFile $@ $(MAKE) -C UpdateWarFile $@
$(MAKE) -C server-java_msi $@ $(MAKE) -C server-java_msi $@
clean-local: clean-local:
if [ -d lib ]; then rm -rf lib; fi if [ -d lib ]; then rm -rf lib; fi
maintainer-clean-local: maintainer-clean-local:
rm -f Makefile.in rm -f Makefile.in
rm -f Makefile rm -f Makefile

View File

@ -1,77 +1,77 @@
####################################################################### #######################################################################
# #
# Copyright (C) 2004 Novell, Inc. # Copyright (C) 2004 Novell, Inc.
# #
# This program is free software; you can redistribute it and/or # This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public # modify it under the terms of the GNU General Public
# License as published by the Free Software Foundation; either # License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version. # version 2 of the License, or (at your option) any later version.
# #
# This program is distributed in the hope that it will be useful, # This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of # but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details. # General Public License for more details.
# #
# You should have received a copy of the GNU General Public # You should have received a copy of the GNU General Public
# License along with this program; if not, write to the Free # License along with this program; if not, write to the Free
# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
# #
# Author: Greg Richardson <grichardson@novell.com> # Author: Greg Richardson <grichardson@novell.com>
# #
####################################################################### #######################################################################
SUBDIRS = SUBDIRS =
DIST_SUBDIRS = DIST_SUBDIRS =
EXTRA_DIST = MungeCryptoPropertiesFilePath.java EXTRA_DIST = MungeCryptoPropertiesFilePath.java
if DEBUG if DEBUG
TARGET_CFG = Debug TARGET_CFG = Debug
DEBUG = -g DEBUG = -g
else else
TARGET_CFG = Release TARGET_CFG = Release
DEBUG = -g:none DEBUG = -g:none
endif endif
PACKAGE = MungeCryptoPropertiesFilePath PACKAGE = MungeCryptoPropertiesFilePath
TARGET_FILE = $(PACKAGE).class TARGET_FILE = $(PACKAGE).class
LOG_FILE = $(PACKAGE).log LOG_FILE = $(PACKAGE).log
JAVAFILES = MungeCryptoPropertiesFilePath.java JAVAFILES = MungeCryptoPropertiesFilePath.java
CLASSES = $(addprefix $(BUILDDIR)/, $(JAVAFILES:%.java=%.class)) CLASSES = $(addprefix $(BUILDDIR)/, $(JAVAFILES:%.java=%.class))
BUILDDIR = bin/$(TARGET_CFG) BUILDDIR = bin/$(TARGET_CFG)
.PHONY: package package-clean package-install package-uninstall .PHONY: package package-clean package-install package-uninstall
all: $(BUILDDIR) $(CLASSES) all: $(BUILDDIR) $(CLASSES)
$(BUILDDIR)/%.class: %.java $(BUILDDIR)/%.class: %.java
@rm -f $(LOG_FILE) $@ @rm -f $(LOG_FILE) $@
@echo [======== Compiling $@ ========] @echo [======== Compiling $@ ========]
@javac $(DEBUG) -d $(BUILDDIR) $< 2> $(LOG_FILE) @javac $(DEBUG) -d $(BUILDDIR) $< 2> $(LOG_FILE)
@echo $$CMD; \ @echo $$CMD; \
if eval $$CMD; then \ if eval $$CMD; then \
ls -l $(BUILDDIR)/$(TARGET_FILE); \ ls -l $(BUILDDIR)/$(TARGET_FILE); \
cp $(BUILDDIR)/$(TARGET_FILE) bin; \ cp $(BUILDDIR)/$(TARGET_FILE) bin; \
else \ else \
grep -a "ERROR:" $(LOG_FILE); \ grep -a "ERROR:" $(LOG_FILE); \
fi fi
$(BUILDDIR): $(BUILDDIR):
[ -d $(BUILDDIR) ] || mkdir -p $(BUILDDIR) [ -d $(BUILDDIR) ] || mkdir -p $(BUILDDIR)
package-clean clean-local: package-clean clean-local:
rm -rf bin/Release/* bin/Release bin/Debug/* bin/Debug bin/* bin *.log rm -rf bin/Release/* bin/Release bin/Debug/* bin/Debug bin/* bin *.log
clean: clean:
rm -rf bin/Release/* bin/Release bin/Debug/* bin/Debug bin/* bin *.log rm -rf bin/Release/* bin/Release bin/Debug/* bin/Debug bin/* bin *.log
distclean-local: package-clean distclean-local: package-clean
rm -f Makefile rm -f Makefile
maintainer-clean-local: maintainer-clean-local:
rm -f Makefile.in rm -f Makefile.in

View File

@ -1,77 +1,77 @@
####################################################################### #######################################################################
# #
# Copyright (C) 2004 Novell, Inc. # Copyright (C) 2004 Novell, Inc.
# #
# This program is free software; you can redistribute it and/or # This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public # modify it under the terms of the GNU General Public
# License as published by the Free Software Foundation; either # License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version. # version 2 of the License, or (at your option) any later version.
# #
# This program is distributed in the hope that it will be useful, # This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of # but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details. # General Public License for more details.
# #
# You should have received a copy of the GNU General Public # You should have received a copy of the GNU General Public
# License along with this program; if not, write to the Free # License along with this program; if not, write to the Free
# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
# #
# Author: Greg Richardson <grichardson@novell.com> # Author: Greg Richardson <grichardson@novell.com>
# #
####################################################################### #######################################################################
SUBDIRS = SUBDIRS =
DIST_SUBDIRS = DIST_SUBDIRS =
EXTRA_DIST = ServerKeystoreSetup.java EXTRA_DIST = ServerKeystoreSetup.java
if DEBUG if DEBUG
TARGET_CFG = Debug TARGET_CFG = Debug
DEBUG = -g DEBUG = -g
else else
TARGET_CFG = Release TARGET_CFG = Release
DEBUG = -g:none DEBUG = -g:none
endif endif
PACKAGE = ServerKeystoreSetup PACKAGE = ServerKeystoreSetup
TARGET_FILE = $(PACKAGE).class TARGET_FILE = $(PACKAGE).class
LOG_FILE = $(PACKAGE).log LOG_FILE = $(PACKAGE).log
JAVAFILES = ServerKeystoreSetup.java JAVAFILES = ServerKeystoreSetup.java
CLASSES = $(addprefix $(BUILDDIR)/, $(JAVAFILES:%.java=%.class)) CLASSES = $(addprefix $(BUILDDIR)/, $(JAVAFILES:%.java=%.class))
BUILDDIR = bin/$(TARGET_CFG) BUILDDIR = bin/$(TARGET_CFG)
.PHONY: package package-clean package-install package-uninstall .PHONY: package package-clean package-install package-uninstall
all: $(BUILDDIR) $(CLASSES) all: $(BUILDDIR) $(CLASSES)
$(BUILDDIR)/%.class: %.java $(BUILDDIR)/%.class: %.java
@rm -f $(LOG_FILE) $@ @rm -f $(LOG_FILE) $@
@echo [======== Compiling $@ ========] @echo [======== Compiling $@ ========]
@javac $(DEBUG) -d $(BUILDDIR) $< 2> $(LOG_FILE) @javac $(DEBUG) -d $(BUILDDIR) $< 2> $(LOG_FILE)
@echo $$CMD; \ @echo $$CMD; \
if eval $$CMD; then \ if eval $$CMD; then \
ls -l $(BUILDDIR)/$(TARGET_FILE); \ ls -l $(BUILDDIR)/$(TARGET_FILE); \
cp $(BUILDDIR)/$(TARGET_FILE) bin; \ cp $(BUILDDIR)/$(TARGET_FILE) bin; \
else \ else \
grep -a "ERROR:" $(LOG_FILE); \ grep -a "ERROR:" $(LOG_FILE); \
fi fi
$(BUILDDIR): $(BUILDDIR):
[ -d $(BUILDDIR) ] || mkdir -p $(BUILDDIR) [ -d $(BUILDDIR) ] || mkdir -p $(BUILDDIR)
package-clean clean-local: package-clean clean-local:
rm -rf bin/Release/* bin/Release bin/Debug/* bin/Debug bin/* bin *.log rm -rf bin/Release/* bin/Release bin/Debug/* bin/Debug bin/* bin *.log
clean: clean:
rm -rf bin/Release/* bin/Release bin/Debug/* bin/Debug bin/* bin *.log rm -rf bin/Release/* bin/Release bin/Debug/* bin/Debug bin/* bin *.log
distclean-local: package-clean distclean-local: package-clean
rm -f Makefile rm -f Makefile
maintainer-clean-local: maintainer-clean-local:
rm -f Makefile.in rm -f Makefile.in

View File

@ -1,77 +1,77 @@
####################################################################### #######################################################################
# #
# Copyright (C) 2004 Novell, Inc. # Copyright (C) 2004 Novell, Inc.
# #
# This program is free software; you can redistribute it and/or # This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public # modify it under the terms of the GNU General Public
# License as published by the Free Software Foundation; either # License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version. # version 2 of the License, or (at your option) any later version.
# #
# This program is distributed in the hope that it will be useful, # This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of # but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details. # General Public License for more details.
# #
# You should have received a copy of the GNU General Public # You should have received a copy of the GNU General Public
# License along with this program; if not, write to the Free # License along with this program; if not, write to the Free
# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
# #
# Author: Greg Richardson <grichardson@novell.com> # Author: Greg Richardson <grichardson@novell.com>
# #
####################################################################### #######################################################################
SUBDIRS = SUBDIRS =
DIST_SUBDIRS = DIST_SUBDIRS =
EXTRA_DIST = SetupAsWindowsService.java EXTRA_DIST = SetupAsWindowsService.java
if DEBUG if DEBUG
TARGET_CFG = Debug TARGET_CFG = Debug
DEBUG = -g DEBUG = -g
else else
TARGET_CFG = Release TARGET_CFG = Release
DEBUG = -g:none DEBUG = -g:none
endif endif
PACKAGE = SetupAsWindowsService PACKAGE = SetupAsWindowsService
TARGET_FILE = $(PACKAGE).class TARGET_FILE = $(PACKAGE).class
LOG_FILE = $(PACKAGE).log LOG_FILE = $(PACKAGE).log
JAVAFILES = SetupAsWindowsService.java JAVAFILES = SetupAsWindowsService.java
CLASSES = $(addprefix $(BUILDDIR)/, $(JAVAFILES:%.java=%.class)) CLASSES = $(addprefix $(BUILDDIR)/, $(JAVAFILES:%.java=%.class))
BUILDDIR = bin/$(TARGET_CFG) BUILDDIR = bin/$(TARGET_CFG)
.PHONY: package package-clean package-install package-uninstall .PHONY: package package-clean package-install package-uninstall
all: $(BUILDDIR) $(CLASSES) all: $(BUILDDIR) $(CLASSES)
$(BUILDDIR)/%.class: %.java $(BUILDDIR)/%.class: %.java
@rm -f $(LOG_FILE) $@ @rm -f $(LOG_FILE) $@
@echo [======== Compiling $@ ========] @echo [======== Compiling $@ ========]
@javac $(DEBUG) -d $(BUILDDIR) $< 2> $(LOG_FILE) @javac $(DEBUG) -d $(BUILDDIR) $< 2> $(LOG_FILE)
@echo $$CMD; \ @echo $$CMD; \
if eval $$CMD; then \ if eval $$CMD; then \
ls -l $(BUILDDIR)/$(TARGET_FILE); \ ls -l $(BUILDDIR)/$(TARGET_FILE); \
cp $(BUILDDIR)/$(TARGET_FILE) bin; \ cp $(BUILDDIR)/$(TARGET_FILE) bin; \
else \ else \
grep -a "ERROR:" $(LOG_FILE); \ grep -a "ERROR:" $(LOG_FILE); \
fi fi
$(BUILDDIR): $(BUILDDIR):
[ -d $(BUILDDIR) ] || mkdir -p $(BUILDDIR) [ -d $(BUILDDIR) ] || mkdir -p $(BUILDDIR)
package-clean clean-local: package-clean clean-local:
rm -rf bin/Release/* bin/Release bin/Debug/* bin/Debug bin/* bin *.log rm -rf bin/Release/* bin/Release bin/Debug/* bin/Debug bin/* bin *.log
clean: clean:
rm -rf bin/Release/* bin/Release bin/Debug/* bin/Debug bin/* bin *.log rm -rf bin/Release/* bin/Release bin/Debug/* bin/Debug bin/* bin *.log
distclean-local: package-clean distclean-local: package-clean
rm -f Makefile rm -f Makefile
maintainer-clean-local: maintainer-clean-local:
rm -f Makefile.in rm -f Makefile.in

View File

@ -1,77 +1,77 @@
####################################################################### #######################################################################
# #
# Copyright (C) 2004 Novell, Inc. # Copyright (C) 2004 Novell, Inc.
# #
# This program is free software; you can redistribute it and/or # This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public # modify it under the terms of the GNU General Public
# License as published by the Free Software Foundation; either # License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version. # version 2 of the License, or (at your option) any later version.
# #
# This program is distributed in the hope that it will be useful, # This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of # but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details. # General Public License for more details.
# #
# You should have received a copy of the GNU General Public # You should have received a copy of the GNU General Public
# License along with this program; if not, write to the Free # License along with this program; if not, write to the Free
# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
# #
# Author: Greg Richardson <grichardson@novell.com> # Author: Greg Richardson <grichardson@novell.com>
# #
####################################################################### #######################################################################
SUBDIRS = SUBDIRS =
DIST_SUBDIRS = DIST_SUBDIRS =
EXTRA_DIST = UpdateWarFile.java EXTRA_DIST = UpdateWarFile.java
if DEBUG if DEBUG
TARGET_CFG = Debug TARGET_CFG = Debug
DEBUG = -g DEBUG = -g
else else
TARGET_CFG = Release TARGET_CFG = Release
DEBUG = -g:none DEBUG = -g:none
endif endif
PACKAGE = UpdateWarFile PACKAGE = UpdateWarFile
TARGET_FILE = $(PACKAGE).class TARGET_FILE = $(PACKAGE).class
LOG_FILE = $(PACKAGE).log LOG_FILE = $(PACKAGE).log
JAVAFILES = UpdateWarFile.java JAVAFILES = UpdateWarFile.java
BUILDDIR = bin/$(TARGET_CFG) BUILDDIR = bin/$(TARGET_CFG)
CLASSES = $(addprefix $(BUILDDIR)/, $(JAVAFILES:%.java=%.class)) CLASSES = $(addprefix $(BUILDDIR)/, $(JAVAFILES:%.java=%.class))
.PHONY: package package-clean package-install package-uninstall .PHONY: package package-clean package-install package-uninstall
all: $(BUILDDIR) $(CLASSES) all: $(BUILDDIR) $(CLASSES)
$(BUILDDIR)/%.class: %.java $(BUILDDIR)/%.class: %.java
@rm -f $(LOG_FILE) $@ @rm -f $(LOG_FILE) $@
@echo [======== Compiling $@ ========] @echo [======== Compiling $@ ========]
@javac $(DEBUG) -d $(BUILDDIR) $< 2> $(LOG_FILE) @javac $(DEBUG) -d $(BUILDDIR) $< 2> $(LOG_FILE)
@echo $$CMD; \ @echo $$CMD; \
if eval $$CMD; then \ if eval $$CMD; then \
ls -l $(BUILDDIR)/$(TARGET_FILE); \ ls -l $(BUILDDIR)/$(TARGET_FILE); \
cp $(BUILDDIR)/$(TARGET_FILE) bin; \ cp $(BUILDDIR)/$(TARGET_FILE) bin; \
else \ else \
grep -a "ERROR:" $(LOG_FILE); \ grep -a "ERROR:" $(LOG_FILE); \
fi fi
$(BUILDDIR): $(BUILDDIR):
[ -d $(BUILDDIR) ] || mkdir -p $(BUILDDIR) [ -d $(BUILDDIR) ] || mkdir -p $(BUILDDIR)
package-clean clean-local: package-clean clean-local:
rm -rf bin/Release/* bin/Release bin/Debug/* bin/Debug bin/* bin *.log rm -rf bin/Release/* bin/Release bin/Debug/* bin/Debug bin/* bin *.log
clean: clean:
rm -rf bin/Release/* bin/Release bin/Debug/* bin/Debug bin/* bin *.log rm -rf bin/Release/* bin/Release bin/Debug/* bin/Debug bin/* bin *.log
distclean-local: package-clean distclean-local: package-clean
rm -f Makefile rm -f Makefile
maintainer-clean-local: maintainer-clean-local:
rm -f Makefile.in rm -f Makefile.in