Generate .x source files as .c source files
The generated .x source and .hx header files are plain C source files. Generate them as .c source files and avoid unnecessary file copying and special makefile rules. Change-Id: Ifc4bbe3c46dd357fdd642040ad964c7cfe1d395c
This commit is contained in:

committed by
Nicolas Williams

parent
4919daa7ab
commit
9427796f1a
@@ -277,22 +277,14 @@ $(OBJ)\spnego\spnego-private.h: $(spnegosrc)
|
||||
$(OBJ)\sanon\sanon-private.h: $(sanonsrc)
|
||||
$(PERL) ../../cf/make-proto.pl -q -P remove -p $@ $(sanonsrc)
|
||||
|
||||
gssapi_files = $(OBJ)\gssapi\asn1_gssapi_asn1.x
|
||||
|
||||
spnego_files = $(OBJ)\spnego\asn1_spnego_asn1.x
|
||||
|
||||
$(gssapi_files:.x=.c): $$(@R).x
|
||||
|
||||
$(spnego_files:.x=.c): $$(@R).x
|
||||
|
||||
$(gssapi_files) $(OBJ)\gssapi\gssapi_asn1.hx $(OBJ)\gssapi\gssapi_asn1-priv.hx: \
|
||||
$(OBJ)\gssapi\asn1_gssapi_asn1.c $(OBJ)\gssapi\gssapi_asn1.h $(OBJ)\gssapi\gssapi_asn1-priv.h: \
|
||||
$(BINDIR)\asn1_compile.exe mech\gssapi.asn1
|
||||
cd $(OBJ)\gssapi
|
||||
$(BINDIR)\asn1_compile.exe --one-code-file $(SRCDIR)\mech\gssapi.asn1 gssapi_asn1 \
|
||||
|| ( $(RM) $(OBJ)\gssapi\gssapi_asn1.h ; exit /b 1 )
|
||||
cd $(SRCDIR)
|
||||
|
||||
$(spnego_files) $(OBJ)\spnego\spnego_asn1.hx $(OBJ)\spnego\spnego_asn1-priv.hx: \
|
||||
$(OBJ)\spnego\asn1_spnego_asn1.c $(OBJ)\spnego\spnego_asn1.h $(OBJ)\spnego\spnego_asn1-priv.h: \
|
||||
$(BINDIR)\asn1_compile.exe spnego\spnego.asn1
|
||||
cd $(OBJ)\spnego
|
||||
$(BINDIR)\asn1_compile --one-code-file --sequence=MechTypeList \
|
||||
@@ -541,8 +533,8 @@ libgssapi_OBJs = \
|
||||
$(OBJ)\sanon/release_name.obj \
|
||||
$(OBJ)\gkrb5_err.obj \
|
||||
$(OBJ)\negoex_err.obj \
|
||||
$(spnego_files:.x=.obj) \
|
||||
$(gssapi_files:.x=.obj)
|
||||
$(OBJ)\spnego\asn1_spnego_asn1.obj \
|
||||
$(OBJ)\gssapi\asn1_gssapi_asn1.obj
|
||||
|
||||
GCOPTS=-I$(SRCDIR) -I$(OBJ) -Igssapi -DBUILD_GSSAPI_LIB
|
||||
|
||||
@@ -582,24 +574,12 @@ GCOPTS=-I$(SRCDIR) -I$(OBJ) -Igssapi -DBUILD_GSSAPI_LIB
|
||||
{$(OBJ)}.c{$(OBJ)}.obj::
|
||||
$(C2OBJ_P) $(GCOPTS)
|
||||
|
||||
{$(OBJ)\spnego}.x{$(OBJ)\spnego}.c:
|
||||
$(CP) $** $@
|
||||
|
||||
{$(OBJ)\gssapi}.x{$(OBJ)\gssapi}.c:
|
||||
$(CP) $** $@
|
||||
|
||||
{gssapi}.h{$(INCDIR)\gssapi}.h:
|
||||
$(CP) $** $@
|
||||
|
||||
{$(OBJ)}.h{$(INCDIR)\gssapi}.h:
|
||||
$(CP) $** $@
|
||||
|
||||
{$(OBJ)\gssapi}.hx{$(OBJ)\gssapi}.h:
|
||||
$(CP) $** $@
|
||||
|
||||
{$(OBJ)\spnego}.hx{$(OBJ)\spnego}.h:
|
||||
$(CP) $** $@
|
||||
|
||||
LIBGSSAPI_LIBS=\
|
||||
$(LIBHEIMBASE) \
|
||||
$(LIBROKEN) \
|
||||
@@ -694,8 +674,8 @@ $(OBJ)\gss-commands.c $(OBJ)\gss-commands.h: gss-commands.in
|
||||
(generate-obj-macro "libgssapi_OBJs"
|
||||
(concat "\t$(OBJ)\\gkrb5_err.obj \\\n"
|
||||
"\t$(OBJ)\\negoex_err.obj \\\n"
|
||||
"\t$(spnego_files:.x=.obj) \\\n"
|
||||
"\t$(gssapi_files:.x=.obj)")
|
||||
"\t$(OBJ)\\spnego\\asn1_spnego_asn1.obj \\\n"
|
||||
"\t$(OBJ)\\gssapi\\asn1_gssapi_asn1.obj")
|
||||
"krb5src" "mechsrc" "spnegosrc" "ntlmsrc")
|
||||
!endif
|
||||
|
||||
|
Reference in New Issue
Block a user