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