33c7650f3a35fabeaf58ecf0640027ed69aa62c4
[openafs.git] / src / WINNT / client_osi / 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
9 !INCLUDE ..\..\config\NTMakefile.$(SYS_NAME)
10 !INCLUDE ..\..\config\NTMakefile.version
11
12
13 ############################################################################
14 # Definitions for installing header files
15
16 INCFILEDIR = $(DESTDIR)\include  # header file install directory
17
18 INCFILES =\
19         $(INCFILEDIR)\dbrpc.h \
20         $(INCFILEDIR)\basic.h   \
21         $(INCFILEDIR)\osidebug.h  \
22         $(INCFILEDIR)\osiltype.h \
23         $(INCFILEDIR)\osistatl.h \
24         $(INCFILEDIR)\trylock.h \
25         $(INCFILEDIR)\main.h \
26         $(INCFILEDIR)\osibasel.h \
27         $(INCFILEDIR)\osifd.h  \
28         $(INCFILEDIR)\osiqueue.h \
29         $(INCFILEDIR)\osiutils.h \
30         $(INCFILEDIR)\osi.h \
31         $(INCFILEDIR)\osidb.h \
32         $(INCFILEDIR)\osilog.h \
33         $(INCFILEDIR)\osisleep.h \
34         $(INCFILEDIR)\perf.h \
35      $(INCFILEDIR)\osithrdnt.h
36
37
38 $(INCFILEDIR)\dbrpc.h: dbrpc.h
39
40 ############################################################################
41 # Definitions for building a DLL.
42
43 DLLFILE = $(DESTDIR)\root.client\usr\vice\etc\libosi.dll
44
45 ILIBDIR = $(DESTDIR)\lib
46
47 DLLOBJS =\
48         dbrpc_s.obj \
49         osistatl.obj \
50         osibasel.obj \
51         osisleep.obj \
52         osiqueue.obj \
53         osiltype.obj \
54         osidb.obj \
55         osifd.obj \
56         osilog.obj \
57         osiutils.obj \
58         libosi.res
59
60 DLLLIBS =\
61         rpcndr.lib \
62         rpcrt4.lib \
63         rpcns4.lib \
64         largeint.lib
65
66 $(DLLFILE): $(DLLOBJS) 
67         $(DLLGUILINK) $(DLLLIBS) -def:libosi.def
68         $(DLLPREP)
69         $(COPY) $*.lib $(ILIBDIR)
70         $(DEL) $*.lib $*.exp
71
72
73 ############################################################################
74 # midl on dbrpc.idl
75
76 dbrpc.h dbrpc_c.c dbrpc_s.c: dbrpc.idl
77         $(MIDL) -Zp4 -cpp_cmd $(cc) -cpp_opt "-E" dbrpc.idl
78
79 ############################################################################
80 # generate versioninfo resources
81
82 libosi.res: libosi.rc AFS_component_version_number.h
83
84 ############################################################################
85 # Install target; primary makefile target
86
87 install_headers: $(INCFILES)
88
89 install: install_headers $(DLLFILE)
90
91 install9x: install
92
93 ############################################################################
94 # Local clean target; augments predefined clean target
95
96 clean::
97         $(DEL) dbrpc_s.c dbrpc_c.c dbrpc.h $(DLLFILE) $(INCFILES)
98