1 # Copyright 2000, International Business Machines Corporation and others.
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
8 RELDIR=WINNT\client_osi
9 !INCLUDE ..\..\config\NTMakefile.$(SYS_NAME)
10 !INCLUDE ..\..\config\NTMakefile.version
12 ############################################################################
13 # Definitions for installing header files
15 INCFILEDIR = $(DESTDIR)\include # header file install directory
18 $(INCFILEDIR)\dbrpc.h \
19 $(INCFILEDIR)\basic.h \
20 $(INCFILEDIR)\osidebug.h \
21 $(INCFILEDIR)\osiltype.h \
22 $(INCFILEDIR)\osistatl.h \
23 $(INCFILEDIR)\trylock.h \
24 $(INCFILEDIR)\main.h \
25 $(INCFILEDIR)\osibasel.h \
26 $(INCFILEDIR)\osifd.h \
27 $(INCFILEDIR)\osiqueue.h \
28 $(INCFILEDIR)\osiutils.h \
30 $(INCFILEDIR)\osidb.h \
31 $(INCFILEDIR)\osilog.h \
32 $(INCFILEDIR)\osisleep.h \
33 $(INCFILEDIR)\perf.h \
35 $(INCFILEDIR)\osievent.h \
37 $(INCFILEDIR)\osithrdnt.h \
38 $(INCFILEDIR)\largeint.h
40 $(INCFILEDIR)\dbrpc.h: dbrpc.h
42 EXEFILE = $(DESTDIR)\bin\osidebug.exe
48 rpcrt4.lib rpcns4.lib \
50 $(DESTDIR)\lib\libosi.lib
52 ############################################################################
53 # Definitions for building a DLL.
55 DLLFILE = $(DESTDIR)\root.client\usr\vice\etc\libosi.dll
57 ILIBDIR = $(DESTDIR)\lib
76 $(DLLFILE): $(DLLOBJS)
77 $(DLLGUILINK) $(DLLLIBS) -def:libosi.def
78 $(_VC_MANIFEST_EMBED_DLL)
80 $(COPY) $*.lib $(ILIBDIR)
84 ############################################################################
86 OSIEVENTDLL = $(DESTDIR)\root.client\usr\vice\etc\osievent.dll
88 osievent.rc: osievent.mc
91 $(OUT)\osievent.res: osievent.rc
93 $(OUT)\osievent.dll: $(OUT)\osievent.res
94 link -dll -noentry -out:$*.dll $*.res
96 $(OSIEVENTDLL): $(OUT)\osievent.dll
97 $(COPY) osievent.dll $(DESTDIR)\root.client\usr\vice\etc\.
99 ############################################################################
102 $(OUT)\osidebug.res: osidebug.rc
104 $(EXEOBJS) : osidebug.c
106 $(EXEFILE) : $(EXEOBJS)
107 $(EXEGUILINK) $(EXELIBS)
108 $(_VC_MANIFEST_EMBED_EXE)
110 ############################################################################
113 dbrpc.h dbrpc_c.c dbrpc_s.c: dbrpc.idl
114 $(MIDL) $(AFSDEV_AUXMIDLFLAGS) -Zp4 -cpp_cmd $(cc) -cpp_opt "-E" $**
115 ############################################################################
116 # generate versioninfo resources
118 $(OUT)\libosi.res: libosi.rc AFS_component_version_number.h
120 ############################################################################
121 # Install target; primary makefile target
123 install_headers: $(INCFILES)
126 install: $(OSIEVENTDLL) install_headers $(DLLFILE)
128 install: install_headers $(DLLFILE)
131 install_debug: $(OUT)\osidebug.res $(EXEFILE)
135 ############################################################################
136 # Local clean target; augments predefined clean target
139 $(DEL) dbrpc_s.c dbrpc_c.c dbrpc.h $(DLLFILE) $(INCFILES) $(OSIEVENTDLL)
140 $(DEL) $(EXEOBJS) $(EXEFILE) $(OUT)\*.res $(OUT)\*.DLL