17f2fe78bSCy Schubertmydir=lib$(S)kadm5 27f2fe78bSCy SchubertBUILDTOP=$(REL)..$(S).. 37f2fe78bSCy SchubertSUBDIRS = clnt srv 47f2fe78bSCy Schubert 57f2fe78bSCy Schubert##DOSBUILDTOP = ..\.. 67f2fe78bSCy Schubert 77f2fe78bSCy Schubertkadm_err.$(OBJEXT): kadm_err.c 87f2fe78bSCy Schubertchpass_util_strings.$(OBJEXT): chpass_util_strings.c 97f2fe78bSCy Schubert 107f2fe78bSCy Schubertkadm_err.c kadm_err.h: $(srcdir)/kadm_err.et 117f2fe78bSCy Schubertchpass_util_strings.c chpass_util_strings.h: $(srcdir)/chpass_util_strings.et 127f2fe78bSCy Schubert 137f2fe78bSCy Schubertclean: 147f2fe78bSCy Schubert $(RM) kadm_err.c kadm_err.h kadm_err.o 157f2fe78bSCy Schubert $(RM) chpass_util_strings.c chpass_util_strings.h chpass_util_strings.o 167f2fe78bSCy Schubert 177f2fe78bSCy SchubertSRCS = kadm_err.c \ 187f2fe78bSCy Schubert chpass_util_strings.c \ 197f2fe78bSCy Schubert $(srcdir)/misc_free.c \ 207f2fe78bSCy Schubert $(srcdir)/kadm_rpc_xdr.c \ 217f2fe78bSCy Schubert $(srcdir)/chpass_util.c \ 227f2fe78bSCy Schubert $(srcdir)/alt_prof.c \ 237f2fe78bSCy Schubert $(srcdir)/str_conv.c \ 247f2fe78bSCy Schubert $(srcdir)/logger.c 257f2fe78bSCy Schubert 26*f1c4c3daSCy SchubertEXTRADEPSRCS = $(srcdir)/t_kadm5.c 27*f1c4c3daSCy Schubert 287f2fe78bSCy SchubertOBJS = kadm_err.$(OBJEXT) \ 297f2fe78bSCy Schubert chpass_util_strings.$(OBJEXT) \ 307f2fe78bSCy Schubert misc_free.$(OBJEXT) \ 317f2fe78bSCy Schubert kadm_rpc_xdr.$(OBJEXT) \ 327f2fe78bSCy Schubert chpass_util.$(OBJEXT) \ 337f2fe78bSCy Schubert alt_prof.$(OBJEXT) \ 347f2fe78bSCy Schubert str_conv.$(OBJEXT) \ 357f2fe78bSCy Schubert logger.$(OBJEXT) 367f2fe78bSCy Schubert 377f2fe78bSCy SchubertSTLIBOBJS = \ 387f2fe78bSCy Schubert kadm_err.o \ 397f2fe78bSCy Schubert chpass_util_strings.o \ 407f2fe78bSCy Schubert misc_free.o \ 417f2fe78bSCy Schubert kadm_rpc_xdr.o \ 427f2fe78bSCy Schubert chpass_util.o \ 437f2fe78bSCy Schubert alt_prof.o \ 447f2fe78bSCy Schubert str_conv.o \ 457f2fe78bSCy Schubert logger.o 467f2fe78bSCy Schubert 477f2fe78bSCy SchubertHDRDIR=$(BUILDTOP)/include/kadm5 487f2fe78bSCy SchubertHDRS = $(HDRDIR)/admin.h \ 497f2fe78bSCy Schubert $(HDRDIR)/admin_internal.h \ 507f2fe78bSCy Schubert $(HDRDIR)/admin_xdr.h \ 517f2fe78bSCy Schubert $(HDRDIR)/kadm_rpc.h \ 527f2fe78bSCy Schubert $(HDRDIR)/server_internal.h \ 537f2fe78bSCy Schubert $(HDRDIR)/chpass_util_strings.h \ 547f2fe78bSCy Schubert $(HDRDIR)/kadm_err.h 557f2fe78bSCy Schubert 567f2fe78bSCy SchubertBUILD_HDRS = chpass_util_strings.h kadm_err.h 577f2fe78bSCy SchubertSRC_HDRS = admin.h admin_internal.h admin_xdr.h kadm_rpc.h \ 587f2fe78bSCy Schubert server_internal.h 597f2fe78bSCy Schubert 607f2fe78bSCy Schubert$(HDRS): includes 617f2fe78bSCy Schubert 627f2fe78bSCy Schubertincludes: $(SRC_HDRS) $(BUILD_HDRS) 637f2fe78bSCy Schubert if [ -d $(HDRDIR) ]; then :; else mkdir -p $(HDRDIR); fi 647f2fe78bSCy Schubert for i in $(SRC_HDRS) ; do \ 657f2fe78bSCy Schubert i=`basename $$i`; \ 667f2fe78bSCy Schubert if cmp $(srcdir)/$$i $(HDRDIR)/$$i >/dev/null 2>&1; then :; \ 677f2fe78bSCy Schubert else \ 687f2fe78bSCy Schubert (set -x; $(RM) $(HDRDIR)/$$i; \ 697f2fe78bSCy Schubert $(CP) $(srcdir)/$$i $(HDRDIR)/$$i) ; \ 707f2fe78bSCy Schubert fi ; \ 717f2fe78bSCy Schubert done 727f2fe78bSCy Schubert for i in $(BUILD_HDRS) ; do \ 737f2fe78bSCy Schubert i=`basename $$i`; \ 747f2fe78bSCy Schubert if cmp $$i $(HDRDIR)/$$i >/dev/null 2>&1; then :; \ 757f2fe78bSCy Schubert else \ 767f2fe78bSCy Schubert (set -x; $(RM) $(HDRDIR)/$$i; \ 777f2fe78bSCy Schubert $(CP) $$i $(HDRDIR)/$$i) ; \ 787f2fe78bSCy Schubert fi ; \ 797f2fe78bSCy Schubert done 807f2fe78bSCy Schubert 817f2fe78bSCy Schubertclean-unix:: 827f2fe78bSCy Schubert $(RM) -r $(HDRDIR) 837f2fe78bSCy Schubert 847f2fe78bSCy Schubertall-prerecurse: includes 857f2fe78bSCy Schubertall-prerecurse: all-libobjs 867f2fe78bSCy Schubert 877f2fe78bSCy Schubertall-windows: $(OBJS) 887f2fe78bSCy Schubert 897f2fe78bSCy Schubertt_kadm5clnt: t_kadm5.o $(KADMCLNT_DEPLIBS) $(KRB5_BASE_DEPLIBS) 907f2fe78bSCy Schubert $(CC_LINK) -o $@ t_kadm5.o $(KADMCLNT_LIBS) $(KRB5_BASE_LIBS) 917f2fe78bSCy Schubert 927f2fe78bSCy Schubertt_kadm5srv: t_kadm5.o $(KADMSRV_DEPLIBS) $(KRB5_BASE_DEPLIBS) 937f2fe78bSCy Schubert $(CC_LINK) -o $@ t_kadm5.o $(KADMSRV_LIBS) $(KRB5_BASE_LIBS) 947f2fe78bSCy Schubert 957f2fe78bSCy Schubertcheck-pytests: t_kadm5clnt t_kadm5srv 967f2fe78bSCy Schubert $(RUNPYTEST) $(srcdir)/t_kadm5.py $(PYTESTFLAGS) 977f2fe78bSCy Schubert 987f2fe78bSCy Schubertgenerate-files-mac-prerecurse: includes 997f2fe78bSCy Schubert 1007f2fe78bSCy Schubertcheck-windows: 1017f2fe78bSCy Schubert 1027f2fe78bSCy Schubertclean-unix:: clean-libobjs 1037f2fe78bSCy Schubert $(RM) t_kadm5clnt t_kadm5srv t_kadm5.o 1047f2fe78bSCy Schubert 1057f2fe78bSCy Schubertclean-windows:: 1067f2fe78bSCy Schubert 1077f2fe78bSCy Schubertinstall-headers-unix install: $(BUILD_HDRS) 1087f2fe78bSCy Schubert $(INSTALL_DATA) $(srcdir)/admin.h $(DESTDIR)$(KRB5_INCDIR)$(S)kadm5$(S)admin.h 1097f2fe78bSCy Schubert $(INSTALL_DATA) chpass_util_strings.h $(DESTDIR)$(KRB5_INCDIR)$(S)kadm5$(S)chpass_util_strings.h 1107f2fe78bSCy Schubert $(INSTALL_DATA) kadm_err.h $(DESTDIR)$(KRB5_INCDIR)$(S)kadm5$(S)kadm_err.h 1117f2fe78bSCy Schubert 1127f2fe78bSCy Schubertdepend: includes 1137f2fe78bSCy Schubert 1147f2fe78bSCy Schubert@libobj_frag@ 1157f2fe78bSCy Schubert 116