4b1f6dbd74f86deba3afbbf6de75f56f881e3167
[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 = -DMAKEDEBUGCALL
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 \
34          $(OUT)\rx_lwp.obj $(OUT)\rx.obj $(OUT)\rx_null.obj \
35          $(OUT)\rx_globals.obj $(OUT)\rx_getaddr.obj $(OUT)\rx_misc.obj \
36          $(OUT)\rx_packet.obj $(OUT)\rx_rdwr.obj $(OUT)\rx_trace.obj \
37          $(OUT)\rx_xmit_nt.obj $(OUT)\rx_conncache.obj \
38          $(OUT)\rx_opaque.obj $(OUT)\rx_identity.obj $(OUT)\rx_stats.obj \
39          $(OUT)\rx_conn.obj
40
41 MULTIOBJS = $(OUT)\rx_multi.obj
42
43 LIBOBJS = $(RXOBJS) $(MULTIOBJS) $(XDROBJS)
44
45 INCFILEDIR = $(DESTDIR)\include\rx
46
47 INCFILES  = \
48         $(INCFILEDIR)\rx.h \
49         $(INCFILEDIR)\rx_atomic.h \
50         $(INCFILEDIR)\rx_packet.h \
51         $(INCFILEDIR)\rx_user.h \
52         $(INCFILEDIR)\rx_event.h \
53         $(INCFILEDIR)\rx_queue.h \
54         $(INCFILEDIR)\rx_globals.h \
55         $(INCFILEDIR)\rx_clock.h \
56         $(INCFILEDIR)\rx_misc.h \
57         $(INCFILEDIR)\rx_multi.h \
58         $(INCFILEDIR)\rx_null.h \
59         $(INCFILEDIR)\rx_lwp.h \
60         $(INCFILEDIR)\rx_identity.h \
61         $(INCFILEDIR)\rx_opaque.h \
62         $(INCFILEDIR)\rx_pthread.h \
63         $(INCFILEDIR)\rx_xmit_nt.h \
64         $(INCFILEDIR)\xdr_prototypes.h \
65         $(INCFILEDIR)\rx_prototypes.h \
66         $(INCFILEDIR)\xdr.h
67
68 $(LIBOBJS): $(INCFILES)
69
70 $(MULTIOBJS):  rx_multi.h 
71
72 $(XDROBJS): xdr.h
73
74 $(LIBFILE): $(LIBOBJS)
75         $(LIBARCH)
76
77 # Not yet
78 #rxdumptrace.exe: rx_trace.c
79
80 install_headers:  $(INCFILES)
81
82 install: install_headers $(LIBFILE)
83
84 install9x: install_headers $(LIBFILE)
85
86 clean::
87         $(DEL) $(LIBFILE) $(INCFILES)
88
89 mkdir:
90