8a908c605cee1726928d49745d531feffdd009ca
[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 RELDIR=util
11 !INCLUDE ..\config\NTMakefile.$(SYS_NAME)
12
13 INCFILEDIR = $(DESTDIR)\include\afs  # header file install directory
14
15 INCFILES =\
16         $(DESTDIR)\include\dirent.h \
17         $(INCFILEDIR)\afsutil.h \
18         $(INCFILEDIR)\errors.h \
19         $(INCFILEDIR)\vice.h \
20         $(INCFILEDIR)\pthread_glock.h \
21         $(INCFILEDIR)\pthread_nosigs.h \
22         $(INCFILEDIR)\errmap_nt.h \
23         $(INCFILEDIR)\dirpath.h \
24         $(INCFILEDIR)\krb5_nt.h \
25         $(INCFILEDIR)\ktime.h \
26         $(INCFILEDIR)\fileutil.h \
27         $(INCFILEDIR)\afsutil_prototypes.h \
28         $(INCFILEDIR)\secutil_nt.h
29
30 $(DESTDIR)\include\dirent.h: dirent_nt.h
31         $(COPY) $** $@
32
33 $(DESTDIR)\include\afs\dirpath.h: dirpath_nt.h
34         $(COPY) $** $@
35
36 LIBFILE = $(DESTDIR)\lib\afs\afsutil.lib
37
38 MT_LIBFILE = $(DESTDIR)\lib\afs\mtafsutil.lib
39
40 LIBOBJS = \
41         $(OUT)\base32.obj \
42         $(OUT)\hostparse.obj \
43         $(OUT)\krb5_nt.obj \
44         $(OUT)\kreltime.obj \
45         $(OUT)\ktime.obj \
46         $(OUT)\regex.obj \
47         $(OUT)\readdir_nt.obj \
48         $(OUT)\serverLog.obj \
49         $(OUT)\uuid.obj \
50         $(OUT)\volparse.obj \
51         $(OUT)\winsock_nt.obj \
52         $(OUT)\errmap_nt.obj \
53         $(OUT)\dirpath.obj \
54         $(OUT)\fileutil.obj \
55         $(OUT)\secutil_nt.obj
56
57 MT_LIBOBJS = \
58         $(OUT)\base32.obj \
59         $(OUT)\hostparse.obj \
60         $(OUT)\krb5_nt.obj \
61         $(OUT)\kreltime.obj \
62         $(OUT)\ktime.obj \
63         $(OUT)\regex.obj \
64         $(OUT)\readdir_nt.obj \
65         $(OUT)\serverLog_mt.obj \
66         $(OUT)\uuid.obj \
67         $(OUT)\volparse.obj \
68         $(OUT)\winsock_nt.obj \
69         $(OUT)\errmap_nt.obj \
70         $(OUT)\dirpath_mt.obj \
71         $(OUT)\fileutil.obj \
72         $(OUT)\secutil_nt.obj
73
74 $(LIBOBJS): $$(@B).c
75     $(C2OBJ) $**
76
77 $(OUT)\dirpath_mt.obj:dirpath.c
78         $(C2OBJ) $** -DAFS_PTHREAD_ENV
79
80 $(OUT)\serverLog_mt.obj:serverLog.c
81         $(C2OBJ) $** -DAFS_PTHREAD_ENV
82
83 $(LIBFILE): $(LIBOBJS)
84         $(LIBARCH)
85
86 $(MT_LIBFILE): $(MT_LIBOBJS)
87         $(LIBARCH) Rpcrt4.lib
88
89 install_headers: $(INCFILES) 
90
91 install: install_headers $(LIBOBJS) $(LIBFILE) $(MT_LIBFILE)
92
93 clean::
94         $(DEL) $(LIBFILE)
95
96 mkdir:
97