Windows: add xdrlen
[openafs.git] / src / rx / NTMakefile
index 4de8de0..9c21ec7 100644 (file)
@@ -5,8 +5,8 @@
 # License.  For details, see the LICENSE file in the top-level source
 # directory or online at http://www.openafs.org/dl/license10.html
 
+RELDIR=rx
 !include ..\config\NTMakefile.$(SYS_NAME)
-!include ..\config\NTMakefile.version
 
 # RX has different strings for it's version number.
 VERSFILE=RX_component_version_number
@@ -14,21 +14,24 @@ CML_PREFIX=rx_
 
 !include ..\config\NTMakefile.version
 
+{.}.c{$(OUT)}.obj:
+    $(C2OBJ) $<
+
 # Additional debugging flag for RX.
 AFSDEV_AUXCDEFINES = -DRXDEBUG
 
 LIBFILE = $(DESTDIR)\lib\afsrx.lib
 
 # Object files by category.
-XDROBJS = xdr.obj xdr_array.obj xdr_arrayn.obj xdr_float.obj xdr_mem.obj \
-       xdr_rec.obj  xdr_refernce.obj xdr_rx.obj xdr_update.obj \
-       xdr_afsuuid.obj xdr_int64.obj
+XDROBJS = $(OUT)\xdr.obj $(OUT)\xdr_array.obj $(OUT)\xdr_arrayn.obj $(OUT)\xdr_float.obj $(OUT)\xdr_mem.obj \
+       $(OUT)\xdr_rec.obj  $(OUT)\xdr_refernce.obj $(OUT)\xdr_rx.obj $(OUT)\xdr_update.obj \
+       $(OUT)\xdr_afsuuid.obj $(OUT)\xdr_int64.obj $(OUT)\xdr_int32.obj $(OUT)\xdr_len.obj
 
-RXOBJS = rx_clock_nt.obj rx_event.obj rx_user.obj rx_lwp.obj rx.obj \
-       rx_null.obj rx_globals.obj rx_getaddr.obj rx_misc.obj rx_packet.obj \
-       rx_rdwr.obj rx_trace.obj rx_xmit_nt.obj rx_conncache.obj
+RXOBJS = $(OUT)\rx_event.obj $(OUT)\rx_clock_nt.obj $(OUT)\rx_user.obj $(OUT)\rx_lwp.obj $(OUT)\rx.obj \
+       $(OUT)\rx_null.obj $(OUT)\rx_globals.obj $(OUT)\rx_getaddr.obj $(OUT)\rx_misc.obj $(OUT)\rx_packet.obj \
+       $(OUT)\rx_rdwr.obj $(OUT)\rx_trace.obj $(OUT)\rx_xmit_nt.obj $(OUT)\rx_conncache.obj
 
-MULTIOBJS = rx_multi.obj
+MULTIOBJS = $(OUT)\rx_multi.obj
 
 LIBOBJS = $(RXOBJS) $(MULTIOBJS) $(XDROBJS)
 
@@ -48,14 +51,13 @@ INCFILES  = \
        $(INCFILEDIR)\rx_lwp.h \
        $(INCFILEDIR)\rx_pthread.h \
        $(INCFILEDIR)\rx_xmit_nt.h \
+       $(INCFILEDIR)\xdr_prototypes.h \
+       $(INCFILEDIR)\rx_prototypes.h \
        $(INCFILEDIR)\xdr.h
 
-LOCAL_HEADERS = \
-       rx_internal.h
-
-$(LIBOBJS): $(INCFILES) $(LOCAL_HEADERS)
+$(LIBOBJS): $(INCFILES)
 
-$(MULTIOBJS):  rx_multi.h
+$(MULTIOBJS):  rx_multi.h 
 
 $(XDROBJS): xdr.h
 
@@ -65,26 +67,14 @@ $(LIBFILE): $(LIBOBJS)
 # Not yet
 #rxdumptrace.exe: rx_trace.c
 
+install_headers:  $(INCFILES)
 
-# build rxdebug.
-RXDEBUG = $(DESTDIR)\etc\rxdebug.exe
-RXDOBJS = rxdebug.obj \
-         rxdebug.res
-
-LIBDIR  = $(DESTDIR)\lib
-RXDLIBS = $(LIBDIR)\afs\afscmd.lib \
-         $(LIBDIR)\afsrx.lib \
-         $(LIBDIR)\afslwp.lib \
-         $(LIBDIR)\afs\afsutil.lib \
-          $(LIBDIR)\afs\afsreg.lib
-
-rxdebug.res: rxdebug.rc AFS_component_version_number.h
-       $(RC) $*.rc
+install: install_headers $(LIBFILE)
 
-$(RXDEBUG): $(RXDOBJS) $(RXDLIBS)
-       $(EXECONLINK)
-       $(EXEPREP)
+install9x: install_headers $(LIBFILE)
 
-install: $(LIBFILE) $(INCFILES) $(RXDEBUG)
+clean::
+       $(DEL) $(LIBFILE) $(INCFILES)
 
-install9x: $(LIBFILE) $(INCFILES)
+mkdir:
+