Changes to allow building the profile routines as their own separate DLL
authorTheodore Tso <tytso@mit.edu>
Sun, 14 Mar 1999 05:24:27 +0000 (05:24 +0000)
committerTheodore Tso <tytso@mit.edu>
Sun, 14 Mar 1999 05:24:27 +0000 (05:24 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11282 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/Makefile.in
src/lib/krb5_32.def
src/lib/xpprof16.def [new file with mode: 0644]
src/lib/xpprof32.def [new file with mode: 0644]

index 234512a330542d69ca02b773568e16ad332596c8..d0e25ea34ae0b156b401ca614ef2d59c3c1d4ffa 100644 (file)
@@ -30,6 +30,7 @@ clean-windows::
 # Windows stuff to make krb5 and gssapi DLLs.
 
 CLIBS = $(BUILDTOP)\util\et\comerr.lib
+PLIBS = $(BUILDTOP)\util\profile\profile.lib
 KLIBS = krb5\krb5.lib crypto\crypto.lib \
        $(BUILDTOP)\util\profile\profile.lib des425\des425.lib
 GLIBS = gssapi\gssapi.lib
@@ -45,6 +46,8 @@ K4LIBS = krb4\krb4.lib
 
 ##WIN16##CDEF = comerr16.def
 ##WIN32##CDEF = comerr32.def
+##WIN16##PDEF = xpprof16.def
+##WIN32##PDEF = xpprof32.def
 ##WIN16##KDEF = krb5_16.def
 ##WIN32##KDEF = krb5_32.def
 ##WIN16##KRB5RC = krb5.rc
@@ -75,10 +78,20 @@ $(CLIB): $(CLIBS) $(WLIB) $(CDEF) no_glue.obj
 ##WIN32##      link $(WINDLLFLAGS) /def:$(CDEF) /out:$*.dll \
 ##WIN32##         no_glue.obj version.res $(CLIBS) $(WINLIBS)
 
-$(KLIB): $(KLIBS) $(CLIB) $(WLIB) $(KDEF) k5_glue.obj $(KRB5RC) $(CCACHE_LIB)
+$(PLIB): $(PLIBS) $(WLIB) $(PDEF) no_glue.obj
+##WIN16##      link /co /seg:400 /noe /nod /nol \
+##WIN16##         no_glue, $*.dll, $*.map, $(PLIBS) $(WINLIBS), $(PDEF)
+##WIN16##      copy $(VERSIONRC) version.rc
+##WIN16##      rc /nologo /p /k $(CPPFLAGS) -DPROF_LIB -D_MSDOS_ -DRES_ONLY version.rc $*.dll
+##WIN16##      implib /nologo $@ $*.dll
+##WIN32##      rc  $(CPPFLAGS) -DPROF_LIB -D_WIN32 -D_MSDOS_ -DRES_ONLY -fo version.res $(VERSIONRC)
+##WIN32##      link $(WINDLLFLAGS) /def:$(PDEF) /out:$*.dll \
+##WIN32##         no_glue.obj version.res $(PLIBS) $(WINLIBS)
+
+$(KLIB): $(KLIBS) $(CLIB) $(PLIB) $(WLIB) $(KDEF) k5_glue.obj $(KRB5RC) $(CCACHE_LIB)
 ##WIN16##      link /co /seg:400 /noe /nod /nol \
 ##WIN16##         k5_glue, $*.dll, $*.map, \
-##WIN16##         $(MITLIBS) $(KLIBS) $(CLIB) $(WINLIBS), $(KDEF)
+##WIN16##         $(MITLIBS) $(KLIBS) $(CLIB) $(PLIB) $(WINLIBS), $(KDEF)
 ##WIN16##      rc /nologo /p /k $(CPPFLAGS) -DKRB5_LIB -D_MSDOS -DRES_ONLY \
 ##WIN16##         $(KRB5RC) $*.dll
 ##WIN16##      implib /nologo $@ $*.dll
@@ -86,7 +99,7 @@ $(KLIB): $(KLIBS) $(CLIB) $(WLIB) $(KDEF) k5_glue.obj $(KRB5RC) $(CCACHE_LIB)
 ##WIN32##         -fo version.res $(VERSIONRC)
 ##WIN32##      link $(WINDLLFLAGS) /def:$(KDEF) /out:$*.dll \
 ##WIN32##         k5_glue.obj version.res $(KRB5RC) $(MITLIBS) $(KLIBS) \
-##WIN32##          $(CCACHE_LIB) $(CLIB) \
+##WIN32##          $(CCACHE_LIB) $(CLIB) $(PLIB) \
 ##WIN32##         $(WINLIBS) advapi32.lib gdi32.lib
 
 $(GLIB): $(GLIBS) $(KLIB) $(CLIB) $(GDEF) gss_glue.obj
@@ -176,6 +189,7 @@ comerr.lib: $(CLIB)
 krb4.lib:   $(K4LIB)
 krb5.lib:   $(KLIB)
 gssapi.lib: $(GLIB)
+profile.lib: $(PLIB)
 
 all-windows:: 
        @echo Making in lib\crypto
@@ -197,7 +211,7 @@ all-windows::
        cd ..
 
 all-windows:: lib-windows
-lib-windows:: krb5.lib gssapi.lib krb4.lib
+lib-windows:: krb5.lib gssapi.lib krb4.lib 
 
 clean-windows::
        @echo Making clean in lib\crypto
index 8b055be82bfbe31e1a374907328f2a56ac44debc..8ac1d43a71fabc161d9b4e5aa717eeafbd8fc911 100644 (file)
@@ -191,7 +191,7 @@ EXPORTS
 ;      krb5_free_adm_data
 ;      krb5_read_adm_reply
 ;      krb5_send_adm_cmd
-;
+
        krb5_change_password
 ;Temporary exports (DO NOT USE)
        decode_krb5_ticket
@@ -203,7 +203,6 @@ EXPORTS
        des_string_to_key
 ;      des_set_random_generator_seed
        des_init_random_number_generator
-       profile_get_values
        krb5_random_confounder
        krb5_size_opaque
        krb5_internalize_opaque
diff --git a/src/lib/xpprof16.def b/src/lib/xpprof16.def
new file mode 100644 (file)
index 0000000..e356718
--- /dev/null
@@ -0,0 +1,33 @@
+;----------------------------------------------------
+;   XPPROF16.DEF - XPPROF16.DLL 
+;----------------------------------------------------
+
+LIBRARY                XPPROF16.DLL
+DESCRIPTION    'Cross Platform Profile DLL'
+EXETYPE                WINDOWS
+CODE           PRELOAD MOVEABLE DISCARDABLE
+DATA           PRELOAD MOVEABLE SINGLE
+HEAPSIZE       8192
+
+EXPORTS
+       WEP                                     @1001 RESIDENTNAME
+       LibMain                                 @1002
+;
+       profile_init
+       profile_init_path
+       profile_flush
+       profile_release
+       profile_get_values
+       profile_free_list
+       profile_get_string
+       profile_get_integer
+       profile_get_relation_names
+       profile_get_subsection_names
+       profile_iterator_create
+       profile_iterator_free
+       profile_iterator
+       profile_release_string
+       profile_update_relation
+       profile_clear_relation
+       profile_rename_section
+       profile_add_relation
diff --git a/src/lib/xpprof32.def b/src/lib/xpprof32.def
new file mode 100644 (file)
index 0000000..c3d2d53
--- /dev/null
@@ -0,0 +1,29 @@
+;----------------------------------------------------
+;   XPPROF32.DEF - XPPROF32.DLL 
+;----------------------------------------------------
+
+;LIBRARY               XPPROF32.DLL
+DESCRIPTION    'Cross Platform Profile DLL'
+CODE           PRELOAD MOVEABLE DISCARDABLE
+DATA           PRELOAD MOVEABLE SINGLE
+HEAPSIZE       8192
+
+EXPORTS
+       profile_init
+       profile_init_path
+       profile_flush
+       profile_release
+       profile_get_values
+       profile_free_list
+       profile_get_string
+       profile_get_integer
+       profile_get_relation_names
+       profile_get_subsection_names
+       profile_iterator_create
+       profile_iterator_free
+       profile_iterator
+       profile_release_string
+       profile_update_relation
+       profile_clear_relation
+       profile_rename_section
+       profile_add_relation