Updated chapter 2, sections 1-3 of the Admin Guide
[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\afs\afsauth.lib \
80              $(DESTDIR)\lib\afsrpc.lib \
81              $(DESTDIR)\lib\afsrxkad.lib \
82              $(DESTDIR)\lib\afsubik.lib \
83              $(DESTDIR)\lib\afs\afsutil.lib \
84              $(DESTDIR)\lib\afs\afsusd.lib \
85              $(DESTDIR)\lib\afs\afspioctl.lib \
86              $(DESTDIR)\lib\afs\afscmd.lib \
87              $(DESTDIR)\lib\afs\afscom_err.lib \
88              $(DESTDIR)\lib\afs\afsreg.lib \
89              $(DESTDIR)\lib\afs\afsprocmgmt.lib \
90              $(DESTDIR)\lib\afs\afseventlog.lib \
91 !IF (("$(SYS_NAME)"=="i386_win95" ) || ("$(SYS_NAME)"=="I386_WIN95" ))
92         $(DESTDIR)\lib\win95\afspthread.lib \
93 !ELSE
94         $(DESTDIR)\lib\afspthread.lib \
95 !ENDIF
96              $(DESTDIR)\lib\afsdes.lib \
97              $(DESTDIR)\lib\libafsconf.lib
98
99
100 # rm $(OUT)\tcstatus.obj
101 # nmake /nologo /f ntmakefile install
102 #----------------------------------------------- BUTC
103
104 $(BUTCRES): butc.rc AFS_component_version_number.h
105
106 $(BUTCEXE): $(BUTCOBJS) $(BUTCRES) $(BUTCLIBS)
107         $(EXECONLINK) dnsapi.lib mpr.lib shell32.lib
108         $(_VC_MANIFEST_EMBED_EXE)
109         $(EXEPREP)
110         $(CODESIGN_USERLAND)
111
112 .c.$(OUT)\obj:
113         $(C2OBJ) -I$(BUCOORD) $<
114
115 $(OUT)\dbentries.obj: $(BUTC)/dbentries.c
116         $(C2OBJ) $**
117
118 $(OUT)\tcprocs.obj: $(BUTC)/tcprocs.c
119         $(C2OBJ) $**
120
121 $(OUT)\lwps.obj: $(BUTC)/lwps.c
122         $(C2OBJ) $**
123
124 $(OUT)\tcmain.obj: $(BUTC)/tcmain.c
125         $(C2OBJ) $**
126
127 $(OUT)\list.obj: $(BUTC)/list.c
128         $(C2OBJ) $**
129
130 $(OUT)\recoverDb.obj: $(BUTC)/recoverDb.c
131         $(C2OBJ) $**
132
133 $(OUT)\tcudbprocs.obj: $(BUTC)/tcudbprocs.c
134         $(C2OBJ) $**
135
136 $(OUT)\dump.obj: $(BUTC)/dump.c
137         $(C2OBJ) $**
138
139 $(OUT)\tcstatus.obj: $(BUTC)/tcstatus.c
140         $(C2OBJ) $**
141
142 $(OUT)\butc_xbsa.obj: $(BUTC)/butc_xbsa.c
143         $(C2OBJ) $**
144
145 #----------------------------------------------- BUCOORD
146
147 $(OUT)\ubik_db_if.obj: $(BUCOORD)/ubik_db_if.c
148         $(C2OBJ) -I$(BUCOORD) $**
149
150 #----------------------------------------------- VOLSER
151 # Build the afstvolser.lib library here. The file compiled
152 # for is is vsprocs.c. The rest are from the VOLSER dir.
153
154 $(OUT)\afstvolser.lib: $(VOLSERLIBOBJ)
155         $(LIBARCH)
156
157 $(OUT)\vsprocs.obj: $(VOLSER)/vsprocs.c
158         $(C2OBJ) $**
159
160 #----------------------------------------------- LWP
161
162 $(OUT)\lock.obj: $(LWP)/lock.c
163         $(C2OBJ) $**
164
165 #----------------------------------------------- BUTC
166
167 $(OUT)\file_tm.obj: $(BUTM)/file_tm.c
168         $(C2OBJ) $**
169
170 $(OUT)\afstbutm.lib: $(BUTMOBJS)
171         $(LIBARCH)
172
173 #-----------------------------------------------
174
175 all: $(BUTCEXE) $(BUTMLIBS)
176
177 install: all
178
179 noversion: install
180
181 mkdir:
182         
183 clean::
184         $(DEL) $(BUTCRES)