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