windows-build-do-not-mix-pthread-and-lwp-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\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\cm_dns.obj \
98              $(DESTDIR)\lib\cm_nls.obj
99
100
101 #       $(DESTDIR)\lib\afsauthent.lib \
102 #       $(DESTDIR)\lib\afsrpc.lib \
103 #       $(DESTDIR)\lib\afs\afscmd.lib \
104 #       $(DESTDIR)\lib\afs\afsaudit.lib \
105 #       $(DESTDIR)\lib/afs/afscom_err.lib \
106 #       $(DESTDIR)\lib\afs\afsreg.lib \
107 #       $(DESTDIR)\lib\afs\afsprocmgmt.lib \
108 #       $(DESTDIR)\lib\afs\afseventlog.lib \
109 #       $(DESTDIR)\lib\pthread.lib
110
111 # rm $(OUT)\tcstatus.obj
112 # nmake /nologo /f ntmakefile install
113 #----------------------------------------------- BUTC
114
115 $(BUTCRES): butc.rc AFS_component_version_number.h
116
117 $(BUTCEXE): $(BUTCOBJS) $(BUTCRES) $(BUTCLIBS)
118         $(EXECONLINK) dnsapi.lib mpr.lib shell32.lib
119         $(_VC_MANIFEST_EMBED_EXE)
120         $(EXEPREP)
121         $(CODESIGN_USERLAND)
122
123 .c.$(OUT)\obj:
124         $(C2OBJ) -I$(BUCOORD) $<
125
126 $(OUT)\dbentries.obj: $(BUTC)/dbentries.c
127         $(C2OBJ) $**
128
129 $(OUT)\tcprocs.obj: $(BUTC)/tcprocs.c
130         $(C2OBJ) $**
131
132 $(OUT)\lwps.obj: $(BUTC)/lwps.c
133         $(C2OBJ) $**
134
135 $(OUT)\tcmain.obj: $(BUTC)/tcmain.c
136         $(C2OBJ) $**
137
138 $(OUT)\list.obj: $(BUTC)/list.c
139         $(C2OBJ) $**
140
141 $(OUT)\recoverDb.obj: $(BUTC)/recoverDb.c
142         $(C2OBJ) $**
143
144 $(OUT)\tcudbprocs.obj: $(BUTC)/tcudbprocs.c
145         $(C2OBJ) $**
146
147 $(OUT)\dump.obj: $(BUTC)/dump.c
148         $(C2OBJ) $**
149
150 $(OUT)\tcstatus.obj: $(BUTC)/tcstatus.c
151         $(C2OBJ) $**
152
153 $(OUT)\butc_xbsa.obj: $(BUTC)/butc_xbsa.c
154         $(C2OBJ) $**
155
156 #----------------------------------------------- BUCOORD
157
158 $(OUT)\ubik_db_if.obj: $(BUCOORD)/ubik_db_if.c
159         $(C2OBJ) -I$(BUCOORD) $**
160
161 #----------------------------------------------- VOLSER
162 # Build the afstvolser.lib library here. The file compiled
163 # for is is vsprocs.c. The rest are from the VOLSER dir.
164
165 $(OUT)\afstvolser.lib: $(VOLSERLIBOBJ)
166         $(LIBARCH)
167
168 $(OUT)\vsprocs.obj: $(VOLSER)/vsprocs.c
169         $(C2OBJ) $**
170
171 #----------------------------------------------- LWP
172
173 $(OUT)\lock.obj: $(LWP)/lock.c
174         $(C2OBJ) $**
175
176 #----------------------------------------------- BUTC
177
178 $(OUT)\file_tm.obj: $(BUTM)/file_tm.c
179         $(C2OBJ) $**
180
181 $(OUT)\afstbutm.lib: $(BUTMOBJS)
182         $(LIBARCH)
183
184 #-----------------------------------------------
185
186 all: $(BUTCEXE) $(BUTMLIBS)
187
188 install: all
189
190 noversion: install
191
192 mkdir:
193         
194 clean::
195         $(DEL) $(BUTCRES)