Windows: Release builds of Rx should be lean and mean
[openafs.git] / src / rx / NTMakefile
1 # Copyright 2000, International Business Machines Corporation and others.
2 # All Rights Reserved.
3
4 # This software has been released under the terms of the IBM Public
5 # License.  For details, see the LICENSE file in the top-level source
6 # directory or online at http://www.openafs.org/dl/license10.html
7
8 RELDIR=rx
9 !include ..\config\NTMakefile.$(SYS_NAME)
10
11 # RX has different strings for it's version number.
12 VERSFILE=RX_component_version_number
13 CML_PREFIX=rx_
14
15 !include ..\config\NTMakefile.version
16
17 {.}.c{$(OUT)}.obj:
18     $(C2OBJ) $<
19
20 # Additional debugging flag for RX.
21 AFSDEV_AUXCDEFINES =
22 !IF ("$(AFSDEV_BUILDTYPE)" == "CHECKED")
23 AFSDEV_AUXCDEFINES = $(AFSDEV_AUXCDEFINES) -DRXDEBUG -DRXDEBUG_PACKET -DRX_TRACK_PACKETS -DRX_REFCOUNT_CHECK
24 !ENDIF
25
26 LIBFILE = $(DESTDIR)\lib\afsrx.lib
27
28 # Object files by category.
29 XDROBJS = $(OUT)\xdr.obj $(OUT)\xdr_array.obj $(OUT)\xdr_arrayn.obj $(OUT)\xdr_float.obj $(OUT)\xdr_mem.obj \
30         $(OUT)\xdr_rec.obj  $(OUT)\xdr_refernce.obj $(OUT)\xdr_rx.obj $(OUT)\xdr_update.obj \
31         $(OUT)\xdr_afsuuid.obj $(OUT)\xdr_int64.obj $(OUT)\xdr_int32.obj $(OUT)\xdr_len.obj
32
33 RXOBJS = $(OUT)\rx_event.obj $(OUT)\rx_clock_nt.obj $(OUT)\rx_user.obj $(OUT)\rx_lwp.obj $(OUT)\rx.obj \
34         $(OUT)\rx_null.obj $(OUT)\rx_globals.obj $(OUT)\rx_getaddr.obj $(OUT)\rx_misc.obj $(OUT)\rx_packet.obj \
35         $(OUT)\rx_rdwr.obj $(OUT)\rx_trace.obj $(OUT)\rx_xmit_nt.obj $(OUT)\rx_conncache.obj
36
37 MULTIOBJS = $(OUT)\rx_multi.obj
38
39 LIBOBJS = $(RXOBJS) $(MULTIOBJS) $(XDROBJS)
40
41 INCFILEDIR = $(DESTDIR)\include\rx
42
43 INCFILES  = \
44         $(INCFILEDIR)\rx.h \
45         $(INCFILEDIR)\rx_packet.h \
46         $(INCFILEDIR)\rx_user.h \
47         $(INCFILEDIR)\rx_event.h \
48         $(INCFILEDIR)\rx_queue.h \
49         $(INCFILEDIR)\rx_globals.h \
50         $(INCFILEDIR)\rx_clock.h \
51         $(INCFILEDIR)\rx_misc.h \
52         $(INCFILEDIR)\rx_multi.h \
53         $(INCFILEDIR)\rx_null.h \
54         $(INCFILEDIR)\rx_lwp.h \
55         $(INCFILEDIR)\rx_pthread.h \
56         $(INCFILEDIR)\rx_xmit_nt.h \
57         $(INCFILEDIR)\xdr_prototypes.h \
58         $(INCFILEDIR)\rx_prototypes.h \
59         $(INCFILEDIR)\xdr.h
60
61 $(LIBOBJS): $(INCFILES)
62
63 $(MULTIOBJS):  rx_multi.h 
64
65 $(XDROBJS): xdr.h
66
67 $(LIBFILE): $(LIBOBJS)
68         $(LIBARCH)
69
70 # Not yet
71 #rxdumptrace.exe: rx_trace.c
72
73 install_headers:  $(INCFILES)
74
75 install: install_headers $(LIBFILE)
76
77 install9x: install_headers $(LIBFILE)
78
79 clean::
80         $(DEL) $(LIBFILE) $(INCFILES)
81
82 mkdir:
83