9855c61508c59a33b56d8f160061508fd54d80ca
[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         $(INCFILEDIR)\afsutil.h \
19         $(INCFILEDIR)\afs_assert.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\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)\uuid.obj \
61         $(OUT)\volparse.obj \
62         $(OUT)\winsock_nt.obj \
63         $(OUT)\errmap_nt.obj \
64         $(OUT)\dirpath.obj \
65         $(OUT)\fileutil.obj \
66         $(OUT)\secutil_nt.obj
67
68 MT_LIBOBJS = \
69         $(OUT)\assert.obj \
70         $(OUT)\base32.obj \
71         $(OUT)\casestrcpy.obj \
72         $(OUT)\get_krbrlm.obj \
73         $(OUT)\hostparse.obj \
74         $(OUT)\isathing.obj \
75         $(OUT)\krb5_nt.obj \
76         $(OUT)\kreltime.obj \
77         $(OUT)\ktime.obj \
78         $(OUT)\netutils.obj \
79         $(OUT)\regex.obj \
80         $(OUT)\readdir_nt.obj \
81         $(OUT)\serverLog_mt.obj \
82         $(OUT)\snprintf.obj \
83         $(OUT)\uuid.obj \
84         $(OUT)\volparse.obj \
85         $(OUT)\winsock_nt.obj \
86         $(OUT)\errmap_nt.obj \
87         $(OUT)\dirpath_mt.obj \
88         $(OUT)\fileutil.obj \
89         $(OUT)\secutil_nt.obj
90
91 $(LIBOBJS): $$(@B).c
92     $(C2OBJ) $**
93
94 $(OUT)\dirpath_mt.obj:dirpath.c
95         $(C2OBJ) $** -DAFS_PTHREAD_ENV
96
97 $(OUT)\serverLog_mt.obj:serverLog.c
98         $(C2OBJ) $** -DAFS_PTHREAD_ENV
99
100 $(LIBFILE): $(LIBOBJS)
101         $(LIBARCH)
102
103 $(MT_LIBFILE): $(MT_LIBOBJS)
104         $(LIBARCH) Rpcrt4.lib
105
106 install_headers: $(INCFILES) 
107
108 install: install_headers $(LIBOBJS) $(LIBFILE) $(MT_LIBFILE)
109
110 install9x: install
111
112 clean::
113         $(DEL) $(LIBFILE)
114
115 mkdir:
116