f41a3d908ffd5b97dbeb7bbb987600491a72c0af
[openafs.git] / src / libadmin / bos / 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 AFSDEV_AUXCDEFINES = -DAFS_PTHREAD_ENV
9
10 !include ..\..\config\NTMakefile.$(SYS_NAME)
11 !include ..\..\config\NTMakefile.version
12
13
14 BOZO = ..\..\bozo\
15
16 BOZOOBJS = \
17         bosint.xdr.obj bosint.cs.obj
18
19 ADMINOBJS = \
20         afs_bosAdmin.obj
21
22 DLLOBJS =\
23         $(ADMINOBJS) \
24         $(BOZOOBJS) \
25         afsbosadmin.res
26
27 LIBINCLUDES = \
28         $(DESTDIR)\include\afs\afs_bosAdmin.h
29
30 DLLFILE = $(DESTDIR)\root.server\usr\afs\bin\afsbosadmin.dll
31 ILIBDIR = $(DESTDIR)\lib\afs
32
33 DLLLIBS =\
34         $(DESTDIR)\lib\afs\afsadminutil.lib \
35         $(DESTDIR)\lib\afs\afsvosadmin.lib \
36         $(DESTDIR)\lib\afsauthent.lib \
37         $(DESTDIR)\lib\afsrpc.lib \
38         $(DESTDIR)\lib\afspthread.lib
39
40 $(DLLFILE): $(DLLOBJS) $(DLLLIBS)
41         $(DLLCONLINK) /DEF:bosadmin.def
42         $(DLLPREP)
43         $(COPY) $*.lib $(ILIBDIR)
44         $(DEL) $*.lib $*.exp
45
46
47 install: $(DLLFILE) $(LIBINCLUDES)
48
49
50 bosint.xdr.obj: $(BOZO)\bosint.xdr.c
51         $(C2OBJ) $(BOZO)\bosint.xdr.c
52
53 bosint.cs.obj: $(BOZO)\bosint.cs.c
54         $(C2OBJ) $(BOZO)\bosint.cs.c
55
56 # Definitions for generating versioninfo resources
57 afsbosadmin.res: afsbosadmin.rc AFS_component_version_number.h
58         $(RC) $*.rc