ntmakefile-fix-20031207
[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 # rm $(OUT)\tcstatus.obj
110 # nmake /nologo /f ntmakefile install
111 #----------------------------------------------- BUTC
112
113 $(BUTCEXE): $(BUTCOBJS) $(BUTCLIBS)
114         $(EXECONLINK)
115         $(EXEPREP)
116
117 .c.$(OUT)\obj:
118         $(C2OBJ) -I$(BUCOORD) $<
119
120 $(OUT)\dbentries.obj: $(BUTC)/dbentries.c
121         $(C2OBJ) $**
122
123 $(OUT)\tcprocs.obj: $(BUTC)/tcprocs.c
124         $(C2OBJ) $**
125
126 $(OUT)\lwps.obj: $(BUTC)/lwps.c
127         $(C2OBJ) $**
128
129 $(OUT)\tcmain.obj: $(BUTC)/tcmain.c
130         $(C2OBJ) $**
131
132 $(OUT)\list.obj: $(BUTC)/list.c
133         $(C2OBJ) $**
134
135 $(OUT)\recoverDb.obj: $(BUTC)/recoverDb.c
136         $(C2OBJ) $**
137
138 $(OUT)\tcudbprocs.obj: $(BUTC)/tcudbprocs.c
139         $(C2OBJ) $**
140
141 $(OUT)\dump.obj: $(BUTC)/dump.c
142         $(C2OBJ) $**
143
144 $(OUT)\tcstatus.obj: $(BUTC)/tcstatus.c
145         $(C2OBJ) $**
146
147 $(OUT)\butc_xbsa.obj: $(BUTC)/butc_xbsa.c
148         $(C2OBJ) $**
149
150 #----------------------------------------------- BUCOORD
151
152 $(OUT)\ubik_db_if.obj: $(BUCOORD)/ubik_db_if.c
153         $(C2OBJ) -I$(BUCOORD) $**
154
155 #----------------------------------------------- VOLSER
156 # Build the afstvolser.lib library here. The file compiled
157 # for is is vsprocs.c. The rest are from the VOLSER dir.
158
159 $(OUT)\afstvolser.lib: $(VOLSERLIBOBJ)
160         $(LIBARCH)
161
162 $(OUT)\vsprocs.obj: $(VOLSER)/vsprocs.c
163         $(C2OBJ) $**
164
165 #----------------------------------------------- LWP
166
167 $(OUT)\lock.obj: $(LWP)/lock.c
168         $(C2OBJ) $**
169
170 #----------------------------------------------- BUTC
171
172 $(OUT)\file_tm.obj: $(BUTM)/file_tm.c
173         $(C2OBJ) $**
174
175 $(OUT)\afstbutm.lib: $(BUTMOBJS)
176         $(LIBARCH)
177
178 #-----------------------------------------------
179
180 all: $(BUTCEXE) $(BUTMLIBS)
181
182 install: all
183
184 noversion: install
185
186 mkdir:
187