Makefile.am revision 55682
1# $Id: Makefile.am,v 1.19 2000/01/06 15:14:27 assar 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 1:2:1 45foodir = $(libdir) 46foo_DATA = $(AFS_EXTRA_LIBS) 47# EXTRA_DATA = afslib.so 48 49CLEANFILES= $(AFS_EXTRA_LIBS) 50 51include_HEADERS = kafs.h 52 53if KRB5 54afskrb5_c = afskrb5.c 55endif 56 57libkafs_la_SOURCES = afssys.c afskrb.c $(afskrb5_c) common.c $(AIX_SRC) kafs_locl.h afssysdefs.h 58#afslib_so_SOURCES = afslib.c 59 60EXTRA_libkafs_la_SOURCES = afskrb5.c dlfcn.c afslib.c dlfcn.h 61 62EXTRA_DIST = README.dlfcn afsl.exp afslib.exp 63 64man_MANS = kafs.3 65 66# AIX: this almost works with gcc, but somehow it fails to use the 67# correct ld, use ld instead 68afslib.so: afslib.o 69 ld -o $@ -bM:SRE -bI:$(srcdir)/afsl.exp -bE:$(srcdir)/afslib.exp $(AFS_EXTRA_LD) afslib.o -lc 70 71$(OBJECTS): ../../include/config.h 72