Windows: remove install9x rules
[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)\netutils.h \
21         $(INCFILEDIR)\pthread_glock.h \
22         $(INCFILEDIR)\pthread_nosigs.h \
23         $(INCFILEDIR)\errmap_nt.h \
24         $(INCFILEDIR)\dirpath.h \
25         $(INCFILEDIR)\krb5_nt.h \
26         $(INCFILEDIR)\ktime.h \
27         $(INCFILEDIR)\fileutil.h \
28         $(INCFILEDIR)\afsutil_prototypes.h \
29         $(INCFILEDIR)\secutil_nt.h \
30         $(INCFILEDIR)\softsig.h
31
32 $(DESTDIR)\include\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 MT_LIBFILE = $(DESTDIR)\lib\afs\mtafsutil.lib
41
42 LIBOBJS = \
43         $(OUT)\base32.obj \
44         $(OUT)\get_krbrlm.obj \
45         $(OUT)\hostparse.obj \
46         $(OUT)\krb5_nt.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)\uuid.obj \
54         $(OUT)\volparse.obj \
55         $(OUT)\winsock_nt.obj \
56         $(OUT)\errmap_nt.obj \
57         $(OUT)\dirpath.obj \
58         $(OUT)\fileutil.obj \
59         $(OUT)\secutil_nt.obj
60
61 MT_LIBOBJS = \
62         $(OUT)\base32.obj \
63         $(OUT)\get_krbrlm.obj \
64         $(OUT)\hostparse.obj \
65         $(OUT)\krb5_nt.obj \
66         $(OUT)\kreltime.obj \
67         $(OUT)\ktime.obj \
68         $(OUT)\netutils.obj \
69         $(OUT)\regex.obj \
70         $(OUT)\readdir_nt.obj \
71         $(OUT)\serverLog_mt.obj \
72         $(OUT)\uuid.obj \
73         $(OUT)\volparse.obj \
74         $(OUT)\winsock_nt.obj \
75         $(OUT)\errmap_nt.obj \
76         $(OUT)\dirpath_mt.obj \
77         $(OUT)\fileutil.obj \
78         $(OUT)\secutil_nt.obj
79
80 $(LIBOBJS): $$(@B).c
81     $(C2OBJ) $**
82
83 $(OUT)\dirpath_mt.obj:dirpath.c
84         $(C2OBJ) $** -DAFS_PTHREAD_ENV
85
86 $(OUT)\serverLog_mt.obj:serverLog.c
87         $(C2OBJ) $** -DAFS_PTHREAD_ENV
88
89 $(LIBFILE): $(LIBOBJS)
90         $(LIBARCH)
91
92 $(MT_LIBFILE): $(MT_LIBOBJS)
93         $(LIBARCH) Rpcrt4.lib
94
95 install_headers: $(INCFILES) 
96
97 install: install_headers $(LIBOBJS) $(LIBFILE) $(MT_LIBFILE)
98
99 clean::
100         $(DEL) $(LIBFILE)
101
102 mkdir:
103