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 # indicate that the functions in this library should be exported
10 AFSDEV_AUXCDEFINES = $(AFSDEV_AUXCDEFINES) -DEXPORT_AFSAPPLIB -DEXPORTED=_declspec(dllexport)
12 # include the primary makefile
14 !INCLUDE ..\..\config\NTMakefile.$(SYS_NAME)
15 !INCLUDE ..\..\config\NTMakefile.version
17 ############################################################################
19 INCFILEDIR = $(DESTDIR)\include\WINNT
21 ILIBDIR = $(DESTDIR)\lib\afs
24 $(INCFILEDIR)\afsapplib.h \
25 $(INCFILEDIR)\al_admsvr.h \
26 $(INCFILEDIR)\al_dynlink.h \
27 $(INCFILEDIR)\al_messages.h \
28 $(INCFILEDIR)\al_progress.h \
29 $(INCFILEDIR)\al_resource.h \
30 $(INCFILEDIR)\al_wizard.h \
31 $(INCFILEDIR)\checklist.h \
32 $(INCFILEDIR)\ctl_date.h \
33 $(INCFILEDIR)\ctl_elapsed.h \
34 $(INCFILEDIR)\ctl_sockaddr.h \
35 $(INCFILEDIR)\ctl_spinner.h \
36 $(INCFILEDIR)\ctl_time.h \
37 $(INCFILEDIR)\dialog.h \
38 $(INCFILEDIR)\fastlist.h \
39 $(INCFILEDIR)\hashlist.h \
40 $(INCFILEDIR)\regexp.h \
41 $(INCFILEDIR)\resize.h \
42 $(INCFILEDIR)\settings.h \
43 $(INCFILEDIR)\subclass.h
46 $(OJT)\afsapplib_stub.res \
47 $(OJT)\afsapplib.obj \
48 $(OJT)\al_admsvr.obj \
49 $(OJT)\al_browse.obj \
50 $(OJT)\al_browseset.obj \
53 $(OJT)\al_dynlink.obj \
57 $(OJT)\al_progress.obj \
60 $(OJT)\al_wizard.obj \
61 $(OJT)\checklist.obj \
63 $(OJT)\ctl_elapsed.obj \
64 $(OJT)\ctl_sockaddr.obj \
65 $(OJT)\ctl_spinner.obj \
81 $(DESTDIR)\lib\afs\TaAfsAdmSvrClient.lib \
82 $(DESTDIR)\lib\afs\TaLocale.lib
84 DLLFILE = $(DESTDIR)\root.server\usr\afs\bin\TaAfsAppLib.dll
87 # Since AfsAppLib links with TaAfsAdmSvrClient.lib--and both need stuff
88 # like the HashList code--we'll get lots of unnecessary 4049 warnings from
89 # the linker. Disable that complaint.
91 LOCALLINKFLAGS = -IGNORE:4049
93 # AfsAppLib needs to use an explicit .DEF file to get its entry points public
95 LOCALLINKFLAGS = $(LOCALLINKFLAGS) /DEF:TaAfsAppLib.def
97 # Also, AfsAppLib has a specific DLL entry-point which should be used
99 LOCALLINKFLAGS = $(LOCALLINKFLAGS) -entry:DllEntryPoint
101 ############################################################################
104 @echo TaAfsAppLib.DLL is built automatically when building AfsAdmSvr
105 @echo (the two are related--AfsAppLib uses the AfsAdmSvr client library,
106 @echo and the AfsAdmSvr server executable uses the AfsAppLib DLL--
107 @echo and they must therefore be built in a specific order).
109 @echo You do not need to build in the AfsAppLib directory explicitly.
112 headers : $(INCFILES)
116 for /f %l in ('dir /B ??_??') do @$(NTLANG) %l $(MAKECMD) /nologo /f NTMakefile install
119 primary : headers $(DLLFILE) lang
121 $(DLLFILE) : $(DLLOBJS) $(DLLLIBS)
122 $(DLLGUILINK) $(LOCALLINKFLAGS) $(VCLIBS)
124 $(COPY) $*.lib $(ILIBDIR)
130 ############################################################################
135 $(OJT)\AfsAppLib_stub.res : AFS_component_version_number.h
140 nmake /nologo /f ntmakefile SRC=$(SRC) OBJ=$(OBJ) mkdir