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
9 !INCLUDE ..\..\config\NTMakefile.$(SYS_NAME)
10 !INCLUDE ..\..\config\NTMakefile.version
13 ############################################################################
14 # Definitions for installing header files
16 INCFILEDIR = $(DESTDIR)\include # header file install directory
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 \
31 $(INCFILEDIR)\osidb.h \
32 $(INCFILEDIR)\osilog.h \
33 $(INCFILEDIR)\osisleep.h \
34 $(INCFILEDIR)\perf.h \
36 $(INCFILEDIR)\osievent.h \
38 $(INCFILEDIR)\osithrdnt.h
40 $(INCFILEDIR)\dbrpc.h: dbrpc.h
42 EXEFILE = $(DESTDIR)\bin\osidebug.exe
48 rpcndr.lib 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
78 $(DLLFILE): $(DLLOBJS)
79 $(DLLGUILINK) $(DLLLIBS) -def:libosi.def
81 $(COPY) $*.lib $(ILIBDIR)
85 ############################################################################
87 OSIEVENTDLL = $(DESTDIR)\root.client\usr\vice\etc\osievent.dll
89 osievent.rc: osievent.mc
92 $(OJT)\osievent.res: osievent.rc
94 $(OJT)\osievent.dll: $(OJT)\osievent.res
95 link -dll -noentry -out:$*.dll $*.res
97 $(OSIEVENTDLL): $(OJT)\osievent.dll
98 $(COPY) osievent.dll $(DESTDIR)\root.client\usr\vice\etc\.
100 ############################################################################
103 $(OJT)\osidebug.res: osidebug.rc
105 $(EXEOBJS) : osidebug.c
107 $(EXEFILE) : $(EXEOBJS)
108 $(EXEGUILINK) $(EXELIBS)
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 $(OJT)\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: $(OJT)\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) $(OJT)\*.res $(OJT)\*.DLL