1 # $Heimdal: Makefile.am 22299 2007-12-14 06:39:19Z lha $
4 include $(top_srcdir)/Makefile.am.common
6 AM_CPPFLAGS += $(INCLUDE_krb4)
8 WFLAGS += $(WFLAGS_NOIMPLICITINT)
12 ## this is horribly ugly, but automake/libtool doesn't allow us to
13 ## unconditionally build shared libraries, and it does not allow us to
14 ## link with non-installed libraries
17 KAFS=$(top_builddir)/lib/kafs/.libs/libkafs.a
18 KAFS_S=$(top_builddir)/lib/kafs/.libs/libkafs.so
22 $(top_builddir)/lib/krb/.libs/libkrb.a \
24 $(top_builddir)/lib/roken/.libs/libroken.a \
29 $(top_builddir)/lib/krb/.libs/libkrb.so \
31 $(top_builddir)/lib/roken/.libs/libroken.so \
48 @if test -f $(top_builddir)/lib/krb/.libs/libkrb.a; then \
49 echo "$(LIBTOOL) --mode=link --tag=CC $(CC) -shared -o $@ $(LDFLAGS) $(OBJS) $(L)"; \
50 $(LIBTOOL) --mode=link --tag=CC $(CC) -shared -o $@ $(LDFLAGS) $(OBJS) $(L); \
51 elif test -f $(top_builddir)/lib/krb/.libs/libkrb.so; then \
52 echo "$(LIBTOOL) --mode=link --tag=CC $(CC) -shared -o $@ $(LDFLAGS) $(OBJS) $(L_shared)"; \
53 $(LIBTOOL) --mode=link --tag=CC $(CC) -shared -o $@ $(LDFLAGS) $(OBJS) $(L_shared); \
55 echo "missing libraries"; exit 1; \
58 CLEANFILES = $(MOD) $(OBJS)
62 # XXX inline COMPILE since automake wont add it
65 $(LIBTOOL) --mode=compile --tag=CC $(CC) \
66 $(DEFS) $(DEFAULT_AM_CPPFLAGS) $(INCLUDES) $(AM_CPPFLAGS) \
67 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) \
68 -c `test -f '$<' || echo '$(srcdir)/'`$<
70 EXTRA_DIST = pam.conf.add $(SRCS)