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