sync up changes from the build submitted to Germany

This commit is contained in:
soochoi 2006-03-28 17:36:31 +00:00
parent 0b3db62210
commit 189777ec3c
24 changed files with 83 additions and 266 deletions

View File

@ -35,13 +35,9 @@ EXTRA_DIST = include include/*.h \
doc/*txt doc/*.pdf \
Readme*.txt autogen.sh
if cpu_64
CASALIBDIR = lib64
else
CASALIBDIR = lib
endif
CASALIBDIR = $(LIB)
if cpu_64
if LIB64
CASABINDIR = bin64
else
CASABINDIR = bin

View File

@ -33,11 +33,7 @@ DIST_SUBDIRS =
CASAROOT = ../../..
if cpu_64
CASALIBDIR = $(CASAROOT)/lib64
else
CASALIBDIR = $(CASAROOT)/lib
endif
CASALIBDIR = $(CASAROOT)/$(LIB)
# handle Mono secondary dependencies
export MONO_PATH := $(MONO_PATH)
@ -56,14 +52,10 @@ RESOURCES =
DEFINES = -Wno-format-extra-args -fno-strict-aliasing
CFLAGS += $(INCLUDES) $(DEFINES)
LIBS = -lpthread -lc -lpam -lcasa_auth_token
LDFLAGS = -init _init -Bsymbolic -shared -soname=$(MODULE_NAME).$(MODULE_EXT) -L$(CASALIBDIR)/$(TARGET_CFG)
LIBS = -lpthread -lpam -lcasa_auth_token
LDFLAGS = -Bsymbolic -shared -Wl,-soname=$(MODULE_NAME).$(MODULE_EXT) -L$(CASALIBDIR)/$(TARGET_CFG)
if cpu_64
OBJDIR = ./$(TARGET_CFG)/lib64
else
OBJDIR = ./$(TARGET_CFG)/lib
endif
OBJDIR = ./$(TARGET_CFG)/$(LIB)
OBJS = $(addprefix $(OBJDIR)/, $(CFILES:%.c=%.o))
EXTRA_DIST = $(CFILES)

View File

@ -33,11 +33,7 @@ DIST_SUBDIRS =
CASAROOT = ../../..
if cpu_64
CASALIBDIR = $(CASAROOT)/lib64
else
CASALIBDIR = $(CASAROOT)/lib
endif
CASALIBDIR = $(CASAROOT)/$(LIB)
# handle Mono secondary dependencies
export MONO_PATH := $(MONO_PATH)
@ -61,15 +57,10 @@ DEFINES = -fPIC -DPIC -DSSCS_LINUX_PLAT_F -02 -fmessage-length=0 -Wall \
-DN_PLAT_UNIX -DUNIX -DLINUX -DIAPX386
CFLAGS += $(INCLUDES) $(DEFINES)
LIBS = -lpthread -lc -lgssapi
LDFLAGS = -init _init -Bsymbolic -shared -soname=$(MODULE_NAME).$(MODULE_EXT)
if cpu_64
OBJDIR = ./$(TARGET_CFG)/lib64
else
OBJDIR = ./$(TARGET_CFG)/lib
endif
LIBS = -lpthread -lgssapi
LDFLAGS = -Bsymbolic -shared -Wl,-soname=$(MODULE_NAME).$(MODULE_EXT)
OBJDIR = ./$(TARGET_CFG)/$(LIB)
OBJS = $(addprefix $(OBJDIR)/, $(CFILES:%.c=%.o))
EXTRA_DIST = $(CFILES) *.h

View File

@ -33,11 +33,7 @@ DIST_SUBDIRS =
CASAROOT = ../..
if cpu_64
CASALIBDIR = $(CASAROOT)/lib64
else
CASALIBDIR = $(CASAROOT)/lib
endif
CASALIBDIR = $(CASAROOT)/$(LIB)
# handle Mono secondary dependencies
export MONO_PATH := $(MONO_PATH)
@ -56,14 +52,10 @@ INCLUDES = -I. -I.. -I$(CASAROOT)/include
RESOURCES =
DEFINES = -Wno-format-extra-args -fno-strict-aliasing
CFLAGS += $(INCLUDES) $(DEFINES)
LIBS = -lpthread -lc -ldl
LDFLAGS = -init _init -Bsymbolic -shared -soname=$(MODULE_NAME).$(MODULE_EXT)
LIBS = -lpthread -ldl
LDFLAGS = -Bsymbolic -shared -Wl,-soname=$(MODULE_NAME).$(MODULE_EXT)
if cpu_64
OBJDIR = ./$(TARGET_CFG)/lib64
else
OBJDIR = ./$(TARGET_CFG)/lib
endif
OBJDIR = ./$(TARGET_CFG)/$(LIB)
OBJS = $(addprefix $(OBJDIR)/, $(CFILES:%.c=%.o))
EXTRA_DIST = $(CFILES) *.h

View File

@ -32,11 +32,7 @@ DIST_SUBDIRS = ad_kw ad_gk ad_ff
CASAROOT = ..
if cpu_64
CASALIBDIR = $(CASAROOT)/lib64
else
CASALIBDIR = $(CASAROOT)/lib
endif
CASALIBDIR = $(CASAROOT)/$(LIB)
EXTRA_DIST = $(CSFILES)
@ -71,12 +67,7 @@ CS_LIBPATH = $(CASALIBDIR)/$(TARGET_CFG) $(srcdir)/ad_gk/$(TARGET_CFG) $(srcdir)
$(srcdir)/ad_ff/$(TARGET_CFG)
if cpu_64
OBJDIR = ./$(TARGET_CFG)/lib64
else
OBJDIR = ./$(TARGET_CFG)/lib
endif
OBJDIR = ./$(TARGET_CFG)/$(LIB)
#OBJS = $(addprefix $(OBJDIR)/, $(CSFILES:%.dll=%.cs))

View File

@ -34,11 +34,7 @@ EXTRA_DIST = $(CSFILES)
CASAROOT = ../..
if cpu_64
CASALIBDIR = $(CASAROOT)/lib64
else
CASALIBDIR = $(CASAROOT)/lib
endif
CASALIBDIR = $(CASAROOT)/$(LIB)
# handle Mono secondary dependencies
export MONO_PATH := $(MONO_PATH)
@ -58,12 +54,7 @@ CS_RESOURCES =
CS_LIBS =
CS_LIBPATH =
if cpu_64
OBJDIR = ./$(TARGET_CFG)/lib64
else
OBJDIR = ./$(TARGET_CFG)/lib
endif
OBJDIR = ./$(TARGET_CFG)/$(LIB)
#OBJS = $(addprefix $(OBJDIR)/, $(CSFILES:%.dll=%.cs))

View File

@ -33,11 +33,7 @@ EXTRA_DIST = $(CXXFILES) *.h
CASAROOT = ../../..
if cpu_64
CASALIBDIR = $(CASAROOT)/lib64
else
CASALIBDIR = $(CASAROOT)/lib
endif
CASALIBDIR = $(CASAROOT)/$(LIB)
BUILD_VER = 1.1.1
@ -68,21 +64,13 @@ EXTRA_CXXFLAGS = -fPIC -DPIC -DSSCS_LINUX_PLAT_F -DQT_THREAD_SUPPORT -DQT_CLEAN_
-DQT_NO_ASCII_CAS -O2 -fmessage-length=0 -Wall -g -D_REENTRANT \
-DALIGNMENT -DN_PLAT_UNIX -DUNIX -DLINUX -DIAPX386
CXX_RESOURCES =
LIBS = -lpthread -lc -ldl -L/opt/kde3/lib
LIBS = -lpthread -ldl -L/opt/kde3/lib
LDFLAGS = -fno-exception -fno-check-new -Wl,-Bsymbolic -shared -pthread -O2 \
-Wl,-rpath -Wl,/usr/lib -Wl,-soname -Wl,libkwallets_rw.so.1
-Wl,-soname -Wl,libkwallets_rw.so.1
if cpu_64
EXTRA_LDFLAGS = -L/usr/lib64 -lqt-mt -L/usr/X11R6/lib64 -L/usr/lib/qt3/lib64
else
EXTRA_LddDFLAGS = -L/usr/lib -lqt-mt -L/usr/X11R6/lib -L/usr/lib/qt3/lib
endif
EXTRA_LDFLAGS = -L/usr/$(LIB) -lqt-mt -L/usr/X11R6/$(LIB) -L/usr/lib/qt3/$(LIB)
if cpu_64
OBJDIR = ./$(TARGET_CFG)/lib64
else
OBJDIR = ./$(TARGET_CFG)/lib
endif
OBJDIR = ./$(TARGET_CFG)/$(LIB)
OBJS = $(addprefix $(OBJDIR)/, $(CXXFILES:%.cpp=%.o))

View File

@ -34,11 +34,7 @@ EXTRA_DIST = $(CSFILES)
CASAROOT = ../..
if cpu_64
CASALIBDIR = $(CASAROOT)/lib64
else
CASALIBDIR = $(CASAROOT)/lib
endif
CASALIBDIR = $(CASAROOT)/$(LIB)
# handle Mono secondary dependencies
export MONO_PATH := $(MONO_PATH)
@ -57,12 +53,7 @@ CS_RESOURCES =
CS_LIBS =
CS_LIBPATH =
if cpu_64
OBJDIR = ./$(TARGET_CFG)/lib64
else
OBJDIR = ./$(TARGET_CFG)/lib
endif
OBJDIR = ./$(TARGET_CFG)/$(LIB)
#OBJS = $(addprefix $(OBJDIR)/, $(CSFILES:%.dll=%.cs))

View File

@ -32,11 +32,7 @@ DIST_SUBDIRS =
CASAROOT = ../../..
if cpu_64
CASALIBDIR = $(CASAROOT)/lib64
else
CASALIBDIR = $(CASAROOT)/lib
endif
CASALIBDIR = $(CASAROOT)/$(LIB)
BUILD_VER = 1.1.1
@ -51,11 +47,7 @@ MODULE_EXT = so
CFILES = $(srcdir)/ad_gk.c
if cpu_64
LIBDIR = lib64
else
LIBDIR = lib
endif
LIBDIR = $(LIB)
CSFILES_CSC :=
INCLUDES = -I. -I.. -I$(CASAROOT)/include \
@ -68,7 +60,7 @@ RESOURCES =
EXTRA_CFLAGS =
CFLAGS += $(INCLUDES) $(DEFINES)
LIBS = -lpthread -lc -ldl
LIBS = -lpthread -ldl
LDFLAGS = -fno-exceptions -fno-check-new -Wl,-Bsymbolic -shared -pthread -O2 \
-Wl,-rpath -Wl,/usr/$(LIBDIR) -Wl,-soname -Wl,libad_gk.so.1

View File

@ -34,11 +34,7 @@ EXTRA_DIST = $(CSFILES)
CASAROOT = ../..
if cpu_64
CASALIBDIR = $(CASAROOT)/lib64
else
CASALIBDIR = $(CASAROOT)/lib
endif
CASALIBDIR = $(CASAROOT)/$(LIB)
# handle Mono secondary dependencies
export MONO_PATH := $(MONO_PATH)
@ -59,11 +55,7 @@ CS_RESOURCES =
CS_LIBS =
CS_LIBPATH =
if cpu_64
OBJDIR = ./$(TARGET_CFG)/lib64
else
OBJDIR = ./$(TARGET_CFG)/lib
endif
OBJDIR = ./$(TARGET_CFG)/$(LIB)
#OBJS = $(addprefix $(OBJDIR)/, $(CSFILES:%.dll=%.cs))

View File

@ -33,11 +33,7 @@ EXTRA_DIST = $(CXXFILES) $(CXX_MOC_FILES) *.h
CASAROOT = ../../..
if cpu_64
CASALIBDIR = $(CASAROOT)/lib64
else
CASALIBDIR = $(CASAROOT)/lib
endif
CASALIBDIR = $(CASAROOT)/$(LIB)
BUILD_VER = 1.1.1
@ -66,23 +62,14 @@ EXTRA_CXXFLAGS = -fPIC -DPIC -DSSCS_LINUX_PLAT_F -DQT_THREAD_SUPPORT -DQT_CLEAN_
-DQT_NO_ASCII_CAS -O2 -fmessage-length=0 -Wall -g -D_REENTRANT \
-DALIGNMENT -DN_PLAT_UNIX -DUNIX -DLINUX -DIAPX386
CXX_RESOURCES =
LIBS = -lpthread -lc -ldl -L/opt/kde3/lib
LIBS = -lpthread -ldl
LDFLAGS = -fno-exception -fno-check-new -Wl,-Bsymbolic -shared -pthread -O2 \
-Wl,-rpath -Wl,/usr/lib -Wl,-soname -Wl,libkwallets_rw.so.1
-Wl,-soname -Wl,libkwallets_rw.so.1
if cpu_64
EXTRA_LDFLAGS = -L/usr/lib64 -lpthread -lc -ldl -L/opt/kde3/lib64 -lkwalletclient \
-lqt-mt -L/usr/X11R6/lib64 -L/usr/lib/qt3/lib64 -lqt-mt
else
EXTRA_LDFLAGS = -L/usr/lib -lpthread -lc -ldl -L/opt/kde3/lib -lkwalletclient \
-lqt-mt -L/usr/X11R6/lib -L/usr/lib/qt3/lib -lqt-mt
endif
EXTRA_LDFLAGS = -L/opt/kde3/$(LIB) -lkwalletclient \
-lqt-mt -L/usr/X11R6/$(LIB) -L/usr/lib/qt3/$(LIB) -lqt-mt
if cpu_64
OBJDIR = ./$(TARGET_CFG)/lib64
else
OBJDIR = ./$(TARGET_CFG)/lib
endif
OBJDIR = ./$(TARGET_CFG)/$(LIB)
OBJS = $(addprefix $(OBJDIR)/, $(CXXFILES:%.cpp=%.o))

View File

@ -33,11 +33,7 @@ EXTRA_DIST = $(CFILES)
CASAROOT = ../..
if cpu_64
CASALIBDIR = $(CASAROOT)/lib64
else
CASALIBDIR = $(CASAROOT)/lib
endif
CASALIBDIR = $(CASAROOT)/$(LIB)
# handle Mono secondary dependencies
export MONO_PATH := $(MONO_PATH)
@ -55,14 +51,10 @@ INCLUDES = -I. -I.. -I$(CASAROOT)/include -I/opt/gnome/include/gnome-keyring-1/
EXTRA_CFLAGS =
RESOURCES =
CFLAGS += $(EXTRA_CFLAGS) $(INCLUDES) $(DEFINES)
LIBS = -lpthread -lc -ldl
LDFLAGS = -init _init -Bsymbolic -shared -soname=$(MODULE_NAME).$(MODULE_EXT)
LIBS = -lpthread -ldl
LDFLAGS = -Bsymbolic -shared -Wl,-soname=$(MODULE_NAME).$(MODULE_EXT)
if cpu_64
OBJDIR = ./$(TARGET_CFG)/lib64
else
OBJDIR = ./$(TARGET_CFG)/lib
endif
OBJDIR = ./$(TARGET_CFG)/$(LIB)

View File

@ -40,13 +40,9 @@ EXTRA_DIST = $(CSFILES) *.sh CASAManager.* help/en/*.htm help/en/*.gif \
CASAROOT = ..
if cpu_64
CASALIBDIR = $(CASAROOT)/lib64/$(TARGET_CFG)
else
CASALIBDIR = $(CASAROOT)/lib/$(TARGET_CFG)
endif
CASALIBDIR = $(CASAROOT)/$(LIB)/$(TARGET_CFG)
if cpu_64
if LIB64
CASABINDIR = $(CASAROOT)/bin64
else
CASABINDIR = $(CASAROOT)/bin
@ -87,11 +83,7 @@ CS_LIBS =$(CASALIBDIR)/Novell.CASA.Common.dll \
CS_LIBPATH = ../c_micasad/test/dependencies \
$(CASALIBDIR)
if cpu_64
OBJDIR = ./$(TARGET_CFG)/lib64
else
OBJDIR = ./$(TARGET_CFG)/lib
endif
OBJDIR = ./$(TARGET_CFG)/$(LIB)
#OBJS = $(addprefix $(OBJDIR)/, $(CSFILES:%.dll=%.cs))

View File

@ -33,11 +33,7 @@ EXTRA_DIST = *.exp
CASAROOT = ../../..
if cpu_64
CASALIBDIR = $(CASAROOT)/lib64
else
CASALIBDIR = $(CASAROOT)/lib
endif
CASALIBDIR = $(CASAROOT)/$(LIB)
BUILD_VER = 1.1.1
@ -58,15 +54,11 @@ INCLUDES = -I. -I.. -I$(CASAROOT)/include -I$(JAVA_HOME)/include -I$(JAVA_HOME)/
RESOURCES =
DEFINES =
CFLAGS += $(INCLUDES) $(DEFINES)
LIBS = -lpthread -lc -ldl
LDFLAGS = -Wl,-Bsymbolic -shared -Wl,--version-script=jmicasa_lux.exp -Wl,-rpath -Wl,/usr/lib \
LIBS = -lpthread -ldl
LDFLAGS = -Wl,-Bsymbolic -shared -Wl,--version-script=jmicasa_lux.exp \
-L$(CASALIBDIR)/$(TARGET_CFG) -lmicasa -Wl,-soname -Wl,libjmicasa.so.1
if cpu_64
OBJDIR = ./$(TARGET_CFG)/lib64
else
OBJDIR = ./$(TARGET_CFG)/lib
endif
OBJDIR = ./$(TARGET_CFG)/$(LIB)
OBJS = $(addprefix $(OBJDIR)/, $(CFILES:%.c=%.o))

View File

@ -33,11 +33,7 @@ EXTRA_DIST =$(JAVAFILES) com/novell/casa/*.java
CASAROOT = ../..
if cpu_64
CASALIBDIR = $(CASAROOT)/lib64
else
CASALIBDIR = $(CASAROOT)/lib
endif
CASALIBDIR = $(CASAROOT)/$(LIB)
JAVAROOT = .
@ -66,11 +62,7 @@ CFLAGS += $(INCLUDES) $(DEFINES)
LIBS =
LDFLAGS =
if cpu_64
OBJDIR = ./$(TARGET_CFG)/lib64
else
OBJDIR = ./$(TARGET_CFG)/lib
endif
OBJDIR = ./$(TARGET_CFG)/$(LIB)
OBJS =

View File

@ -33,11 +33,7 @@ EXTRA_DIST = $(CFILES)
CASAROOT = ../..
if cpu_64
CASALIBDIR = $(CASAROOT)/lib64
else
CASALIBDIR = $(CASAROOT)/lib
endif
CASALIBDIR = $(CASAROOT)/$(LIB)
# handle Mono secondary dependencies
export MONO_PATH := $(MONO_PATH)
@ -57,14 +53,10 @@ INCLUDES = -I. -I.. -I$(CASAROOT)/include -I/opt/gnome/include/gnome-keyring-1/
EXTRA_CFLAGS =
RESOURCES =
CFLAGS += $(EXTRA_CFLAGS) $(INCLUDES) $(DEFINES)
LIBS = -lpthread -lc -ldl
LDFLAGS = -init _init -Bsymbolic -shared -soname=$(MODULE_NAME).$(MODULE_EXT)
LIBS = -lpthread -ldl
LDFLAGS = -Bsymbolic -shared -Wl,-soname=$(MODULE_NAME).$(MODULE_EXT)
if cpu_64
OBJDIR = ./$(TARGET_CFG)/lib64
else
OBJDIR = ./$(TARGET_CFG)/lib
endif
OBJDIR = ./$(TARGET_CFG)/$(LIB)
OBJS = $(addprefix $(OBJDIR)/, $(CFILES:%.c=%.o))

View File

@ -41,13 +41,9 @@ startup/micasad* startup/casacfgpam startup/casaucfgpam
CASAROOT = ..
if cpu_64
CASALIBDIR = $(CASAROOT)/lib64
else
CASALIBDIR = $(CASAROOT)/lib
endif
CASALIBDIR = $(CASAROOT)/$(LIB)
if cpu_64
if LIB64
CASABINDIR = $(CASAROOT)/bin64
else
CASABINDIR = $(CASAROOT)/bin
@ -137,11 +133,7 @@ CS_LIBS =Mono.Posix.dll \
CS_LIBPATH = $(CASALIBDIR)/$(TARGET_CFG) $(srcdir)/test/dependencies
if cpu_64
OBJDIR = ./$(TARGET_CFG)/lib64
else
OBJDIR = ./$(TARGET_CFG)/lib
endif
OBJDIR = ./$(TARGET_CFG)/$(LIB)
CUR_DIR := $(shell pwd)

View File

@ -34,11 +34,7 @@ EXTRA_DIST = $(CSFILES)
CASAROOT = ../..
if cpu_64
CASALIBDIR = $(CASAROOT)/lib64
else
CASALIBDIR = $(CASAROOT)/lib
endif
CASALIBDIR = $(CASAROOT)/$(LIB)
# handle Mono secondary dependencies
export MONO_PATH := $(MONO_PATH)
@ -68,11 +64,7 @@ CS_RESOURCES =
CS_LIBS =
CS_LIBPATH =
if cpu_64
OBJDIR = ./$(TARGET_CFG)/lib64
else
OBJDIR = ./$(TARGET_CFG)/lib
endif
OBJDIR = ./$(TARGET_CFG)/$(LIB)
#OBJS = $(addprefix $(OBJDIR)/, $(CSFILES:%.dll=%.cs))

View File

@ -33,13 +33,8 @@ EXTRA_DIST = *.exp
CASAROOT = ../..
if cpu_64
CASALIBDIR = $(CASAROOT)/lib64
OBJDIR = $(TARGET_CFG)/lib64
else
CASALIBDIR = $(CASAROOT)/lib
OBJDIR = $(TARGET_CFG)/lib
endif
CASALIBDIR = $(CASAROOT)/$(LIB)
OBJDIR = $(TARGET_CFG)/$(LIB)
BUILD_VER = 1.1.1
@ -63,8 +58,8 @@ CFLAGS += $(EXTRA_CFLAGS) $(INCLUDES) $(DEFINES)
LIBS = -L/$(CASALIBDIR)/$(TARGET_CFG)
LDFLAGS = -Wl,-Bsymbolic -shared -Wl,--version-script=micasa_lux.exp \
-Wl,-rpath -Wl,/usr/lib -L/usr/lib -lpthread \
-lc -ldl -Wl,-soname -Wl,libmicasa.so.1
-lpthread \
-ldl -Wl,-soname -Wl,libmicasa.so.1
OBJS = $(addprefix $(OBJDIR)/, $(CFILES:%.c=%.o))
#COMMON_OBJS = -L/../../c_common/linux/$(OBJDIR) ../../c_common/linux/$(OBJDIR)/sscs_ll.o
COMMON_OBJS = $(OBJDIR)/sscs_ll.o

View File

@ -34,11 +34,7 @@ EXTRA_DIST = *.cs $(CSFILES)
CASAROOT = ..
if cpu_64
CASALIBDIR = $(CASAROOT)/lib64
else
CASALIBDIR = $(CASAROOT)/lib
endif
CASALIBDIR = $(CASAROOT)/$(LIB)
# handle Mono secondary dependencies
export MONO_PATH := $(MONO_PATH)
@ -64,11 +60,7 @@ CS_RESOURCES =
CS_LIBS =
CS_LIBPATH =
if cpu_64
OBJDIR = ./$(TARGET_CFG)/lib64
else
OBJDIR = ./$(TARGET_CFG)/lib
endif
OBJDIR = ./$(TARGET_CFG)/$(LIB)
#OBJS = $(addprefix $(OBJDIR)/, $(CSFILES:%.dll=%.cs))

View File

@ -34,11 +34,7 @@ EXTRA_DIST = *.cs $(CSFILES)
CASAROOT = ../..
if cpu_64
CASALIBDIR = $(CASAROOT)/lib64
else
CASALIBDIR = $(CASAROOT)/lib
endif
CASALIBDIR = $(CASAROOT)/$(LIB)
# handle Mono secondary dependencies
export MONO_PATH := $(MONO_PATH)
@ -63,11 +59,7 @@ CS_RESOURCES =
CS_LIBS =$(CASALIBDIR)/$(TARGET_CFG)/Novell.CASA.Common.dll
CS_LIBPATH = $(CASALIBDIR)/$(TARGET_CFG)
if cpu_64
OBJDIR = ./$(TARGET_CFG)/lib64
else
OBJDIR = ./$(TARGET_CFG)/lib
endif
OBJDIR = ./$(TARGET_CFG)/$(LIB)
#OBJS = $(addprefix $(OBJDIR)/, $(CSFILES:%.dll=%.cs))

View File

@ -111,16 +111,15 @@ AM_CONDITIONAL(WINDOWS, test "$TARGET_OS" = "windows")
case $target_cpu in
x86_64|p*pc64|s390x)
TARGET_ARCH='cpu_64'
LIB=lib64
;;
*ia64|*)
TARGET_ARCH='cpu_non64'
LIB=lib
;;
esac
AC_SUBST(TARGET_ARCH)
AM_CONDITIONAL(cpu_64, test "$TARGET_ARCH" = "cpu_64")
AM_CONDITIONAL(cpu_non64, test "$TARGET_ARCH" = "cpu_non64")
AC_SUBST(LIB)
AM_CONDITIONAL(LIB64, test "$LIB" = lib64)
#
#
@ -139,7 +138,7 @@ case $TARGET_OS in
ICON_FLAG='/resource:'
PLATFORM_SUBDIRS=$LINUX_SUBDIRS
SEP='/'
LINK=ld
LINK=gcc
;;
#
# Windows-specific configuration

View File

@ -34,11 +34,7 @@ EXTRA_DIST = *.exp
CASAROOT = ../../..
if cpu_64
CASALIBDIR = $(CASAROOT)/lib64
else
CASALIBDIR = $(CASAROOT)/lib
endif
CASALIBDIR = $(CASAROOT)/$(LIB)
# handle Mono secondary dependencies
export MONO_PATH := $(MONO_PATH)
@ -60,13 +56,10 @@ CFLAGS += $(INCLUDES) $(DEFINES)
LIBS =
LDFLAGS = -Wl,-Bsymbolic -shared -Wl,--version-script=pam_micasa_lux.exp \
-Wl,-rpath -Wl,/usr/lib -L/usr/lib -lpthread -lc -ldl \
-lpthread -ldl \
-lpam -Wl,-soname -Wl,pam_micasa.so
if cpu_64
OBJDIR = ./$(TARGET_CFG)/lib64
else
OBJDIR = ./$(TARGET_CFG)/lib
endif
OBJDIR = ./$(TARGET_CFG)/$(LIB)
OBJS = $(addprefix $(OBJDIR)/, $(CFILES:%.c=%.o))
CUR_DIR := $(shell pwd)

View File

@ -28,7 +28,7 @@ Version: @VERSION@
Release: 0
Summary: Novell Common Authentication Service Adapter (CASA)
Source: %{name}-%{version}.tar.bz2
#Patch: %{name}-%{version}.dif
Patch: %{name}-%{version}.diff
#Patch2: CASA-detect_lib64.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: mono >= 1.1.13 mono-core >= 1.1.13
@ -69,7 +69,7 @@ to one another.
%prep
%setup -q
#%patch2
%patch
%if %{_lib} == "lib64"
%define binsource bin64
%else
@ -169,10 +169,8 @@ install c_gui/CASAManager.desktop %{buildroot}/usr/share/applications
%suse_update_desktop_file CASAManager
%post
echo " "
%{fillup_and_insserv -y micasad}
echo " "
#if [ "x$1" == "x1" ] || [ "x$1" == "x2" ]
#if [ "x$1" = "x1" ] || [ "x$1" = "x2" ]
#then
# casacfgpam
#fi
@ -181,9 +179,10 @@ echo " "
%post gui
/sbin/ldconfig
%preun
%stop_on_removal micasad
if [ "x$1" == "x0" ]
if [ "x$1" = "x0" ]
then
/usr/sbin/casaucfgpam
fi
@ -191,12 +190,12 @@ fi
%postun
%restart_on_update
%insserv_cleanup
/sbin/ldconfig
%postun gui
/sbin/ldconfig
%clean
rm -rf $RPM_BUILD_ROOT