Move string manipulation functions out of util
[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         
98
99 $(EXEFILE): $(EXEOBJS) $(EXERES) $(EXELIBS)
100         $(EXECONLINK) dnsapi.lib mpr.lib iphlpapi.lib shell32.lib
101         $(_VC_MANIFEST_EMBED_EXE)
102         $(EXEPREP)
103         $(CODESIGN_USERLAND)
104         $(SYMSTORE_IMPORT)
105
106
107 ############################################################################
108 # compile_et to get bc.h
109
110 bucoord_errs.c bc.h:    bucoord_errs.et bc.p.h
111         $(DEL) bucoord_errs.c bc.h
112         $(COMPILE_ET) bucoord_errs -h bc
113
114 ############################################################################
115 # Definitions for generating versioninfo resources
116
117 $(OUT)/backup.res: AFS_component_version_number.h
118
119 ############################################################################
120 # Install 
121
122 install: $(INCFILES) $(LIBFILE) $(EXEFILE)
123
124
125 ############################################################################
126 # Local clean target; augments predefined clean target
127
128 clean::
129         $(DEL) $(INCFILES)
130         $(DEL) $(LIBFILE)
131         $(DEL) $(EXEFILE)
132         $(DEL) bc.h bucoord_errs.c
133         $(DEL) $(EXERES)
134         $(DEL) AFS_component_version_number.h
135
136
137 mkdir:
138