1*7f2fe78bSCy Schubertmydir=lib$(S)kadm5 2*7f2fe78bSCy SchubertBUILDTOP=$(REL)..$(S).. 3*7f2fe78bSCy SchubertSUBDIRS = clnt srv 4*7f2fe78bSCy Schubert 5*7f2fe78bSCy Schubert##DOSBUILDTOP = ..\.. 6*7f2fe78bSCy Schubert 7*7f2fe78bSCy Schubertkadm_err.$(OBJEXT): kadm_err.c 8*7f2fe78bSCy Schubertchpass_util_strings.$(OBJEXT): chpass_util_strings.c 9*7f2fe78bSCy Schubert 10*7f2fe78bSCy Schubertkadm_err.c kadm_err.h: $(srcdir)/kadm_err.et 11*7f2fe78bSCy Schubertchpass_util_strings.c chpass_util_strings.h: $(srcdir)/chpass_util_strings.et 12*7f2fe78bSCy Schubert 13*7f2fe78bSCy Schubertclean: 14*7f2fe78bSCy Schubert $(RM) kadm_err.c kadm_err.h kadm_err.o 15*7f2fe78bSCy Schubert $(RM) chpass_util_strings.c chpass_util_strings.h chpass_util_strings.o 16*7f2fe78bSCy Schubert 17*7f2fe78bSCy SchubertSRCS = kadm_err.c \ 18*7f2fe78bSCy Schubert chpass_util_strings.c \ 19*7f2fe78bSCy Schubert $(srcdir)/misc_free.c \ 20*7f2fe78bSCy Schubert $(srcdir)/kadm_rpc_xdr.c \ 21*7f2fe78bSCy Schubert $(srcdir)/chpass_util.c \ 22*7f2fe78bSCy Schubert $(srcdir)/alt_prof.c \ 23*7f2fe78bSCy Schubert $(srcdir)/str_conv.c \ 24*7f2fe78bSCy Schubert $(srcdir)/logger.c 25*7f2fe78bSCy Schubert 26*7f2fe78bSCy SchubertOBJS = kadm_err.$(OBJEXT) \ 27*7f2fe78bSCy Schubert chpass_util_strings.$(OBJEXT) \ 28*7f2fe78bSCy Schubert misc_free.$(OBJEXT) \ 29*7f2fe78bSCy Schubert kadm_rpc_xdr.$(OBJEXT) \ 30*7f2fe78bSCy Schubert chpass_util.$(OBJEXT) \ 31*7f2fe78bSCy Schubert alt_prof.$(OBJEXT) \ 32*7f2fe78bSCy Schubert str_conv.$(OBJEXT) \ 33*7f2fe78bSCy Schubert logger.$(OBJEXT) 34*7f2fe78bSCy Schubert 35*7f2fe78bSCy SchubertSTLIBOBJS = \ 36*7f2fe78bSCy Schubert kadm_err.o \ 37*7f2fe78bSCy Schubert chpass_util_strings.o \ 38*7f2fe78bSCy Schubert misc_free.o \ 39*7f2fe78bSCy Schubert kadm_rpc_xdr.o \ 40*7f2fe78bSCy Schubert chpass_util.o \ 41*7f2fe78bSCy Schubert alt_prof.o \ 42*7f2fe78bSCy Schubert str_conv.o \ 43*7f2fe78bSCy Schubert logger.o 44*7f2fe78bSCy Schubert 45*7f2fe78bSCy SchubertHDRDIR=$(BUILDTOP)/include/kadm5 46*7f2fe78bSCy SchubertHDRS = $(HDRDIR)/admin.h \ 47*7f2fe78bSCy Schubert $(HDRDIR)/admin_internal.h \ 48*7f2fe78bSCy Schubert $(HDRDIR)/admin_xdr.h \ 49*7f2fe78bSCy Schubert $(HDRDIR)/kadm_rpc.h \ 50*7f2fe78bSCy Schubert $(HDRDIR)/server_internal.h \ 51*7f2fe78bSCy Schubert $(HDRDIR)/chpass_util_strings.h \ 52*7f2fe78bSCy Schubert $(HDRDIR)/kadm_err.h 53*7f2fe78bSCy Schubert 54*7f2fe78bSCy SchubertBUILD_HDRS = chpass_util_strings.h kadm_err.h 55*7f2fe78bSCy SchubertSRC_HDRS = admin.h admin_internal.h admin_xdr.h kadm_rpc.h \ 56*7f2fe78bSCy Schubert server_internal.h 57*7f2fe78bSCy Schubert 58*7f2fe78bSCy Schubert$(HDRS): includes 59*7f2fe78bSCy Schubert 60*7f2fe78bSCy Schubertincludes: $(SRC_HDRS) $(BUILD_HDRS) 61*7f2fe78bSCy Schubert if [ -d $(HDRDIR) ]; then :; else mkdir -p $(HDRDIR); fi 62*7f2fe78bSCy Schubert for i in $(SRC_HDRS) ; do \ 63*7f2fe78bSCy Schubert i=`basename $$i`; \ 64*7f2fe78bSCy Schubert if cmp $(srcdir)/$$i $(HDRDIR)/$$i >/dev/null 2>&1; then :; \ 65*7f2fe78bSCy Schubert else \ 66*7f2fe78bSCy Schubert (set -x; $(RM) $(HDRDIR)/$$i; \ 67*7f2fe78bSCy Schubert $(CP) $(srcdir)/$$i $(HDRDIR)/$$i) ; \ 68*7f2fe78bSCy Schubert fi ; \ 69*7f2fe78bSCy Schubert done 70*7f2fe78bSCy Schubert for i in $(BUILD_HDRS) ; do \ 71*7f2fe78bSCy Schubert i=`basename $$i`; \ 72*7f2fe78bSCy Schubert if cmp $$i $(HDRDIR)/$$i >/dev/null 2>&1; then :; \ 73*7f2fe78bSCy Schubert else \ 74*7f2fe78bSCy Schubert (set -x; $(RM) $(HDRDIR)/$$i; \ 75*7f2fe78bSCy Schubert $(CP) $$i $(HDRDIR)/$$i) ; \ 76*7f2fe78bSCy Schubert fi ; \ 77*7f2fe78bSCy Schubert done 78*7f2fe78bSCy Schubert 79*7f2fe78bSCy Schubertclean-unix:: 80*7f2fe78bSCy Schubert $(RM) -r $(HDRDIR) 81*7f2fe78bSCy Schubert 82*7f2fe78bSCy Schubertall-prerecurse: includes 83*7f2fe78bSCy Schubertall-prerecurse: all-libobjs 84*7f2fe78bSCy Schubert 85*7f2fe78bSCy Schubertall-windows: $(OBJS) 86*7f2fe78bSCy Schubert 87*7f2fe78bSCy Schubertt_kadm5clnt: t_kadm5.o $(KADMCLNT_DEPLIBS) $(KRB5_BASE_DEPLIBS) 88*7f2fe78bSCy Schubert $(CC_LINK) -o $@ t_kadm5.o $(KADMCLNT_LIBS) $(KRB5_BASE_LIBS) 89*7f2fe78bSCy Schubert 90*7f2fe78bSCy Schubertt_kadm5srv: t_kadm5.o $(KADMSRV_DEPLIBS) $(KRB5_BASE_DEPLIBS) 91*7f2fe78bSCy Schubert $(CC_LINK) -o $@ t_kadm5.o $(KADMSRV_LIBS) $(KRB5_BASE_LIBS) 92*7f2fe78bSCy Schubert 93*7f2fe78bSCy Schubertcheck-pytests: t_kadm5clnt t_kadm5srv 94*7f2fe78bSCy Schubert $(RUNPYTEST) $(srcdir)/t_kadm5.py $(PYTESTFLAGS) 95*7f2fe78bSCy Schubert 96*7f2fe78bSCy Schubertgenerate-files-mac-prerecurse: includes 97*7f2fe78bSCy Schubert 98*7f2fe78bSCy Schubertcheck-windows: 99*7f2fe78bSCy Schubert 100*7f2fe78bSCy Schubertclean-unix:: clean-libobjs 101*7f2fe78bSCy Schubert $(RM) t_kadm5clnt t_kadm5srv t_kadm5.o 102*7f2fe78bSCy Schubert 103*7f2fe78bSCy Schubertclean-windows:: 104*7f2fe78bSCy Schubert 105*7f2fe78bSCy Schubertinstall-headers-unix install: $(BUILD_HDRS) 106*7f2fe78bSCy Schubert $(INSTALL_DATA) $(srcdir)/admin.h $(DESTDIR)$(KRB5_INCDIR)$(S)kadm5$(S)admin.h 107*7f2fe78bSCy Schubert $(INSTALL_DATA) chpass_util_strings.h $(DESTDIR)$(KRB5_INCDIR)$(S)kadm5$(S)chpass_util_strings.h 108*7f2fe78bSCy Schubert $(INSTALL_DATA) kadm_err.h $(DESTDIR)$(KRB5_INCDIR)$(S)kadm5$(S)kadm_err.h 109*7f2fe78bSCy Schubert 110*7f2fe78bSCy Schubertdepend: includes 111*7f2fe78bSCy Schubert 112*7f2fe78bSCy Schubert@libobj_frag@ 113*7f2fe78bSCy Schubert 114