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
50 Ws2_32.lib shell32.lib \
51 $(DESTDIR)\lib\libosi.lib
53 ############################################################################
54 # Definitions for building a DLL.
56 DLLFILE = $(DESTDIR)\root.client\usr\vice\etc\libosi.dll
58 ILIBDIR = $(DESTDIR)\lib
61 $(OUT)\dbrpc_$(CPU)_s.obj \
77 $(DLLFILE): $(DLLOBJS)
78 $(DLLGUILINK) $(DLLLIBS) -def:libosi.def
79 $(_VC_MANIFEST_EMBED_DLL)
83 $(MAKECYGLIB) --input-def libosi.def
84 $(COPY) $*.lib $(ILIBDIR)
88 ############################################################################
90 OSIEVENTDLL = $(DESTDIR)\root.client\usr\vice\etc\osievent.dll
92 osievent.rc: osievent.mc
95 $(OUT)\osievent.res: osievent.rc
97 $(OUT)\osievent.dll: $(OUT)\osievent.res
98 link -dll -noentry -out:$*.dll $*.res
100 $(OSIEVENTDLL): $(OUT)\osievent.dll
101 $(COPY) osievent.dll $(DESTDIR)\root.client\usr\vice\etc\.
103 ############################################################################
106 $(OUT)\osidebug.res: osidebug.rc
108 $(EXEOBJS) : osidebug.c
110 $(EXEFILE) : $(EXEOBJS)
111 $(EXEGUILINK) $(EXELIBS)
112 $(_VC_MANIFEST_EMBED_EXE)
116 ############################################################################
119 dbrpc.h dbrpc_$(CPU)_c.c dbrpc_$(CPU)_s.c: dbrpc.idl
120 $(MIDL) $(AFSDEV_AUXMIDLFLAGS) -cstub dbrpc_$(CPU)_c.c -sstub dbrpc_$(CPU)_s.c -Zp4 -cpp_cmd $(cc) -cpp_opt "-E" $**
121 ############################################################################
122 # generate versioninfo resources
124 $(OUT)\libosi.res: libosi.rc AFS_component_version_number.h
126 ############################################################################
127 # Install target; primary makefile target
129 install_headers: $(INCFILES)
132 install: $(OSIEVENTDLL) install_headers $(DLLFILE)
134 install: install_headers $(DLLFILE)
137 install_debug: $(OUT)\osidebug.res $(EXEFILE)
139 ############################################################################
140 # Local clean target; augments predefined clean target
143 $(DEL) dbrpc_$(CPU)_s.c dbrpc_$(CPU)_c.c dbrpc.h $(DLLFILE) $(INCFILES) $(OSIEVENTDLL)
144 $(DEL) $(EXEOBJS) $(EXEFILE) $(OUT)\*.res $(OUT)\*.DLL