3 include $(top_srcdir)/Makefile.am.common
5 AM_CPPFLAGS += $(AFS_EXTRA_DEFS) $(ROKEN_RENAME)
8 DEPLIB_krb5 = ../krb5/libkrb5.la
9 krb5_am_workaround = $(INCLUDE_hcrypto) -I$(top_srcdir)/lib/krb5
14 AM_CPPFLAGS += $(krb5_am_workaround)
18 AFSL_EXP = $(srcdir)/afsl.exp
21 AFS_EXTRA_LD = -bnoentry
23 AFS_EXTRA_LD = -e _nostart
28 AFS_EXTRA_LIBS = afslib.so
33 AFS_EXTRA_DEFS = -DSTATIC_AFS
41 libkafs_la_LIBADD = $(DEPLIB_krb5) $(LIBADD_roken)
43 lib_LTLIBRARIES = libkafs.la
44 libkafs_la_LDFLAGS = -version-info 5:1:5
46 foo_DATA = $(AFS_EXTRA_LIBS)
47 # EXTRA_DATA = afslib.so
49 CLEANFILES= $(AFS_EXTRA_LIBS) $(ROKEN_SRCS)
51 include_HEADERS = kafs.h
58 ROKEN_SRCS = resolve.c strtok_r.c strlcpy.c strsep.c
61 dist_libkafs_la_SOURCES = \
70 nodist_libkafs_la_SOURCES = $(ROKEN_SRCS)
72 EXTRA_libkafs_la_SOURCES = afskrb5.c afslib.c
74 EXTRA_DIST = afsl.exp afslib.exp $(man_MANS)
78 # AIX: this almost works with gcc, but somehow it fails to use the
79 # correct ld, use ld instead
81 ld -o $@ -bM:SRE -bI:$(srcdir)/afsl.exp -bE:$(srcdir)/afslib.exp $(AFS_EXTRA_LD) afslib.o -lc
84 $(LN_S) $(srcdir)/../roken/resolve.c .
87 $(LN_S) $(srcdir)/../roken/strtok_r.c .
90 $(LN_S) $(srcdir)/../roken/strlcpy.c .
93 $(LN_S) $(srcdir)/../roken/strsep.c .