Files
heimdal/lib/kafs/Makefile.am
Johan Danielsson e57388cc7e Link with -lc when building afslib.so (this seems to be required with
AIX 4.3).


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4823 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-04-26 15:18:30 +00:00

35 lines
717 B
Makefile

# $Id$
AUTOMAKE_OPTIONS = no-dependencies foreign
INCLUDES = -I$(top_builddir)/include $(INCLUDE_krb4) -DLIBDIR=\"$(libdir)\"
if KRB4
AFSLIBS = libkafs.a
if AIX
AFS_EXTRA_LIBS = afslib.so
else
AFS_EXTRA_LIBS =
endif
else
AFSLIBS =
AFS_EXTRA_LIBS =
endif
lib_LIBRARIES = $(AFSLIBS)
foodir=$(libdir)
foo_DATA = $(AFS_EXTRA_LIBS)
EXTRA_DATA = afslib.so
CLEANFILES= $(AFS_EXTRA_LIBS)
libkafs_a_SOURCES = afssys.c afskrb.c afskrb5.c common.c
#afslib_so_SOURCES = afslib.c
# AIX: this almost works with gcc, but somehow it fails to use the
# correct ld, use ld instead
afslib.so: afslib.o
ld -o $@ -bM:SRE -bI:$(srcdir)/afsl.exp -bE:$(srcdir)/afslib.exp -bnoentry afslib.o -lc
$(OBJECTS): ../../include/config.h