Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / src / bucoord / 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=bucoord
9 AFSDEV_AUXCDEFINES = $(AFSDEV_AUXCDEFINES) -DNOGDI -DWIN32_LEAN_AND_MEAN
10 !INCLUDE ..\config\NTMakefile.$(SYS_NAME)
11 !INCLUDE ..\config\NTMakefile.version
12
13 #########################################################################
14 # install local include file
15 INCFILES = \
16 $(DESTDIR)\include\afs\bc.h \
17 $(DESTDIR)\include\afs\bucoord_prototypes.h
18
19 $(DESTDIR)\include\afs\bc.h: bc.h
20
21 ############################################################################
22 # build afsbxdb.lib
23
24 LIBFILE = $(DESTDIR)\lib\afs\afsbxdb.lib
25
26 LIBOBJS =\
27 $(OUT)/dsstub.obj \
28 $(OUT)/ubik_db_if.obj \
29 $(OUT)/status.obj \
30 $(OUT)/dlq.obj \
31 $(OUT)/bucoord_errs.obj \
32 $(OUT)/volstub.obj \
33 $(OUT)/AFS_component_version_number.obj
34
35 $(LIBFILE): $(LIBOBJS)
36 $(LIBARCH)
37
38
39 ############################################################################
40 # build backup
41
42 EXEFILE = $(DESTDIR)\etc\backup.exe
43
44 EXERES = $(OUT)/backup.res
45
46 EXEOBJS =\
47 $(OUT)\main.obj \
48 $(OUT)\config.obj \
49 $(OUT)\dsstub.obj \
50 $(OUT)\volstub.obj \
51 $(OUT)\commands.obj \
52 $(OUT)\server.obj \
53 $(OUT)\dsvs.obj \
54 $(OUT)\dump.obj \
55 $(OUT)\restore.obj \
56 $(OUT)\ubik_db_if.obj \
57 $(OUT)\dump_sched.obj \
58 $(OUT)\vol_sets.obj \
59 $(OUT)\tape_hosts.obj \
60 $(OUT)\bucoord_errs.obj \
61 $(OUT)\bc_status.obj \
62 $(OUT)\status.obj \
63 $(OUT)\dlq.obj \
64
65
66 $(EXERES): backup.rc AFS_component_version_number.h
67
68 $(EXEOBJS):$$(@B).c
69 $(C2OBJ) $**
70
71 EXELIBS =\
72 $(DESTDIR)\lib\afs\afsbudb.lib \
73 $(DESTDIR)\lib\afs\afsbxdb.lib \
74 $(DESTDIR)\lib\afs\afsbubasics.lib \
75 $(DESTDIR)\lib\afs\afsbutm.lib \
76 $(DESTDIR)\lib\afs\afsvolser.lib \
77 $(DESTDIR)\lib\afs\afsvldb.lib \
78 $(DESTDIR)\lib\afs\afsacl.lib \
79 $(DESTDIR)\lib\afs\afsprot.lib \
80 $(DESTDIR)\lib\afs\afskauth.lib \
81 $(DESTDIR)\lib\afsubik.lib \
82 $(DESTDIR)\lib\afs\afsauth.lib \
83 $(DESTDIR)\lib\afsrxkad.lib \
84 $(DESTDIR)\lib\afsrx.lib \
85 $(DESTDIR)\lib\afslwp.lib \
86 $(DESTDIR)\lib\afs\afscmd.lib \
87 $(DESTDIR)\lib\afs\afscom_err.lib \
88 $(DESTDIR)\lib\afs\afsutil.lib \
89 $(DESTDIR)\lib\afs\afsusd.lib \
90 $(DESTDIR)\lib\afs\afsprocmgmt.lib \
91 $(DESTDIR)\lib\afs\afspioctl.lib \
92 $(DESTDIR)\lib\afs\afsreg.lib \
93 $(DESTDIR)\lib\libafsconf.lib \
94 $(DESTDIR)\lib\opr.lib \
95 $(DESTDIR)\lib\afshcrypto.lib \
96 $(DESTDIR)\lib\afsroken.lib \
97 $(DESTDIR)\lib\afsrfc3961.lib
98
99
100 $(EXEFILE): $(EXEOBJS) $(EXERES) $(EXELIBS)
101 $(EXECONLINK) dnsapi.lib mpr.lib iphlpapi.lib shell32.lib
102 $(_VC_MANIFEST_EMBED_EXE)
103 $(EXEPREP)
104 $(CODESIGN_USERLAND)
105 $(SYMSTORE_IMPORT)
106
107
108 ############################################################################
109 # compile_et to get bc.h
110
111 bucoord_errs.c bc.h: bucoord_errs.et bc.p.h
112 $(DEL) bucoord_errs.c bc.h
113 $(COMPILE_ET) bucoord_errs -h bc
114
115 ############################################################################
116 # Definitions for generating versioninfo resources
117
118 $(OUT)/backup.res: AFS_component_version_number.h
119
120 ############################################################################
121 # Install
122
123 install: $(INCFILES) $(LIBFILE) $(EXEFILE)
124
125
126 ############################################################################
127 # Local clean target; augments predefined clean target
128
129 clean::
130 $(DEL) $(INCFILES)
131 $(DEL) $(LIBFILE)
132 $(DEL) $(EXEFILE)
133 $(DEL) bc.h bucoord_errs.c
134 $(DEL) $(EXERES)
135 $(DEL) AFS_component_version_number.h
136
137
138 mkdir:
139