Rx: Permit MakeDebugCall() be be compiled when RXDEBUG is undefined
[openafs.git] / src / rx / NTMakefile
index a7fc124..e40c284 100644 (file)
@@ -18,14 +18,17 @@ CML_PREFIX=rx_
     $(C2OBJ) $<
 
 # Additional debugging flag for RX.
-AFSDEV_AUXCDEFINES = -DRXDEBUG
+AFSDEV_AUXCDEFINES = -DMAKEDEBUGCALL
+!IF ("$(AFSDEV_BUILDTYPE)" == "CHECKED")
+AFSDEV_AUXCDEFINES = $(AFSDEV_AUXCDEFINES) -DRXDEBUG -DRXDEBUG_PACKET -DRX_TRACK_PACKETS -DRX_REFCOUNT_CHECK
+!ENDIF
 
 LIBFILE = $(DESTDIR)\lib\afsrx.lib
 
 # Object files by category.
 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_afsuuid.obj $(OUT)\xdr_int64.obj $(OUT)\xdr_int32.obj $(OUT)\xdr_len.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 \
@@ -55,10 +58,7 @@ INCFILES  = \
        $(INCFILEDIR)\rx_prototypes.h \
        $(INCFILEDIR)\xdr.h
 
-LOCAL_HEADERS = \
-       rx_internal.h
-
-$(LIBOBJS): $(INCFILES) $(LOCAL_HEADERS)
+$(LIBOBJS): $(INCFILES)
 
 $(MULTIOBJS):  rx_multi.h 
 
@@ -70,9 +70,11 @@ $(LIBFILE): $(LIBOBJS)
 # Not yet
 #rxdumptrace.exe: rx_trace.c
 
-install: $(LIBFILE) $(INCFILES)
+install_headers:  $(INCFILES)
+
+install: install_headers $(LIBFILE)
 
-install9x: $(LIBFILE) $(INCFILES)
+install9x: install_headers $(LIBFILE)
 
 clean::
        $(DEL) $(LIBFILE) $(INCFILES)