openbsd-20021119
[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 = xdr.obj xdr_array.obj xdr_arrayn.obj xdr_float.obj xdr_mem.obj \
24         xdr_rec.obj  xdr_refernce.obj xdr_rx.obj xdr_update.obj \
25         xdr_afsuuid.obj xdr_int64.obj
26
27 RXOBJS = rx_clock_nt.obj rx_event.obj rx_user.obj rx_lwp.obj rx.obj \
28         rx_null.obj rx_globals.obj rx_getaddr.obj rx_misc.obj rx_packet.obj \
29         rx_rdwr.obj rx_trace.obj rx_xmit_nt.obj rx_conncache.obj
30
31 MULTIOBJS = 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.h
52
53 LOCAL_HEADERS = \
54         rx_internal.h
55
56 $(LIBOBJS): $(INCFILES) $(LOCAL_HEADERS)
57
58 $(MULTIOBJS):  rx_multi.h
59
60 $(XDROBJS): xdr.h
61
62 $(LIBFILE): $(LIBOBJS)
63         $(LIBARCH)
64
65 # Not yet
66 #rxdumptrace.exe: rx_trace.c
67
68
69 # build rxdebug.
70 RXDEBUG = $(DESTDIR)\etc\rxdebug.exe
71 RXDOBJS = rxdebug.obj \
72           rxdebug.res
73
74 LIBDIR  = $(DESTDIR)\lib
75 RXDLIBS = $(LIBDIR)\afs\afscmd.lib \
76           $(LIBDIR)\afsrx.lib \
77           $(LIBDIR)\afslwp.lib \
78           $(LIBDIR)\afs\afsutil.lib \
79           $(LIBDIR)\afs\afsreg.lib
80
81 rxdebug.res: rxdebug.rc AFS_component_version_number.h
82         $(RC) $*.rc
83
84 $(RXDEBUG): $(RXDOBJS) $(RXDLIBS)
85         $(EXECONLINK)
86         $(EXEPREP)
87
88 install: $(LIBFILE) $(INCFILES) $(RXDEBUG)
89
90 install9x: $(LIBFILE) $(INCFILES)