3f463da96529c1254108a8ec41d91ec1f588d1d8
[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         $(INCFILEDIR)\afsutil.h \
18         $(INCFILEDIR)\assert.h \
19         $(INCFILEDIR)\dirent.h \
20         $(INCFILEDIR)\errors.h \
21         $(INCFILEDIR)\itc.h \
22         $(INCFILEDIR)\vice.h \
23         $(INCFILEDIR)\netutils.h \
24         $(INCFILEDIR)\pthread_glock.h \
25         $(INCFILEDIR)\pthread_nosigs.h \
26         $(INCFILEDIR)\errmap_nt.h \
27         $(INCFILEDIR)\dirpath.h \
28         $(INCFILEDIR)\krb5_nt.h \
29         $(INCFILEDIR)\ktime.h \
30         $(INCFILEDIR)\fileutil.h \
31         $(INCFILEDIR)\afsutil_prototypes.h \
32         $(INCFILEDIR)\secutil_nt.h \
33         $(INCFILEDIR)\softsig.h
34
35 $(DESTDIR)\include\afs\dirent.h: dirent_nt.h
36         $(COPY) $** $@
37
38 $(DESTDIR)\include\afs\dirpath.h: dirpath_nt.h
39         $(COPY) $** $@
40
41 LIBFILE = $(DESTDIR)\lib\afs\afsutil.lib
42
43 MT_LIBFILE = $(DESTDIR)\lib\afs\mtafsutil.lib
44
45 LIBOBJS = \
46         $(OUT)\assert.obj \
47         $(OUT)\base32.obj \
48         $(OUT)\casestrcpy.obj \
49         $(OUT)\get_krbrlm.obj \
50         $(OUT)\hostparse.obj \
51         $(OUT)\isathing.obj \
52         $(OUT)\krb5_nt.obj \
53         $(OUT)\kreltime.obj \
54         $(OUT)\ktime.obj \
55         $(OUT)\netutils.obj \
56         $(OUT)\regex.obj \
57         $(OUT)\readdir_nt.obj \
58         $(OUT)\serverLog.obj \
59         $(OUT)\snprintf.obj \
60         $(OUT)\strlcat.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)\strnlen.obj \
67         $(OUT)\strlcpy.obj \
68         $(OUT)\fileutil.obj \
69         $(OUT)\secutil_nt.obj
70
71 MT_LIBOBJS = \
72         $(OUT)\assert.obj \
73         $(OUT)\base32.obj \
74         $(OUT)\casestrcpy.obj \
75         $(OUT)\get_krbrlm.obj \
76         $(OUT)\hostparse.obj \
77         $(OUT)\isathing.obj \
78         $(OUT)\krb5_nt.obj \
79         $(OUT)\kreltime.obj \
80         $(OUT)\ktime.obj \
81         $(OUT)\netutils.obj \
82         $(OUT)\regex.obj \
83         $(OUT)\readdir_nt.obj \
84         $(OUT)\serverLog_mt.obj \
85         $(OUT)\snprintf.obj \
86         $(OUT)\strlcat.obj \
87         $(OUT)\uuid.obj \
88         $(OUT)\volparse.obj \
89         $(OUT)\winsock_nt.obj \
90         $(OUT)\errmap_nt.obj \
91         $(OUT)\dirpath_mt.obj \
92         $(OUT)\strnlen.obj \
93         $(OUT)\strlcpy.obj \
94         $(OUT)\fileutil.obj \
95         $(OUT)\secutil_nt.obj
96
97 $(LIBOBJS): $$(@B).c
98     $(C2OBJ) $**
99
100 $(OUT)\dirpath_mt.obj:dirpath.c
101         $(C2OBJ) $** -DAFS_PTHREAD_ENV
102
103 $(OUT)\serverLog_mt.obj:serverLog.c
104         $(C2OBJ) $** -DAFS_PTHREAD_ENV
105
106 $(LIBFILE): $(LIBOBJS)
107         $(LIBARCH)
108
109 $(MT_LIBFILE): $(MT_LIBOBJS)
110         $(LIBARCH) Rpcrt4.lib
111
112 install_headers: $(INCFILES) 
113
114 install: install_headers $(LIBOBJS) $(LIBFILE) $(MT_LIBFILE)
115
116 install9x: install
117
118 clean::
119         $(DEL) $(LIBFILE)
120
121 mkdir:
122