No empty .Rs/.Re
[netbsd-mini2440.git] / crypto / dist / heimdal / lib / kafs / Makefile.am
blob4708a9684ea8f790db9ac6cffc33f7e3134d0aad
1 # $Heimdal: Makefile.am 21446 2007-07-10 12:45:36Z lha $
2 # $NetBSD$
4 include $(top_srcdir)/Makefile.am.common
6 AM_CPPFLAGS += $(AFS_EXTRA_DEFS) $(ROKEN_RENAME)
8 if KRB4
9 DEPLIB_krb4 = $(LIB_krb4) $(LIB_hcrypto)
10 krb4_am_workaround = $(INCLUDE_krb4)
11 else
12 DEPLIB_krb4  =
13 krb4_am_workaround = 
14 endif # KRB4
15 AM_CPPFLAGS += $(krb4_am_workaround)
17 if KRB5
18 DEPLIB_krb5 = ../krb5/libkrb5.la 
19 krb5_am_workaround = $(INCLUDE_hcrypto) -I$(top_srcdir)/lib/krb5
20 else
21 DEPLIB_krb5  =
22 krb5_am_workaround = 
23 endif # KRB5
24 AM_CPPFLAGS += $(krb5_am_workaround)
27 if AIX
28 AFSL_EXP = $(srcdir)/afsl.exp
30 if AIX4
31 AFS_EXTRA_LD = -bnoentry
32 else
33 AFS_EXTRA_LD = -e _nostart
34 endif
36 if AIX_DYNAMIC_AFS
37 if HAVE_DLOPEN
38 AIX_SRC = 
39 else
40 AIX_SRC = dlfcn.c
41 endif
42 AFS_EXTRA_LIBS = afslib.so
43 AFS_EXTRA_DEFS =
44 else
45 AIX_SRC = afslib.c
46 AFS_EXTRA_LIBS = 
47 AFS_EXTRA_DEFS = -DSTATIC_AFS
48 endif
50 else
51 AFSL_EXP =
52 AIX_SRC =
53 endif # AIX
55 libkafs_la_LIBADD = $(DEPLIB_krb5) $(LIBADD_roken) $(DEPLIB_krb4)
57 lib_LTLIBRARIES = libkafs.la
58 libkafs_la_LDFLAGS = -version-info 5:1:5
59 foodir = $(libdir)
60 foo_DATA = $(AFS_EXTRA_LIBS)
61 # EXTRA_DATA = afslib.so
63 CLEANFILES= $(AFS_EXTRA_LIBS) $(ROKEN_SRCS)
65 include_HEADERS = kafs.h
67 if KRB5
68 afskrb5_c = afskrb5.c
69 endif
71 if do_roken_rename
72 ROKEN_SRCS = resolve.c strtok_r.c strlcpy.c strsep.c
73 endif
75 dist_libkafs_la_SOURCES =                       \
76         afssys.c                                \
77         afskrb.c                                \
78         $(afskrb5_c)                            \
79         common.c                                \
80         $(AIX_SRC)                              \
81         kafs_locl.h                             \
82         afssysdefs.h                            \
83         roken_rename.h
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)
91 man_MANS = kafs.3
93 # AIX: this almost works with gcc, but somehow it fails to use the
94 # correct ld, use ld instead
95 afslib.so: afslib.o
96         ld -o $@ -bM:SRE -bI:$(srcdir)/afsl.exp -bE:$(srcdir)/afslib.exp $(AFS_EXTRA_LD) afslib.o -lc
98 resolve.c:
99         $(LN_S) $(srcdir)/../roken/resolve.c .
101 strtok_r.c:
102         $(LN_S) $(srcdir)/../roken/strtok_r.c .
104 strlcpy.c:
105         $(LN_S) $(srcdir)/../roken/strlcpy.c .
107 strsep.c:
108         $(LN_S) $(srcdir)/../roken/strsep.c .