19b2f5cdea94041e795684f87bfd67457b0f007e
[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  = ..\tvolser
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 LWPOBJS     = $(OUT)\lock.obj $(OUT)\waitkey.obj
41
42 BUTMOBJS    = $(OUT)\file_tm.obj \
43               $(OUT)\AFS_component_version_number.obj
44 BUTMLIBS    = $(OUT)\afstbutm.lib
45 BUTMINCLUDE = -I$(DESTDIR)\include
46
47 BUTCOBJS   = $(OUT)\dbentries.obj \
48          $(OUT)\tcprocs.obj \
49          $(OUT)\lwps.obj \
50          $(OUT)\tcmain.obj \
51          $(OUT)\list.obj \
52          $(OUT)\recoverDb.obj \
53          $(OUT)\tcudbprocs.obj \
54          $(OUT)\dump.obj \
55          $(OUT)\tcstatus.obj \
56          $(OUT)\butc_xbsa.obj \
57          $(LWPOBJS) \
58          $(BUCOORDOBJS)
59
60 BUTCRES = $(OUT)\butc.res
61
62 BUTCINCLUDE= -I. -I$(DESTDIR)\include -I$(XBSADIR)
63 BUTCLIBS=$(DESTDIR)\lib\afs\afsbudb.lib  \
64              $(DESTDIR)\lib\afs\afsbubasics.lib \
65              $(DESTDIR)\lib\afs\afstvolser.lib \
66              $(BUTMLIBS) \
67              $(DESTDIR)\lib\afs\mtafsvldb.lib \
68              $(DESTDIR)\lib\afs\afskauth.lib \
69              $(DESTDIR)\lib\afs\afsauth.lib \
70              $(DESTDIR)\lib\afsrpc.lib \
71              $(DESTDIR)\lib\afsrxkad.lib \
72              $(DESTDIR)\lib\afs\mtafsubik.lib \
73              $(DESTDIR)\lib\afs\mtafsutil.lib \
74              $(DESTDIR)\lib\afs\afsaudit.lib \
75              $(DESTDIR)\lib\afs\afsusd.lib \
76              $(DESTDIR)\lib\afs\afspioctl.lib \
77              $(DESTDIR)\lib\afs\afscmd.lib \
78              $(DESTDIR)\lib\afs\afscom_err.lib \
79              $(DESTDIR)\lib\afs\afsreg.lib \
80              $(DESTDIR)\lib\afs\afsprocmgmt.lib \
81              $(DESTDIR)\lib\afs\afseventlog.lib \
82              $(DESTDIR)\lib\afspthread.lib \
83              $(DESTDIR)\lib\afsauthent.lib \
84              $(DESTDIR)\lib\libafsconf.lib \
85              $(DESTDIR)\lib\opr.lib \
86              $(DESTDIR)\lib\afshcrypto.lib \
87              $(DESTDIR)\lib\afsroken.lib \
88              $(DESTDIR)\lib\afsrfc3961.lib
89
90 # rm $(OUT)\tcstatus.obj
91 # nmake /nologo /f ntmakefile install
92 #----------------------------------------------- BUTC
93
94 $(BUTCRES): butc.rc AFS_component_version_number.h
95
96 $(BUTCEXE): $(BUTCOBJS) $(BUTCRES) $(BUTCLIBS)
97         $(EXECONLINK) dnsapi.lib mpr.lib shell32.lib
98         $(_VC_MANIFEST_EMBED_EXE)
99         $(EXEPREP)
100         $(CODESIGN_USERLAND)
101         $(SYMSTORE_IMPORT)
102
103 .c.$(OUT)\obj:
104         $(C2OBJ) -I$(BUCOORD) $<
105
106 $(OUT)\dbentries.obj: $(BUTC)/dbentries.c
107         $(C2OBJ) $**
108
109 $(OUT)\tcprocs.obj: $(BUTC)/tcprocs.c
110         $(C2OBJ) $**
111
112 $(OUT)\lwps.obj: $(BUTC)/lwps.c
113         $(C2OBJ) $**
114
115 $(OUT)\tcmain.obj: $(BUTC)/tcmain.c
116         $(C2OBJ) $**
117
118 $(OUT)\list.obj: $(BUTC)/list.c
119         $(C2OBJ) $**
120
121 $(OUT)\recoverDb.obj: $(BUTC)/recoverDb.c
122         $(C2OBJ) $**
123
124 $(OUT)\tcudbprocs.obj: $(BUTC)/tcudbprocs.c
125         $(C2OBJ) $**
126
127 $(OUT)\dump.obj: $(BUTC)/dump.c
128         $(C2OBJ) $**
129
130 $(OUT)\tcstatus.obj: $(BUTC)/tcstatus.c
131         $(C2OBJ) $**
132
133 $(OUT)\butc_xbsa.obj: $(BUTC)/butc_xbsa.c
134         $(C2OBJ) $**
135
136 #----------------------------------------------- BUCOORD
137
138 $(OUT)\ubik_db_if.obj: $(BUCOORD)/ubik_db_if.c
139         $(C2OBJ) -I$(BUCOORD) $**
140
141 #----------------------------------------------- LWP
142
143 $(OUT)\lock.obj: $(LWP)/lock.c
144         $(C2OBJ) $**
145
146 $(OUT)\waitkey.obj: $(LWP)/waitkey.c
147         $(C2OBJ) $**
148
149 #----------------------------------------------- BUTC
150
151 $(OUT)\file_tm.obj: $(BUTM)/file_tm.c
152         $(C2OBJ) $**
153
154 $(OUT)\afstbutm.lib: $(BUTMOBJS)
155         $(LIBARCH)
156
157 #-----------------------------------------------
158
159 all: $(BUTCEXE) $(BUTMLIBS)
160
161 install: all
162
163 noversion: install
164
165 mkdir:
166
167 clean::
168         $(DEL) $(BUTCRES)