windows-build-updates-20030314
[openafs.git] / src / update / 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 !INCLUDE ..\config\NTMakefile.$(SYS_NAME)
9 !INCLUDE ..\config\NTMakefile.version
10
11
12 LIBS = \
13         $(DESTDIR)\lib\afs\afsauth.lib \
14         $(DESTDIR)\lib\afs\afsauth.lib \
15         $(DESTDIR)\lib\afs\afscom_err.lib \
16         $(DESTDIR)\lib\afs\afsutil.lib \
17         $(DESTDIR)\lib\afs\afsreg.lib \
18         $(DESTDIR)\lib\afslwp.lib \
19         $(DESTDIR)\lib\afsdes.lib \
20         $(DESTDIR)\lib\afsrx.lib \
21         $(DESTDIR)\lib\afsubik.lib \
22         $(DESTDIR)\lib\afs\afseventlog.lib \
23         $(DESTDIR)\lib\afsrxkad.lib \
24         $(DESTDIR)\lib\afs\afsprocmgmt.lib \
25         $(DESTDIR)\lib\cm_dns.obj
26
27 ############################################################################
28 # Definitions for generating files via RXGEN
29
30 update.cs.c update.ss.c update.er.c update.h: update.xg
31         $(RXGEN) $**
32
33 ############################################################################
34 # upserver
35 UPSERVER = $(DESTDIR)\root.server\usr\afs\bin\upserver.exe
36
37 USVR_OBJS = \
38         $(OJT)\AFS_component_version_number.obj \
39         $(OJT)\server.obj \
40         $(OJT)\utils.obj \
41         $(OJT)\update.ss.obj \
42         $(OJT)\upserver.res
43
44 $(UPSERVER):  $(USVR_OBJS) $(LIBS)
45         $(EXECONLINK)
46         $(EXEPREP) 
47
48 ############################################################################
49 # upclient
50 UPCLIENT = $(DESTDIR)\root.server\usr\afs\bin\upclient.exe
51
52 UCLNT_OBJS = \
53         $(OJT)\AFS_component_version_number.obj \
54         $(OJT)\client.obj \
55         $(OJT)\utils.obj \
56         $(OJT)\update.cs.obj \
57         $(OJT)\upclient.res
58
59 $(UPCLIENT):  $(UCLNT_OBJS)  $(LIBS)
60         $(EXECONLINK)
61         $(EXEPREP) 
62
63 ############################################################################
64 # generate versioninfo resources
65
66 $(OJT)\upserver.res: AFS_component_version_number.h
67
68 $(OJT)\upclient.res: AFS_component_version_number.h
69
70 ############################################################################
71 # Install update executables.
72
73 install: update.h $(UPCLIENT) $(UPSERVER)
74
75
76 ############################################################################
77 # Local clean target; augments predefined clean target
78
79 clean::
80         $(DEL) update.cs.c update.ss.c update.xdr.c update.h
81
82 mkdir:
83          copy home $(OJT)\.
84