summaryrefslogtreecommitdiffstats
path: root/crypto/heimdal/lib/kafs/Makefile.am
blob: 5eda566503f858bf341b7b4d2f986b9b357d689a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# $Id: Makefile.am,v 1.25 2001/05/18 16:11:39 joda Exp $

include $(top_srcdir)/Makefile.am.common

INCLUDES += $(INCLUDE_krb4) $(AFS_EXTRA_DEFS)

if KRB4
AFSLIBS = libkafs.la

if AIX
AFSL_EXP = $(srcdir)/afsl.exp

if AIX4
AFS_EXTRA_LD = -bnoentry
else
AFS_EXTRA_LD = -e _nostart
endif

if AIX_DYNAMIC_AFS
if HAVE_DLOPEN
AIX_SRC = 
else
AIX_SRC = dlfcn.c
endif
AFS_EXTRA_LIBS = afslib.so
AFS_EXTRA_DEFS =
else
AIX_SRC = afslib.c
AFS_EXTRA_LIBS = 
AFS_EXTRA_DEFS = -DSTATIC_AFS
endif

else
AFSL_EXP =
AIX_SRC =
endif # AIX

else
AFSLIBS = 
endif # KRB4


lib_LTLIBRARIES = $(AFSLIBS)
libkafs_la_LDFLAGS = -version-info 2:3:2
foodir = $(libdir)
foo_DATA = $(AFS_EXTRA_LIBS)
# EXTRA_DATA = afslib.so

CLEANFILES= $(AFS_EXTRA_LIBS) $(ROKEN_SRCS)

include_HEADERS = kafs.h

if KRB5
afskrb5_c = afskrb5.c
endif

if do_roken_rename
ROKEN_SRCS = resolve.c
endif

libkafs_la_SOURCES =				\
	afssys.c				\
	afskrb.c				\
	$(afskrb5_c)				\
	common.c				\
	$(AIX_SRC)				\
	kafs_locl.h				\
	afssysdefs.h				\
	$(ROKEN_SRCS)

#afslib_so_SOURCES = afslib.c

EXTRA_libkafs_la_SOURCES = afskrb5.c dlfcn.c afslib.c dlfcn.h

EXTRA_DIST = README.dlfcn afsl.exp afslib.exp

man_MANS = kafs.3

# AIX: this almost works with gcc, but somehow it fails to use the
# correct ld, use ld instead
afslib.so: afslib.o
	ld -o $@ -bM:SRE -bI:$(srcdir)/afsl.exp -bE:$(srcdir)/afslib.exp $(AFS_EXTRA_LD) afslib.o -lc

$(OBJECTS): ../../include/config.h

resolve.c:
	$(LN_S) $(srcdir)/../roken/resolve.c .
OpenPOWER on IntegriCloud