1 # $Heimdal: Makefile.am 21446 2007-07-10 12:45:36Z lha $
4 include $(top_srcdir)/Makefile.am.common
6 AM_CPPFLAGS += $(AFS_EXTRA_DEFS) $(ROKEN_RENAME)
9 DEPLIB_krb4 = $(LIB_krb4) $(LIB_hcrypto)
10 krb4_am_workaround = $(INCLUDE_krb4)
15 AM_CPPFLAGS += $(krb4_am_workaround)
18 DEPLIB_krb5 = ../krb5/libkrb5.la
19 krb5_am_workaround = $(INCLUDE_hcrypto) -I$(top_srcdir)/lib/krb5
24 AM_CPPFLAGS += $(krb5_am_workaround)
28 AFSL_EXP = $(srcdir)/afsl.exp
31 AFS_EXTRA_LD = -bnoentry
33 AFS_EXTRA_LD = -e _nostart
42 AFS_EXTRA_LIBS = afslib.so
47 AFS_EXTRA_DEFS = -DSTATIC_AFS
55 libkafs_la_LIBADD = $(DEPLIB_krb5) $(LIBADD_roken) $(DEPLIB_krb4)
57 lib_LTLIBRARIES = libkafs.la
58 libkafs_la_LDFLAGS = -version-info 5:1:5
60 foo_DATA = $(AFS_EXTRA_LIBS)
61 # EXTRA_DATA = afslib.so
63 CLEANFILES= $(AFS_EXTRA_LIBS) $(ROKEN_SRCS)
65 include_HEADERS = kafs.h
72 ROKEN_SRCS = resolve.c strtok_r.c strlcpy.c strsep.c
75 dist_libkafs_la_SOURCES = \
85 nodist_libkafs_la_SOURCES = $(ROKEN_SRCS)
87 EXTRA_libkafs_la_SOURCES = afskrb.c afskrb5.c dlfcn.c afslib.c dlfcn.h
89 EXTRA_DIST = README.dlfcn afsl.exp afslib.exp $(man_MANS)
93 # AIX: this almost works with gcc, but somehow it fails to use the
94 # correct ld, use ld instead
96 ld -o $@ -bM:SRE -bI:$(srcdir)/afsl.exp -bE:$(srcdir)/afslib.exp $(AFS_EXTRA_LD) afslib.o -lc
99 $(LN_S) $(srcdir)/../roken/resolve.c .
102 $(LN_S) $(srcdir)/../roken/strtok_r.c .
105 $(LN_S) $(srcdir)/../roken/strlcpy.c .
108 $(LN_S) $(srcdir)/../roken/strsep.c .