windows-build-updates-20030314
[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
15 !include ..\config\NTMakefile.version
16
17 # Additional debugging flag for RX.
18 AFSDEV_AUXCDEFINES = -DRXDEBUG
19
20 LIBFILE = $(DESTDIR)\lib\afsrx.lib
21
22 # Object files by category.
23 XDROBJS = $(OJT)\xdr.obj $(OJT)\xdr_array.obj $(OJT)\xdr_arrayn.obj $(OJT)\xdr_float.obj $(OJT)\xdr_mem.obj \
24         $(OJT)\xdr_rec.obj  $(OJT)\xdr_refernce.obj $(OJT)\xdr_rx.obj $(OJT)\xdr_update.obj \
25         $(OJT)\xdr_afsuuid.obj $(OJT)\xdr_int64.obj $(OJT)\xdr_int32.obj
26
27 RXOBJS = $(OJT)\rx_event.obj $(OJT)\rx_clock_nt.obj $(OJT)\rx_user.obj $(OJT)\rx_lwp.obj $(OJT)\rx.obj \
28         $(OJT)\rx_null.obj $(OJT)\rx_globals.obj $(OJT)\rx_getaddr.obj $(OJT)\rx_misc.obj $(OJT)\rx_packet.obj \
29         $(OJT)\rx_rdwr.obj $(OJT)\rx_trace.obj $(OJT)\rx_xmit_nt.obj $(OJT)\rx_conncache.obj
30
31 MULTIOBJS = $(OJT)\rx_multi.obj
32
33 LIBOBJS = $(RXOBJS) $(MULTIOBJS) $(XDROBJS)
34
35 INCFILEDIR = $(DESTDIR)\include\rx
36
37 INCFILES  = \
38         $(INCFILEDIR)\rx.h \
39         $(INCFILEDIR)\rx_packet.h \
40         $(INCFILEDIR)\rx_user.h \
41         $(INCFILEDIR)\rx_event.h \
42         $(INCFILEDIR)\rx_queue.h \
43         $(INCFILEDIR)\rx_globals.h \
44         $(INCFILEDIR)\rx_clock.h \
45         $(INCFILEDIR)\rx_misc.h \
46         $(INCFILEDIR)\rx_multi.h \
47         $(INCFILEDIR)\rx_null.h \
48         $(INCFILEDIR)\rx_lwp.h \
49         $(INCFILEDIR)\rx_pthread.h \
50         $(INCFILEDIR)\rx_xmit_nt.h \
51         $(INCFILEDIR)\xdr_prototypes.h \
52         $(INCFILEDIR)\rx_prototypes.h \
53         $(INCFILEDIR)\xdr.h
54
55 LOCAL_HEADERS = \
56         rx_internal.h
57
58 $(LIBOBJS): $(INCFILES) $(LOCAL_HEADERS)
59
60 $(MULTIOBJS):  rx_multi.h
61
62 $(XDROBJS): xdr.h
63
64 $(LIBFILE): $(LIBOBJS)
65         $(LIBARCH)
66
67 # Not yet
68 #rxdumptrace.exe: rx_trace.c
69
70 # build rxdebug.
71 RXDEBUG = $(DESTDIR)\etc\rxdebug.exe
72 RXDOBJS = $(OJT)\rxdebug.obj \
73           $(OJT)\rxdebug.res
74
75 LIBDIR  = $(DESTDIR)\lib
76 RXDLIBS = $(LIBDIR)\afs\afscmd.lib \
77           $(LIBDIR)\afsrx.lib \
78           $(LIBDIR)\afslwp.lib \
79           $(LIBDIR)\afs\afsutil.lib \
80           $(LIBDIR)\afs\afsreg.lib
81
82 $(OJT)\rxdebug.res: rxdebug.rc AFS_component_version_number.h
83         $(RC) /Fo$*.RES $(*F).rc 
84
85 $(RXDEBUG): $(RXDOBJS) $(RXDLIBS)
86         $(EXECONLINK)
87         $(EXEPREP)
88
89 install: $(LIBFILE) $(INCFILES) $(RXDEBUG)
90
91 install9x: $(LIBFILE) $(INCFILES)
92
93 clean::
94         $(DEL) $(LIBFILE) $(INCFILES)
95
96 mkdir:
97