1 # Copyright 2000, International Business Machines Corporation and others.
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
8 # make compiler warnings fatal
10 AFSDEV_AUXCDEFINES = $(AFSDEV_AUXCDEFINES) -WX
12 # include the primary makefile
13 RELDIR=WINNT\afs_setup_utils
14 !INCLUDE ..\..\config\NTMakefile.$(SYS_NAME)
15 !INCLUDE ..\..\config\NTMakefile.version
17 ############################################################################
19 ILIBDIR = $(DESTDIR)\lib\afs
22 ############################################################################
23 # Build targets - one for each dll we need to make
25 INSTALL_UTILS_DLLFILE = $(DESTDIR)\root.server\usr\afs\bin\InstallUtils.dll
26 SERVER_UNINST_DLLFILE = $(DESTDIR)\root.server\usr\afs\bin\ServerUninst.dll
27 CLIENT_UNINST_DLLFILE = $(DESTDIR)\root.server\usr\afs\bin\ClientUninst.dll
28 CC_UNINST_DLLFILE = $(DESTDIR)\root.server\usr\afs\bin\CCUninst.dll
29 LIGHT_CLIENT_UNINST_DLLFILE = $(DESTDIR)\root.server\usr\afs\bin\LightClientUninst.dll
30 DOCS_UNINST_DLLFILE = $(DESTDIR)\root.server\usr\afs\bin\DocsUninst.dll
33 ############################################################################
34 # Source files and libraries that are shared by all of the targets.
41 $(OUT)\progress_dlg.obj \
42 $(OUT)\animate_icon.obj \
44 $(OUT)\forceremove.obj \
45 $(OUT)\afs_setup_utils_stub.res
52 $(DESTDIR)\lib\afs\TaLocale.lib \
53 $(DESTDIR)\lib\afs\afsreg.lib \
54 $(DESTDIR)\lib\afs\afsutil.lib
57 ############################################################################
58 # Definitions for building afsapplib objects
60 AFSAPPLIBDIR = ..\..\WINNT\afsapplib
62 $(OUT)\subclass.obj: $(AFSAPPLIBDIR)\subclass.cpp
63 $(C2OBJ) -I$(AFSAPPLIBDIR) $(AFSAPPLIBDIR)\subclass.cpp
66 ############################################################################
67 # Definitions for building afsrm.exe
69 AFSRM_EXEFILE = $(DESTDIR)\bin\afsrm.exe
73 $(OUT)\forceremove.obj \
75 $(OUT)\AFS_component_version_number.obj
78 $(DESTDIR)\lib\afs\afsreg.lib \
79 $(DESTDIR)\lib\afs\afscmd.lib \
80 $(DESTDIR)\lib\afs\afscom_err.lib \
81 $(DESTDIR)\lib\afs\afsutil.lib
83 $(AFSRM_EXEFILE): $(AFSRM_EXEOBJS) $(AFSRM_EXELIBS)
85 $(_VC_MANIFEST_EMBED_EXE)
89 ############################################################################
91 DIRLANG= ZH_TW ZH_CN PT_BR KO_KR JA_JP ES_ES EN_US DE_DE
93 install : $(INSTALL_UTILS_DLLFILE) $(SERVER_UNINST_DLLFILE) $(CLIENT_UNINST_DLLFILE) \
94 $(CC_UNINST_DLLFILE) $(LIGHT_CLIENT_UNINST_DLLFILE) $(DOCS_UNINST_DLLFILE) \
95 $(AFSRM_EXEFILE) $(DIRLANG)
97 nmake -fntmakefile install
100 nmake -fntmakefile install
106 @$(NTLANG) $@ $(MAKECMD) /nologo /f NTMakefile install
110 ############################################################################
111 # How to build the shared source file for each uninstall dll
113 C2OBJ = $(C2OBJ) -DSERVER_UNINST
115 $(OUT)\s_afs_setup_utils.obj: afs_setup_utils.cpp
118 $(OUT)\c_afs_setup_utils.obj: afs_setup_utils.cpp
121 $(OUT)\cc_afs_setup_utils.obj: afs_setup_utils.cpp
124 $(OUT)\lc_afs_setup_utils.obj: afs_setup_utils.cpp
127 $(OUT)\d_afs_setup_utils.obj: afs_setup_utils.cpp
131 ############################################################################
133 $(INSTALL_UTILS_DLLFILE) : $(OUT)\afs_setup_utils.obj $(DLLOBJS) $(DLLLIBS)
134 $(DLLGUILINK) -entry:DllEntryPoint /DEF:install_utils.def $(VCLIBS)
135 $(_VC_MANIFEST_EMBED_DLL)
139 $(COPY) $*.lib $(ILIBDIR)
142 $(SERVER_UNINST_DLLFILE) : $(OUT)\s_afs_setup_utils.obj $(DLLOBJS) $(DLLLIBS)
143 $(DLLGUILINK) -entry:DllEntryPoint /DEF:server_uninst.def $(VCLIBS)
144 $(_VC_MANIFEST_EMBED_DLL)
148 $(COPY) $*.lib $(ILIBDIR)
151 $(CLIENT_UNINST_DLLFILE) : $(OUT)\c_afs_setup_utils.obj $(DLLOBJS) $(DLLLIBS)
152 $(DLLGUILINK) -entry:DllEntryPoint /DEF:client_uninst.def $(VCLIBS)
153 $(_VC_MANIFEST_EMBED_DLL)
157 $(COPY) $*.lib $(ILIBDIR)
160 $(CC_UNINST_DLLFILE) : $(OUT)\cc_afs_setup_utils.obj $(DLLOBJS) $(DLLLIBS)
161 $(DLLGUILINK) -entry:DllEntryPoint /DEF:cc_uninst.def $(VCLIBS)
162 $(_VC_MANIFEST_EMBED_DLL)
166 $(COPY) $*.lib $(ILIBDIR)
169 $(LIGHT_CLIENT_UNINST_DLLFILE) : $(OUT)\lc_afs_setup_utils.obj $(DLLOBJS) $(DLLLIBS)
170 $(DLLGUILINK) -entry:DllEntryPoint /DEF:light_client_uninst.def $(VCLIBS)
171 $(_VC_MANIFEST_EMBED_DLL)
175 $(COPY) $*.lib $(ILIBDIR)
178 $(DOCS_UNINST_DLLFILE) : $(OUT)\d_afs_setup_utils.obj $(DLLOBJS) $(DLLLIBS)
179 $(DLLGUILINK) -entry:DllEntryPoint /DEF:docs_uninst.def $(VCLIBS)
180 $(_VC_MANIFEST_EMBED_DLL)
184 $(COPY) $*.lib $(ILIBDIR)
188 ############################################################################
192 nmake -fntmakefile clean
195 nmake -fntmakefile clean
199 nmake -fntmakefile clean
202 nmake -fntmakefile clean
206 ############################################################################
211 $(OUT)\afs_setup_utils_stub.res : afs_setup_utils_stub.rc AFS_component_version_number.h
216 nmake /nologo /f ntmakefile SRC=$(SRC) OBJ=$(OBJ) mkdir