2 # $Id: Makefile.in,v 1.47.4.1 2000/06/23 03:20:01 assar Exp $
16 DEFS = @DEFS@ -DROKEN_RENAME
17 CFLAGS = @CFLAGS@ $(WFLAGS)
21 INSTALL_DATA = @INSTALL_DATA@
22 MKINSTALLDIRS = @top_srcdir@/mkinstalldirs
24 COMPILE_ET = ../com_err/compile_et
27 exec_prefix = @exec_prefix@
32 includedir = @includedir@
34 incdir = $(includedir)
36 idir = $(top_builddir)/include
40 @lib_deps_yes@LIB_DEPS = -L../krb -lkrb \
41 @lib_deps_yes@ -L../des -ldes \
43 @lib_deps_no@LIB_DEPS =
45 build_symlink_command = @build_symlink_command@
46 install_symlink_command = @install_symlink_command@
48 LIBNAME = $(LIBPREFIX)kadm
50 LIBPREFIX = @LIBPREFIX@
51 EXECSUFFIX = @EXECSUFFIX@
54 LIB = $(LIBNAME).$(LIBEXT)
56 SOURCES = kadm_cli_wrap.c kadm_err.c kadm_stream.c kadm_supp.c check_password.c
58 OBJECTS = kadm_cli_wrap.o kadm_err.o kadm_stream.o kadm_supp.o check_password.o
63 make CFLAGS="-g -Wall -Wno-comment -Wmissing-prototypes -Wmissing-declarations -D__USE_FIXED_PROTOTYPES__"
66 $(CC) -c $(DEFS) -I. -I../../include -I$(srcdir) $(CFLAGS) $(CPPFLAGS) $(PICFLAGS) $<
69 $(MKINSTALLDIRS) $(DESTDIR)$(libdir)
70 $(INSTALL_DATA) $(LIB) $(DESTDIR)$(libdir)/$(LIB)
71 @install_symlink_command@
72 $(MKINSTALLDIRS) $(DESTDIR)$(includedir)
73 @for i in $(inc_DATA); do \
74 echo " $(INSTALL_DATA) $$i $(DESTDIR)$(incdir)/$$i";\
75 $(INSTALL_DATA) $$i $(DESTDIR)$(incdir)/$$i; done
78 rm -f $(DESTDIR)$(libdir)/$(LIB)
79 @for i in $(inc_DATA); do \
80 echo " rm -f $(DESTDIR)$(incdir)/$$i";\
81 rm -f $(DESTDIR)$(incdir)/$$i; done
89 rm -f $(LIB) *.o *.a *.so *.so.* so_locations kadm_err.c kadm_err.h
94 rm -f Makefile *.tab.c *~ roken_rename.h
99 $(LIBNAME).a: $(OBJECTS)
101 $(AR) cr $@ $(OBJECTS)
104 $(LIBNAME).$(SHLIBEXT): $(OBJECTS)
106 $(LDSHARED) -o $@ $(OBJECTS) $(LIB_DEPS)
107 @build_symlink_command@
109 kadm_err.c kadm_err.h: $(srcdir)/kadm_err.et
110 $(COMPILE_ET) $(srcdir)/kadm_err.et
112 $(OBJECTS): ../../include/config.h roken_rename.h
113 $(OBJECTS): kadm_err.h kadm_locl.h
116 $(LN_S) $(srcdir)/../krb/roken_rename.h .
118 all-local: $(inc_DATA)
119 @for i in $(inc_DATA); do \
120 if cmp -s $$i $(idir)/$$i 2> /dev/null ; then :; else\
121 echo " $(CP) $$i $(idir)/$$i"; \
122 $(CP) $$i $(idir)/$$i; \
126 .PHONY: all Wall install uninstall check clean mostlyclean distclean realclean all-local