patch-from-shadow-to-jaltman-bkbox-20031120
[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 = -DRXDEBUG
22
23 LIBFILE = $(DESTDIR)\lib\afsrx.lib
24
25 # Object files by category.
26 XDROBJS = $(OUT)\xdr.obj $(OUT)\xdr_array.obj $(OUT)\xdr_arrayn.obj $(OUT)\xdr_float.obj $(OUT)\xdr_mem.obj \
27         $(OUT)\xdr_rec.obj  $(OUT)\xdr_refernce.obj $(OUT)\xdr_rx.obj $(OUT)\xdr_update.obj \
28         $(OUT)\xdr_afsuuid.obj $(OUT)\xdr_int64.obj $(OUT)\xdr_int32.obj
29
30 RXOBJS = $(OUT)\rx_event.obj $(OUT)\rx_clock_nt.obj $(OUT)\rx_user.obj $(OUT)\rx_lwp.obj $(OUT)\rx.obj \
31         $(OUT)\rx_null.obj $(OUT)\rx_globals.obj $(OUT)\rx_getaddr.obj $(OUT)\rx_misc.obj $(OUT)\rx_packet.obj \
32         $(OUT)\rx_rdwr.obj $(OUT)\rx_trace.obj $(OUT)\rx_xmit_nt.obj $(OUT)\rx_conncache.obj
33
34 MULTIOBJS = $(OUT)\rx_multi.obj
35
36 LIBOBJS = $(RXOBJS) $(MULTIOBJS) $(XDROBJS)
37
38 INCFILEDIR = $(DESTDIR)\include\rx
39
40 INCFILES  = \
41         $(INCFILEDIR)\rx.h \
42         $(INCFILEDIR)\rx_packet.h \
43         $(INCFILEDIR)\rx_user.h \
44         $(INCFILEDIR)\rx_event.h \
45         $(INCFILEDIR)\rx_queue.h \
46         $(INCFILEDIR)\rx_globals.h \
47         $(INCFILEDIR)\rx_clock.h \
48         $(INCFILEDIR)\rx_misc.h \
49         $(INCFILEDIR)\rx_multi.h \
50         $(INCFILEDIR)\rx_null.h \
51         $(INCFILEDIR)\rx_lwp.h \
52         $(INCFILEDIR)\rx_pthread.h \
53         $(INCFILEDIR)\rx_xmit_nt.h \
54         $(INCFILEDIR)\xdr_prototypes.h \
55         $(INCFILEDIR)\rx_prototypes.h \
56         $(INCFILEDIR)\xdr.h
57
58 LOCAL_HEADERS = \
59         rx_internal.h
60
61 $(LIBOBJS): $(INCFILES) $(LOCAL_HEADERS)
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 # build rxdebug.
74 RXDEBUG = $(DESTDIR)\etc\rxdebug.exe
75 RXDOBJS = $(OUT)\rxdebug.obj \
76           $(OUT)\rxdebug.res
77
78 LIBDIR  = $(DESTDIR)\lib
79 RXDLIBS = $(LIBDIR)\afs\afscmd.lib \
80           $(LIBDIR)\afsrx.lib \
81           $(LIBDIR)\afslwp.lib \
82           $(LIBDIR)\afs\afsutil.lib \
83           $(LIBDIR)\afs\afsreg.lib
84
85 $(OUT)\rxdebug.res: rxdebug.rc AFS_component_version_number.h
86         $(RC) /Fo$*.RES $(*F).rc 
87
88 $(OUT)\rxdebug.obj: rxdebug.c
89
90 $(RXDEBUG): $(RXDOBJS) $(RXDLIBS)
91         $(EXECONLINK)
92         $(EXEPREP)
93
94 install: $(LIBFILE) $(INCFILES) $(RXDEBUG)
95
96 install9x: $(LIBFILE) $(INCFILES)
97
98 clean::
99         $(DEL) $(LIBFILE) $(INCFILES)
100
101 mkdir:
102