Makefile.am revision 102644
1# $Id: Makefile.am,v 1.37 2002/08/19 15:08:37 joda Exp $ 2 3include $(top_srcdir)/Makefile.am.common 4 5INCLUDES += $(INCLUDE_krb4) $(AFS_EXTRA_DEFS) $(ROKEN_RENAME) 6 7if KRB4 8AFSLIBS = libkafs.la 9DEPLIB_krb4 = $(LIB_krb4) $(LIB_des) 10 11if AIX 12AFSL_EXP = $(srcdir)/afsl.exp 13 14if AIX4 15AFS_EXTRA_LD = -bnoentry 16else 17AFS_EXTRA_LD = -e _nostart 18endif 19 20if AIX_DYNAMIC_AFS 21if HAVE_DLOPEN 22AIX_SRC = 23else 24AIX_SRC = dlfcn.c 25endif 26AFS_EXTRA_LIBS = afslib.so 27AFS_EXTRA_DEFS = 28else 29AIX_SRC = afslib.c 30AFS_EXTRA_LIBS = 31AFS_EXTRA_DEFS = -DSTATIC_AFS 32endif 33 34else 35AFSL_EXP = 36AIX_SRC = 37endif # AIX 38 39else 40AFSLIBS = 41DEPLIB_krb4 = 42endif # KRB4 43 44if KRB5 45libkafs_la_LIBADD = ../krb5/libkrb5.la ../roken/libroken.la $(DEPLIB_krb4) 46else 47libkafs_la_LIBADD = ../roken/libroken.la $(DEPLIB_krb4) 48endif # KRB5 49 50lib_LTLIBRARIES = $(AFSLIBS) 51libkafs_la_LDFLAGS = -version-info 3:4:3 52foodir = $(libdir) 53foo_DATA = $(AFS_EXTRA_LIBS) 54# EXTRA_DATA = afslib.so 55 56CLEANFILES= $(AFS_EXTRA_LIBS) $(ROKEN_SRCS) 57 58include_HEADERS = kafs.h 59 60if KRB5 61afskrb5_c = afskrb5.c 62endif 63 64if do_roken_rename 65ROKEN_SRCS = resolve.c strtok_r.c strlcpy.c strsep.c 66endif 67 68libkafs_la_SOURCES = \ 69 afssys.c \ 70 afskrb.c \ 71 $(afskrb5_c) \ 72 common.c \ 73 $(AIX_SRC) \ 74 kafs_locl.h \ 75 afssysdefs.h \ 76 $(ROKEN_SRCS) 77 78#afslib_so_SOURCES = afslib.c 79 80EXTRA_libkafs_la_SOURCES = afskrb5.c dlfcn.c afslib.c dlfcn.h 81 82EXTRA_DIST = README.dlfcn afsl.exp afslib.exp 83 84man_MANS = kafs.3 85 86# AIX: this almost works with gcc, but somehow it fails to use the 87# correct ld, use ld instead 88afslib.so: afslib.o 89 ld -o $@ -bM:SRE -bI:$(srcdir)/afsl.exp -bE:$(srcdir)/afslib.exp $(AFS_EXTRA_LD) afslib.o -lc 90 91$(OBJECTS): ../../include/config.h 92 93resolve.c: 94 $(LN_S) $(srcdir)/../roken/resolve.c . 95 96strtok_r.c: 97 $(LN_S) $(srcdir)/../roken/strtok_r.c . 98 99strlcpy.c: 100 $(LN_S) $(srcdir)/../roken/strlcpy.c . 101 102strsep.c: 103 $(LN_S) $(srcdir)/../roken/strsep.c . 104