Import Upstream version 1.8.5
[hcoop/debian/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 RELDIR=update
9 !INCLUDE ..\config\NTMakefile.$(SYS_NAME)
10 !INCLUDE ..\config\NTMakefile.version
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\afsrx.lib \
20 $(DESTDIR)\lib\afsubik.lib \
21 $(DESTDIR)\lib\afs\afseventlog.lib \
22 $(DESTDIR)\lib\afsrxkad.lib \
23 $(DESTDIR)\lib\afs\afsprocmgmt.lib \
24 $(DESTDIR)\lib\libafsconf.lib \
25 $(DESTDIR)\lib\afs\afspioctl.lib \
26 $(DESTDIR)\lib\opr.lib \
27 $(DESTDIR)\lib\afshcrypto.lib \
28 $(DESTDIR)\lib\afsroken.lib \
29 $(DESTDIR)\lib\afsrfc3961.lib
30
31 ############################################################################
32 # Definitions for generating files via RXGEN
33
34 update.cs.c: update.xg update.h
35 $(RXGEN) -u -C -o $@ update.xg
36
37 update.ss.c: update.xg update.h
38 $(RXGEN) -S -o $@ update.xg
39
40 update.xdr.c: update.xg update.h
41 $(RXGEN) -c -o $@ update.xg
42
43 update.h: update.xg
44 $(RXGEN) -u -h -o $@ update.xg
45
46 ############################################################################
47 # upserver
48 UPSERVER = $(DESTDIR)\root.server\usr\afs\bin\upserver.exe
49
50 USVR_OBJS = \
51 $(OUT)\AFS_component_version_number.obj \
52 $(OUT)\server.obj \
53 $(OUT)\utils.obj \
54 $(OUT)\update.ss.obj \
55 $(OUT)\upserver.res
56
57 $(UPSERVER): $(USVR_OBJS) $(LIBS)
58 $(EXECONLINK) dnsapi.lib mpr.lib iphlpapi.lib shell32.lib
59 $(_VC_MANIFEST_EMBED_EXE)
60 $(EXEPREP)
61 $(CODESIGN_USERLAND)
62 $(SYMSTORE_IMPORT)
63
64 ############################################################################
65 # upclient
66 UPCLIENT = $(DESTDIR)\root.server\usr\afs\bin\upclient.exe
67
68 UCLNT_OBJS = \
69 $(OUT)\AFS_component_version_number.obj \
70 $(OUT)\client.obj \
71 $(OUT)\utils.obj \
72 $(OUT)\update.cs.obj \
73 $(OUT)\upclient.res
74
75 $(UPCLIENT): $(UCLNT_OBJS) $(LIBS)
76 $(EXECONLINK) dnsapi.lib mpr.lib iphlpapi.lib shell32.lib
77 $(_VC_MANIFEST_EMBED_EXE)
78 $(EXEPREP)
79 $(CODESIGN_USERLAND)
80 $(SYMSTORE_IMPORT)
81
82 ############################################################################
83 # generate versioninfo resources
84
85 $(OUT)\upserver.res: AFS_component_version_number.h
86
87 $(OUT)\upclient.res: AFS_component_version_number.h
88
89 ############################################################################
90 # Install update executables.
91
92 install: update.h $(UPCLIENT) $(UPSERVER)
93
94
95 ############################################################################
96 # Local clean target; augments predefined clean target
97
98 clean::
99 $(DEL) update.cs.c update.ss.c update.xdr.c update.h
100
101 mkdir:
102 copy home $(OUT)\.
103