allow-rx-shutdown-for-userlevel-20010212
[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 !include ..\config\NTMakefile.$(SYS_NAME)
9 !include ..\config\NTMakefile.version
10
11 # RX has different strings for it's version number.
12 VERSFILE=RX_component_version_number
13 CML_PREFIX=rx_
14 !include ..\config\NTMakefile.version
15
16 # Additional debugging flag for RX.
17 AFSDEV_AUXCDEFINES = -DRXDEBUG
18
19 LIBFILE = $(DESTDIR)\lib\afsrx.lib
20
21 # Object files by category.
22 XDROBJS = xdr.obj xdr_array.obj xdr_arrayn.obj xdr_float.obj xdr_mem.obj \
23         xdr_rec.obj  xdr_refernce.obj xdr_rx.obj xdr_update.obj \
24         xdr_afsuuid.obj xdr_int64.obj
25
26 RXOBJS = rx_clock_nt.obj rx_event.obj rx_user.obj rx_lwp.obj rx.obj \
27         rx_null.obj rx_globals.obj rx_getaddr.obj rx_misc.obj rx_packet.obj \
28         rx_rdwr.obj rx_trace.obj rx_xmit_nt.obj rx_conncache.obj
29
30 MULTIOBJS = rx_multi.obj
31
32 LIBOBJS = $(RXOBJS) $(MULTIOBJS) $(XDROBJS)
33
34 INCFILEDIR = $(DESTDIR)\include\rx
35
36 INCFILES  = \
37         $(INCFILEDIR)\rx.h \
38         $(INCFILEDIR)\rx_packet.h \
39         $(INCFILEDIR)\rx_user.h \
40         $(INCFILEDIR)\rx_event.h \
41         $(INCFILEDIR)\rx_queue.h \
42         $(INCFILEDIR)\rx_globals.h \
43         $(INCFILEDIR)\rx_clock.h \
44         $(INCFILEDIR)\rx_misc.h \
45         $(INCFILEDIR)\rx_multi.h \
46         $(INCFILEDIR)\rx_null.h \
47         $(INCFILEDIR)\rx_lwp.h \
48         $(INCFILEDIR)\rx_pthread.h \
49         $(INCFILEDIR)\rx_xmit_nt.h \
50         $(INCFILEDIR)\xdr.h
51
52 LOCAL_HEADERS = \
53         rx_internal.h
54
55 $(LIBOBJS): $(INCFILES) $(LOCAL_HEADERS)
56
57 $(MULTIOBJS):  rx_multi.h
58
59 $(XDROBJS): xdr.h
60
61 $(LIBFILE): $(LIBOBJS)
62         $(LIBARCH)
63
64 # Not yet
65 #rxdumptrace.exe: rx_trace.c
66
67
68 # build rxdebug.
69 RXDEBUG = $(DESTDIR)\etc\rxdebug.exe
70 RXDOBJS = rxdebug.obj \
71           rxdebug.res
72
73 LIBDIR  = $(DESTDIR)\lib
74 RXDLIBS = $(LIBDIR)\afs\afscmd.lib \
75           $(LIBDIR)\afsrx.lib \
76           $(LIBDIR)\afslwp.lib \
77           $(LIBDIR)\afs\afsutil.lib \
78           $(LIBDIR)\afs\afsreg.lib
79
80 rxdebug.res: rxdebug.rc AFS_component_version_number.h
81         $(RC) $*.rc
82
83 $(RXDEBUG): $(RXDOBJS) $(RXDLIBS)
84         $(EXECONLINK)
85         $(EXEPREP)
86
87
88 install: $(LIBFILE) $(INCFILES) $(RXDEBUG)