opr: Add new queue implementation
[openafs.git] / src / util / 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 # General AFS utilities.
9
10 AFSDEV_AUXCDEFINES = $(AFSDEV_AUXCDEFINES) -I..\WINNT\kfw\inc\krb5
11 RELDIR=util
12 !INCLUDE ..\config\NTMakefile.$(SYS_NAME)
13
14 INCFILEDIR = $(DESTDIR)\include\afs  # header file install directory
15
16 INCFILES =\
17         $(DESTDIR)\include\dirent.h \
18         $(DESTDIR)\include\opr\queue.h \
19         $(INCFILEDIR)\afsutil.h \
20         $(INCFILEDIR)\afs_assert.h \
21         $(INCFILEDIR)\errors.h \
22         $(INCFILEDIR)\itc.h \
23         $(INCFILEDIR)\vice.h \
24         $(INCFILEDIR)\netutils.h \
25         $(INCFILEDIR)\pthread_glock.h \
26         $(INCFILEDIR)\pthread_nosigs.h \
27         $(INCFILEDIR)\errmap_nt.h \
28         $(INCFILEDIR)\dirpath.h \
29         $(INCFILEDIR)\krb5_nt.h \
30         $(INCFILEDIR)\ktime.h \
31         $(INCFILEDIR)\fileutil.h \
32         $(INCFILEDIR)\afsutil_prototypes.h \
33         $(INCFILEDIR)\secutil_nt.h \
34         $(INCFILEDIR)\softsig.h
35
36 $(DESTDIR)\include\dirent.h: dirent_nt.h
37         $(COPY) $** $@
38
39 $(DESTDIR)\include\afs\dirpath.h: dirpath_nt.h
40         $(COPY) $** $@
41
42 LIBFILE = $(DESTDIR)\lib\afs\afsutil.lib
43
44 MT_LIBFILE = $(DESTDIR)\lib\afs\mtafsutil.lib
45
46 LIBOBJS = \
47         $(OUT)\assert.obj \
48         $(OUT)\base32.obj \
49         $(OUT)\casestrcpy.obj \
50         $(OUT)\get_krbrlm.obj \
51         $(OUT)\hostparse.obj \
52         $(OUT)\isathing.obj \
53         $(OUT)\krb5_nt.obj \
54         $(OUT)\kreltime.obj \
55         $(OUT)\ktime.obj \
56         $(OUT)\netutils.obj \
57         $(OUT)\regex.obj \
58         $(OUT)\readdir_nt.obj \
59         $(OUT)\serverLog.obj \
60         $(OUT)\snprintf.obj \
61         $(OUT)\uuid.obj \
62         $(OUT)\volparse.obj \
63         $(OUT)\winsock_nt.obj \
64         $(OUT)\errmap_nt.obj \
65         $(OUT)\dirpath.obj \
66         $(OUT)\fileutil.obj \
67         $(OUT)\secutil_nt.obj
68
69 MT_LIBOBJS = \
70         $(OUT)\assert.obj \
71         $(OUT)\base32.obj \
72         $(OUT)\casestrcpy.obj \
73         $(OUT)\get_krbrlm.obj \
74         $(OUT)\hostparse.obj \
75         $(OUT)\isathing.obj \
76         $(OUT)\krb5_nt.obj \
77         $(OUT)\kreltime.obj \
78         $(OUT)\ktime.obj \
79         $(OUT)\netutils.obj \
80         $(OUT)\regex.obj \
81         $(OUT)\readdir_nt.obj \
82         $(OUT)\serverLog_mt.obj \
83         $(OUT)\snprintf.obj \
84         $(OUT)\uuid.obj \
85         $(OUT)\volparse.obj \
86         $(OUT)\winsock_nt.obj \
87         $(OUT)\errmap_nt.obj \
88         $(OUT)\dirpath_mt.obj \
89         $(OUT)\fileutil.obj \
90         $(OUT)\secutil_nt.obj
91
92 $(LIBOBJS): $$(@B).c
93     $(C2OBJ) $**
94
95 $(OUT)\dirpath_mt.obj:dirpath.c
96         $(C2OBJ) $** -DAFS_PTHREAD_ENV
97
98 $(OUT)\serverLog_mt.obj:serverLog.c
99         $(C2OBJ) $** -DAFS_PTHREAD_ENV
100
101 $(LIBFILE): $(LIBOBJS)
102         $(LIBARCH)
103
104 $(MT_LIBFILE): $(MT_LIBOBJS)
105         $(LIBARCH) Rpcrt4.lib
106
107 install_headers: $(INCFILES) 
108
109 install: install_headers $(LIBOBJS) $(LIBFILE) $(MT_LIBFILE)
110
111 install9x: install
112
113 clean::
114         $(DEL) $(LIBFILE)
115
116 mkdir:
117