8638c6e6e2f2d948fef44fc1cfef308e58b06250
[openafs.git] / src / procmgmt / 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 = -DPMGTEXPORT=__declspec(dllexport)
9
10 !INCLUDE ..\config\NTMakefile.$(SYS_NAME)
11 !INCLUDE ..\config\NTMakefile.version
12
13 ############################################################################
14
15 INCFILES =\
16         $(DESTDIR)\include\afs\procmgmt.h
17
18 ############################################################################
19 # Build afsprocmgmt.dll
20
21 DLLFILE = $(DESTDIR)\root.server\usr\afs\bin\afsprocmgmt.dll
22 ILIBDIR = $(DESTDIR)\lib\afs
23
24 DLLOBJS =\
25         procmgmt_nt.obj \
26         redirect_nt.obj \
27         afsprocmgmt.res
28
29 DLLLIBS =\
30         $(DESTDIR)\lib\afspthread.lib \
31         $(DESTDIR)\lib\afs\afsutil.lib
32
33 $(DLLFILE): $(DLLOBJS) $(DLLLIBS)
34         $(DLLCONLINK) /DEF:afsprocmgmt.def
35         $(DLLPREP)
36         $(COPY) $*.lib $(ILIBDIR)
37         $(DEL) $*.lib $*.exp
38
39 ############################################################################
40 # Build afskill.exe
41
42 RS_KILL_EXEFILE = $(DESTDIR)\root.server\usr\afs\bin\afskill.exe
43 CL_KILL_EXEFILE = $(DESTDIR)\etc\afskill.exe
44
45 KILL_EXEOBJS =\
46         afskill.obj \
47         afskill.res
48
49 KILL_EXELIBS =\
50         $(DESTDIR)\lib\afs\afsprocmgmt.lib
51
52 $(RS_KILL_EXEFILE): $(KILL_EXEOBJS)     $(KILL_EXELIBS)
53         $(EXECONLINK)
54         $(EXEPREP)
55
56 $(CL_KILL_EXEFILE): $(RS_KILL_EXEFILE)
57         $(COPY) $** $@
58
59 ############################################################################
60 # Definitions for generating versioninfo resources
61
62 afsprocmgmt.res: afsprocmgmt.rc AFS_component_version_number.h
63         $(RC) $*.rc
64
65 afskill.res: afskill.rc AFS_component_version_number.h
66         $(RC) $*.rc
67
68
69 install_headers: $(INCFILES)
70
71 install9x: install_headers
72
73 install: install_headers $(DLLFILE) $(CL_KILL_EXEFILE)
74
75 clean::
76         $(DEL) $(INCFILES)