cdcbf79be1b79b1ff048e47ce8f7262dd830941e
[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         $(INCFILEDIR)\afsutil.h \
17         $(INCFILEDIR)\assert.h \
18         $(INCFILEDIR)\dirent.h \
19         $(INCFILEDIR)\errors.h \
20         $(INCFILEDIR)\itc.h \
21         $(INCFILEDIR)\vice.h \
22         $(INCFILEDIR)\netutils.h \
23         $(INCFILEDIR)\pthread_glock.h \
24         $(INCFILEDIR)\pthread_nosigs.h \
25         $(INCFILEDIR)\errmap_nt.h \
26         $(INCFILEDIR)\dirpath.h \
27         $(INCFILEDIR)\ktime.h \
28         $(INCFILEDIR)\fileutil.h \
29         $(INCFILEDIR)\afsutil_prototypes.h \
30         $(INCFILEDIR)\secutil_nt.h
31
32 $(DESTDIR)\include\afs\dirent.h: dirent_nt.h
33         $(COPY) $** $@
34
35 $(DESTDIR)\include\afs\dirpath.h: dirpath_nt.h
36         $(COPY) $** $@
37
38 LIBFILE = $(DESTDIR)\lib\afs\afsutil.lib
39
40 LIBOBJS = \
41         $(OUT)\assert.obj \
42         $(OUT)\base32.obj \
43         $(OUT)\casestrcpy.obj \
44         $(OUT)\get_krbrlm.obj \
45         $(OUT)\hostparse.obj \
46         $(OUT)\isathing.obj \
47         $(OUT)\kreltime.obj \
48         $(OUT)\ktime.obj \
49         $(OUT)\netutils.obj \
50         $(OUT)\regex.obj \
51         $(OUT)\readdir_nt.obj \
52         $(OUT)\serverLog.obj \
53         $(OUT)\snprintf.obj \
54         $(OUT)\strlcat.obj \
55         $(OUT)\uuid.obj \
56         $(OUT)\volparse.obj \
57         $(OUT)\winsock_nt.obj \
58         $(OUT)\errmap_nt.obj \
59         $(OUT)\dirpath.obj \
60         $(OUT)\strnlen.obj \
61         $(OUT)\strlcpy.obj \
62         $(OUT)\fileutil.obj \
63         $(OUT)\secutil_nt.obj
64
65 $(LIBOBJS): $$(@B).c
66     $(C2OBJ) $**
67
68 $(LIBFILE): $(LIBOBJS)
69         $(LIBARCH)
70
71 install: $(INCFILES) $(LIBOBJS) $(LIBFILE)
72
73 install9x: install
74
75 clean::
76         $(DEL) $(LIBFILE)
77
78 mkdir:
79