windows-cell-name-trailing-dot-removal-20081008
[openafs.git] / src / tbutc / 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 AFSDEV_AUXCDEFINES = -DAFS_PTHREAD_ENV -DRXDEBUG -DNOGDI -DWIN32_LEAN_AND_MEAN
9
10 RELDIR=tbutc
11 !INCLUDE ..\config\NTMakefile.$(SYS_NAME)
12 !INCLUDE ..\config\NTMakefile.version
13
14 SRCDIR = ..\butc
15
16 ############################################################################
17 # build tbutc
18
19 BUTCEXE = $(DESTDIR)\etc\butc.exe
20
21 VICED   =..\viced
22 VLSERVER=..\vlserver
23 LWP     =..\lwp
24 LIBACL  =..\libacl
25 UTIL    =..\util
26 DIR     =..\dir
27 VOL     =..\vol
28 FSINT   =..\fsint
29 BUTM    =..\butm
30 BUTC    =..\butc
31 BUCOORD = ..\bucoord
32 VOLSER  = ..\volser
33
34 BUCOORDOBJS = $(OUT)\ubik_db_if.obj \
35     $(OUT)\$(BUCOORD)\volstub.obj \
36     $(OUT)\$(BUCOORD)\dlq.obj \
37         $(OUT)\$(BUCOORD)\status.obj \
38     $(OUT)\$(BUCOORD)\bucoord_errs.obj
39
40 VOLSERLIBOBJ = $(OUT)\$(VOLSER)\volint.cs.obj  \
41                $(OUT)\vsprocs.obj \
42                $(OUT)\$(VOLSER)\vsutils.obj \
43                $(OUT)\$(VOLSER)\lockprocs.obj  \
44                $(OUT)\$(VOLSER)\volint.xdr.obj \
45                $(OUT)\$(VOLSER)\volerr.obj  \
46                $(OUT)\$(VOLSER)\volint.ss.obj  \
47                $(OUT)\AFS_component_version_number.obj 
48 VOLSERLIBS  = $(OUT)\afstvolser.lib
49
50 LWPOBJS     = $(OUT)\lock.obj
51
52 BUTMOBJS    = $(OUT)\file_tm.obj \
53               $(OUT)\AFS_component_version_number.obj
54 BUTMLIBS    = $(OUT)\afstbutm.lib
55 BUTMINCLUDE = -I$(DESTDIR)\include
56
57 BUTCOBJS   = $(OUT)\dbentries.obj \
58          $(OUT)\tcprocs.obj \
59          $(OUT)\lwps.obj \
60          $(OUT)\tcmain.obj \
61          $(OUT)\list.obj \
62          $(OUT)\recoverDb.obj \
63              $(OUT)\tcudbprocs.obj \
64          $(OUT)\dump.obj \
65          $(OUT)\tcstatus.obj \
66          $(OUT)\butc_xbsa.obj \
67          $(LWPOBJS) \
68          $(BUCOORDOBJS)
69
70 BUTCRES = $(OUT)\butc.res
71
72 BUTCINCLUDE= -I. -I$(DESTDIR)\include -I$(XBSADIR)
73 BUTCLIBS=$(DESTDIR)\lib\afs\afsbudb.lib  \
74              $(DESTDIR)\lib\afs\afsbubasics.lib \
75              $(VOLSERLIBS) \
76              $(BUTMLIBS) \
77              $(DESTDIR)\lib\afs\afsvldb.lib \
78              $(DESTDIR)\lib\afs\afskauth.lib \
79              $(DESTDIR)\lib\afsubik.lib \
80              $(DESTDIR)\lib\afs\afsauth.lib \
81              $(DESTDIR)\lib\afsrpc.lib \
82              $(DESTDIR)\lib\afsrxkad.lib \
83              $(DESTDIR)\lib\afslwp.lib \
84              $(DESTDIR)\lib\afs\afsutil.lib \
85              $(DESTDIR)\lib\afs\afsusd.lib \
86              $(DESTDIR)\lib\afs\afspioctl.lib \
87              $(DESTDIR)\lib\afs\afscmd.lib \
88              $(DESTDIR)\lib\afs\afscom_err.lib \
89              $(DESTDIR)\lib\afs\afsreg.lib \
90              $(DESTDIR)\lib\afs\afsprocmgmt.lib \
91              $(DESTDIR)\lib\afs\afseventlog.lib \
92 !IF (("$(SYS_NAME)"=="i386_win95" ) || ("$(SYS_NAME)"=="I386_WIN95" ))
93         $(DESTDIR)\lib\win95\afspthread.lib \
94 !ELSE
95         $(DESTDIR)\lib\afspthread.lib \
96 !ENDIF
97              $(DESTDIR)\lib\afsdes.lib \
98              $(DESTDIR)\lib\cm_dns.obj \
99              $(DESTDIR)\lib\cm_nls.obj
100
101
102 #       $(DESTDIR)\lib\afsauthent.lib \
103 #       $(DESTDIR)\lib\afsrpc.lib \
104 #       $(DESTDIR)\lib\afs\afscmd.lib \
105 #       $(DESTDIR)\lib\afs\afsaudit.lib \
106 #       $(DESTDIR)\lib/afs/afscom_err.lib \
107 #       $(DESTDIR)\lib\afs\afsreg.lib \
108 #       $(DESTDIR)\lib\afs\afsprocmgmt.lib \
109 #       $(DESTDIR)\lib\afs\afseventlog.lib \
110 #       $(DESTDIR)\lib\pthread.lib
111
112 # rm $(OUT)\tcstatus.obj
113 # nmake /nologo /f ntmakefile install
114 #----------------------------------------------- BUTC
115
116 $(BUTCRES): butc.rc AFS_component_version_number.h
117
118 $(BUTCEXE): $(BUTCOBJS) $(BUTCRES) $(BUTCLIBS)
119         $(EXECONLINK) dnsapi.lib mpr.lib shell32.lib
120         $(_VC_MANIFEST_EMBED_EXE)
121         $(EXEPREP)
122         $(CODESIGN_USERLAND)
123
124 .c.$(OUT)\obj:
125         $(C2OBJ) -I$(BUCOORD) $<
126
127 $(OUT)\dbentries.obj: $(BUTC)/dbentries.c
128         $(C2OBJ) $**
129
130 $(OUT)\tcprocs.obj: $(BUTC)/tcprocs.c
131         $(C2OBJ) $**
132
133 $(OUT)\lwps.obj: $(BUTC)/lwps.c
134         $(C2OBJ) $**
135
136 $(OUT)\tcmain.obj: $(BUTC)/tcmain.c
137         $(C2OBJ) $**
138
139 $(OUT)\list.obj: $(BUTC)/list.c
140         $(C2OBJ) $**
141
142 $(OUT)\recoverDb.obj: $(BUTC)/recoverDb.c
143         $(C2OBJ) $**
144
145 $(OUT)\tcudbprocs.obj: $(BUTC)/tcudbprocs.c
146         $(C2OBJ) $**
147
148 $(OUT)\dump.obj: $(BUTC)/dump.c
149         $(C2OBJ) $**
150
151 $(OUT)\tcstatus.obj: $(BUTC)/tcstatus.c
152         $(C2OBJ) $**
153
154 $(OUT)\butc_xbsa.obj: $(BUTC)/butc_xbsa.c
155         $(C2OBJ) $**
156
157 #----------------------------------------------- BUCOORD
158
159 $(OUT)\ubik_db_if.obj: $(BUCOORD)/ubik_db_if.c
160         $(C2OBJ) -I$(BUCOORD) $**
161
162 #----------------------------------------------- VOLSER
163 # Build the afstvolser.lib library here. The file compiled
164 # for is is vsprocs.c. The rest are from the VOLSER dir.
165
166 $(OUT)\afstvolser.lib: $(VOLSERLIBOBJ)
167         $(LIBARCH)
168
169 $(OUT)\vsprocs.obj: $(VOLSER)/vsprocs.c
170         $(C2OBJ) $**
171
172 #----------------------------------------------- LWP
173
174 $(OUT)\lock.obj: $(LWP)/lock.c
175         $(C2OBJ) $**
176
177 #----------------------------------------------- BUTC
178
179 $(OUT)\file_tm.obj: $(BUTM)/file_tm.c
180         $(C2OBJ) $**
181
182 $(OUT)\afstbutm.lib: $(BUTMOBJS)
183         $(LIBARCH)
184
185 #-----------------------------------------------
186
187 all: $(BUTCEXE) $(BUTMLIBS)
188
189 install: all
190
191 noversion: install
192
193 mkdir:
194         
195 clean::
196         $(DEL) $(BUTCRES)