6efbdbe80f33eac46ac91eae74130aaf9786ac3f
[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
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 BUTCINCLUDE= -I. -I$(DESTDIR)\include -I$(XBSADIR)
70 BUTCLIBS=$(DESTDIR)\lib\afs\afsbudb.lib  \
71              $(DESTDIR)\lib\afs\afsbubasics.lib \
72              $(VOLSERLIBS) \
73              $(BUTMLIBS) \
74              $(DESTDIR)\lib\afs\afsvldb.lib \
75              $(DESTDIR)\lib\afs\afskauth.lib \
76              $(DESTDIR)\lib\afsubik.lib \
77              $(DESTDIR)\lib\afs\afsauth.lib \
78              $(DESTDIR)\lib\afsrpc.lib \
79              $(DESTDIR)\lib\afsrxkad.lib \
80              $(DESTDIR)\lib\afsrx.lib \
81              $(DESTDIR)\lib\afslwp.lib \
82              $(DESTDIR)\lib\afs\afsutil.lib \
83              $(DESTDIR)\lib\afs\afsusd.lib \
84              $(DESTDIR)\lib\afs\afspioctl.lib \
85              $(DESTDIR)\lib\afs\afscmd.lib \
86              $(DESTDIR)\lib\afs\afscom_err.lib \
87              $(DESTDIR)\lib\afs\afsreg.lib \
88              $(DESTDIR)\lib\afs\afsprocmgmt.lib \
89              $(DESTDIR)\lib\afs\afseventlog.lib \
90 !IF (("$(SYS_NAME)"=="i386_win95" ) || ("$(SYS_NAME)"=="I386_WIN95" ))
91         $(DESTDIR)\lib\win95\afspthread.lib \
92 !ELSE
93         $(DESTDIR)\lib\afspthread.lib \
94 !ENDIF
95              $(DESTDIR)\lib\afsdes.lib \
96              $(DESTDIR)\lib\cm_dns.obj
97
98
99 #       $(DESTDIR)\lib\afsauthent.lib \
100 #       $(DESTDIR)\lib\afsrpc.lib \
101 #       $(DESTDIR)\lib\afs\afscmd.lib \
102 #       $(DESTDIR)\lib\afs\afsaudit.lib \
103 #       $(DESTDIR)\lib/afs/afscom_err.lib \
104 #       $(DESTDIR)\lib\afs\afsreg.lib \
105 #       $(DESTDIR)\lib\afs\afsprocmgmt.lib \
106 #       $(DESTDIR)\lib\afs\afseventlog.lib \
107 #       $(DESTDIR)\lib\pthread.lib
108
109 include ..\config\NTMakefile.version
110
111 # rm $(OUT)\tcstatus.obj
112 # nmake /nologo /f ntmakefile install
113 #----------------------------------------------- BUTC
114
115 $(BUTCEXE): $(BUTCOBJS) $(BUTCLIBS)
116         $(EXECONLINK)
117         $(EXEPREP)
118
119 .c.$(OUT)\obj:
120         $(C2OBJ) -I$(BUCOORD) $<
121
122 $(OUT)\dbentries.obj: $(BUTC)/dbentries.c
123         $(C2OBJ) $**
124
125 $(OUT)\tcprocs.obj: $(BUTC)/tcprocs.c
126         $(C2OBJ) $**
127
128 $(OUT)\lwps.obj: $(BUTC)/lwps.c
129         $(C2OBJ) $**
130
131 $(OUT)\tcmain.obj: $(BUTC)/tcmain.c
132         $(C2OBJ) $**
133
134 $(OUT)\list.obj: $(BUTC)/list.c
135         $(C2OBJ) $**
136
137 $(OUT)\recoverDb.obj: $(BUTC)/recoverDb.c
138         $(C2OBJ) $**
139
140 $(OUT)\tcudbprocs.obj: $(BUTC)/tcudbprocs.c
141         $(C2OBJ) $**
142
143 $(OUT)\dump.obj: $(BUTC)/dump.c
144         $(C2OBJ) $**
145
146 $(OUT)\tcstatus.obj: $(BUTC)/tcstatus.c
147         $(C2OBJ) $**
148
149 $(OUT)\butc_xbsa.obj: $(BUTC)/butc_xbsa.c
150         $(C2OBJ) $**
151
152 #----------------------------------------------- BUCOORD
153
154 $(OUT)\ubik_db_if.obj: $(BUCOORD)/ubik_db_if.c
155         $(C2OBJ) -I$(BUCOORD) $**
156
157 #----------------------------------------------- VOLSER
158 # Build the afstvolser.lib library here. The file compiled
159 # for is is vsprocs.c. The rest are from the VOLSER dir.
160
161 $(OUT)\afstvolser.lib: $(VOLSERLIBOBJ)
162         $(LIBARCH)
163
164 $(OUT)\vsprocs.obj: $(VOLSER)/vsprocs.c
165         $(C2OBJ) $**
166
167 #----------------------------------------------- LWP
168
169 $(OUT)\lock.obj: $(LWP)/lock.c
170         $(C2OBJ) $**
171
172 #----------------------------------------------- BUTC
173
174 $(OUT)\file_tm.obj: $(BUTM)/file_tm.c
175         $(C2OBJ) $**
176
177 $(OUT)\afstbutm.lib: $(BUTMOBJS)
178         $(LIBARCH)
179
180 #-----------------------------------------------
181
182 all: $(BUTCEXE) $(BUTMLIBS)
183
184 install: all
185
186 noversion: install
187
188 mkdir:
189