backport to buster
[hcoop/debian/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 $(INCFILEDIR)\tabular_output.h
30
31 $(DESTDIR)\include\dirent.h: dirent_nt.h
32 $(COPY) $** $@
33
34 $(DESTDIR)\include\afs\dirpath.h: dirpath_nt.h
35 $(COPY) $** $@
36
37 LIBFILE = $(DESTDIR)\lib\afs\afsutil.lib
38
39 MT_LIBFILE = $(DESTDIR)\lib\afs\mtafsutil.lib
40
41 LIBOBJS = \
42 $(OUT)\base32.obj \
43 $(OUT)\hostparse.obj \
44 $(OUT)\krb5_nt.obj \
45 $(OUT)\kreltime.obj \
46 $(OUT)\ktime.obj \
47 $(OUT)\regex.obj \
48 $(OUT)\readdir_nt.obj \
49 $(OUT)\serverLog.obj \
50 $(OUT)\uuid.obj \
51 $(OUT)\volparse.obj \
52 $(OUT)\winsock_nt.obj \
53 $(OUT)\errmap_nt.obj \
54 $(OUT)\dirpath.obj \
55 $(OUT)\fileutil.obj \
56 $(OUT)\secutil_nt.obj \
57 $(OUT)\tabular_output.obj
58
59 MT_LIBOBJS = \
60 $(OUT)\base32.obj \
61 $(OUT)\hostparse.obj \
62 $(OUT)\krb5_nt.obj \
63 $(OUT)\kreltime.obj \
64 $(OUT)\ktime.obj \
65 $(OUT)\regex.obj \
66 $(OUT)\readdir_nt.obj \
67 $(OUT)\serverLog_mt.obj \
68 $(OUT)\uuid.obj \
69 $(OUT)\volparse.obj \
70 $(OUT)\winsock_nt.obj \
71 $(OUT)\errmap_nt.obj \
72 $(OUT)\dirpath_mt.obj \
73 $(OUT)\fileutil.obj \
74 $(OUT)\secutil_nt.obj \
75 $(OUT)\tabular_output.obj
76
77 $(LIBOBJS): $$(@B).c
78 $(C2OBJ) $**
79
80 $(OUT)\dirpath_mt.obj:dirpath.c
81 $(C2OBJ) $** -DAFS_PTHREAD_ENV
82
83 $(OUT)\serverLog_mt.obj:serverLog.c
84 $(C2OBJ) $** -DAFS_PTHREAD_ENV
85
86 $(LIBFILE): $(LIBOBJS)
87 $(LIBARCH)
88
89 $(MT_LIBFILE): $(MT_LIBOBJS)
90 $(LIBARCH) Rpcrt4.lib
91
92 install_headers: $(INCFILES)
93
94 install: install_headers $(LIBOBJS) $(LIBFILE) $(MT_LIBFILE)
95
96 clean::
97 $(DEL) $(LIBFILE)
98
99 mkdir:
100