1mydir=lib$(S)gssapi$(S)generic 2BUILDTOP=$(REL)..$(S)..$(S).. 3LOCALINCLUDES = -I. -I$(srcdir) -I$(srcdir)/.. 4 5##DOS##BUILDTOP = ..\..\.. 6##DOS##PREFIXDIR=generic 7##DOS##OBJFILE=..\$(OUTPRE)generic.lst 8 9##DOS##DLL_EXP_TYPE=GSS 10 11ETSRCS= gssapi_err_generic.c 12ETOBJS= $(OUTPRE)gssapi_err_generic.$(OBJEXT) 13ETHDRS= gssapi_err_generic.h 14 15EHDRDIR= $(BUILDTOP)$(S)include$(S)gssapi 16 17HDRS= $(EHDRDIR)$(S)gssapi.h \ 18 $(EHDRDIR)$(S)gssapi_generic.h \ 19 $(EHDRDIR)$(S)gssapi_alloc.h \ 20 $(EHDRDIR)$(S)gssapi_ext.h 21 22MK_EHDRDIR=if test -d $(EHDRDIR); then :; else (set -x; mkdir $(EHDRDIR)); fi 23##DOS##MK_EHDRDIR=rem 24 25gssapi-include: $(EHDRDIR)$(S)gssapi.h 26 27$(EHDRDIR)$(S)gssapi.h: $(EHDRDIR)$(S)timestamp gssapi.h 28 $(CP) gssapi.h $@ 29$(EHDRDIR)$(S)gssapi_generic.h: $(EHDRDIR)$(S)timestamp $(srcdir)$(S)gssapi_generic.h 30 $(CP) $(srcdir)$(S)gssapi_generic.h $@ 31$(EHDRDIR)$(S)gssapi_alloc.h: $(EHDRDIR)$(S)timestamp $(srcdir)$(S)gssapi_alloc.h 32 $(CP) $(srcdir)$(S)gssapi_alloc.h $@ 33$(EHDRDIR)$(S)gssapi_ext.h: $(EHDRDIR)$(S)timestamp $(srcdir)$(S)gssapi_ext.h 34 $(CP) $(srcdir)$(S)gssapi_ext.h $@ 35 36$(EHDRDIR)$(S)timestamp: 37 $(MK_EHDRDIR) 38 echo timestamp > $(EHDRDIR)$(S)timestamp 39 40$(OUTPRE)gssapi_err_generic.$(OBJEXT): gssapi_err_generic.c 41gssapi_err_generic.h: gssapi_err_generic.et 42gssapi_err_generic.c: gssapi_err_generic.et 43 44##DOS##!if 0 45include_xom=@include_xom@ 46##DOS##include_xom=rem 47gssapi.h: gssapi.hin 48 @echo "Creating gssapi.h" ; \ 49 h=gss$$$$; $(RM) $$h; \ 50 (echo "/* This is the gssapi.h prologue. */"; \ 51 $(include_xom) && \ 52 echo "/* End of gssapi.h prologue. */"&& \ 53 cat $(srcdir)/gssapi.hin )> $$h && \ 54 (set -x; $(MV) $$h $@) ; e=$$?; $(RM) $$h; exit $$e 55##DOS##!endif 56##DOS##gssapi.h: gssapi.hin 57##DOS## $(CP) $** $@ 58 59SRCS = \ 60 $(srcdir)/disp_com_err_status.c \ 61 $(srcdir)/disp_major_status.c \ 62 $(srcdir)/gssapi_generic.c \ 63 $(srcdir)/oid_ops.c \ 64 $(srcdir)/rel_buffer.c \ 65 $(srcdir)/rel_oid_set.c \ 66 $(srcdir)/util_buffer.c \ 67 $(srcdir)/util_buffer_set.c \ 68 $(srcdir)/util_errmap.c \ 69 $(srcdir)/util_set.c \ 70 $(srcdir)/util_seqstate.c \ 71 $(srcdir)/util_token.c \ 72 gssapi_err_generic.c 73 74EXTRADEPSRCS = t_seqstate.c 75 76OBJS = \ 77 $(OUTPRE)disp_com_err_status.$(OBJEXT) \ 78 $(OUTPRE)disp_major_status.$(OBJEXT) \ 79 $(OUTPRE)gssapi_generic.$(OBJEXT) \ 80 $(OUTPRE)oid_ops.$(OBJEXT) \ 81 $(OUTPRE)rel_buffer.$(OBJEXT) \ 82 $(OUTPRE)rel_oid_set.$(OBJEXT) \ 83 $(OUTPRE)util_buffer.$(OBJEXT) \ 84 $(OUTPRE)util_buffer_set.$(OBJEXT) \ 85 $(OUTPRE)util_errmap.$(OBJEXT) \ 86 $(OUTPRE)util_set.$(OBJEXT) \ 87 $(OUTPRE)util_seqstate.$(OBJEXT) \ 88 $(OUTPRE)util_token.$(OBJEXT) \ 89 $(OUTPRE)gssapi_err_generic.$(OBJEXT) 90 91STLIBOBJS = \ 92 disp_com_err_status.o \ 93 disp_major_status.o \ 94 gssapi_generic.o \ 95 oid_ops.o \ 96 rel_buffer.o \ 97 rel_oid_set.o \ 98 util_buffer.o \ 99 util_buffer_set.o \ 100 util_errmap.o \ 101 util_set.o \ 102 util_seqstate.o \ 103 util_token.o \ 104 gssapi_err_generic.o 105 106EXPORTED_HEADERS= gssapi_generic.h gssapi_ext.h gssapi_alloc.h 107EXPORTED_BUILT_HEADERS= gssapi.h 108 109$(OBJS): $(EXPORTED_HEADERS) $(ETHDRS) 110 111all-unix: $(EXPORTED_HEADERS) $(ETHDRS) $(HDRS) 112all-unix: all-libobjs 113 114errmap.h: $(top_srcdir)/util/gen.pl $(top_srcdir)/util/t_array.pm \ 115 $(top_srcdir)/util/t_bimap.pm 116 $(PERL) -w -I$(top_srcdir)/util $(top_srcdir)/util/gen.pl bimap \ 117 errmap.h \ 118 NAME=mecherrmap LEFT=OM_uint32 RIGHT="struct mecherror" \ 119 LEFTPRINT=print_OM_uint32 RIGHTPRINT=mecherror_print \ 120 LEFTCMP=cmp_OM_uint32 RIGHTCMP=mecherror_cmp 121 122maptest.h: $(top_srcdir)/util/gen.pl $(top_srcdir)/util/t_array.pm \ 123 $(top_srcdir)/util/t_bimap.pm 124 $(PERL) -w -I$(top_srcdir)/util $(top_srcdir)/util/gen.pl bimap \ 125 maptest.h \ 126 NAME=foo LEFT=int RIGHT=elt LEFTPRINT=intprt \ 127 RIGHTPRINT=eltprt LEFTCMP=intcmp RIGHTCMP=eltcmp 128maptest.o: maptest.c maptest.h 129maptest: maptest.o 130 $(CC_LINK) -o maptest maptest.o 131 132##DOS##LIBOBJS = $(OBJS) 133 134all-windows: win-create-ehdrdir 135all-windows: $(HDRS) 136 137win-create-ehdrdir: 138 if not exist $(EHDRDIR)\nul mkdir $(EHDRDIR) 139 140clean-unix:: clean-libobjs 141 $(RM) $(ETHDRS) $(ETSRCS) $(HDRS) $(EXPORTED_BUILT_HEADERS) \ 142 $(EHDRDIR)$(S)timestamp errmap.h maptest.h 143 $(RM) t_seqstate.o t_seqstate 144 145clean-windows:: 146 $(RM) $(HDRS) maptest.h 147 -if exist $(EHDRDIR)\nul rmdir $(EHDRDIR) 148 149t_seqstate: t_seqstate.o util_seqstate.o $(SUPPORT_DEPLIB) 150 $(CC_LINK) $(ALL_CFLAGS) -o $@ t_seqstate.o util_seqstate.o \ 151 $(SUPPORT_LIB) 152 153check-unix: t_seqstate 154 $(RUN_TEST) ./t_seqstate 155 156generate-files-mac: gssapi.h errmap.h 157 158# Krb5InstallHeaders($(EXPORTED_HEADERS), $(KRB5_INCDIR)/krb5) 159install-headers-unix install: gssapi.h 160 @set -x; for f in $(EXPORTED_HEADERS) ; \ 161 do $(INSTALL_DATA) $(srcdir)/$$f \ 162 $(DESTDIR)$(KRB5_INCDIR)/gssapi/$$f ; \ 163 done 164 @set -x; for f in $(EXPORTED_BUILT_HEADERS) ; \ 165 do $(INSTALL_DATA) $$f \ 166 $(DESTDIR)$(KRB5_INCDIR)/gssapi/$$f ; \ 167 done 168 169depend: $(ETSRCS) $(ETHDRS) $(HDRS) errmap.h maptest.h 170 171@libobj_frag@ 172 173