279dc2f0deb7805f97db87e39eb417a6dc79bc22
[openafs.git] / src / WINNT / client_creds / 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 # make compiler warnings fatal
9
10 AFSDEV_AUXCDEFINES = $(AFSDEV_AUXCDEFINES) -WX
11
12 # include the AFSD source tree on our inclusion path
13
14 AFSDEV_AUXCDEFINES = $(AFSDEV_AUXCDEFINES) -I ..\afsd
15
16 # include the primary makefile
17
18 !INCLUDE ..\..\config\NTMakefile.$(SYS_NAME)
19 !INCLUDE ..\..\config\NTMakefile.version
20
21 ############################################################################
22 #
23 # BUILD TARGETS
24 #
25
26 EXEFILE = $(DESTDIR)\root.client\usr\vice\etc\afscreds.exe
27
28 EXEOBJS = \
29         afscreds_stub.res \
30         advtab.obj \
31         afswiz.obj \
32         al_wizard.obj \
33         checklist.obj \
34         creds.obj \
35         credstab.obj \
36         drivemap.obj \
37         fs_utils.obj \
38         main.obj \
39         misc.obj \
40         mounttab.obj \
41         settings.obj \
42         shortcut.obj \
43         subclass.obj \
44         trayicon.obj \
45         window.obj
46
47 VCLIBS =\
48         comctl32.lib \
49         shell32.lib \
50         uuid.lib \
51         ole32.lib \
52         mpr.lib
53
54 EXELIBS = \
55         $(DESTDIR)\lib\afs\afspioctl.lib \
56         $(DESTDIR)\lib\afs\TaLocale.lib
57
58 ############################################################################
59 #
60 # EXTERNAL SOURCE FILES
61 #
62 # The following source files are required by this application, but live
63 # elsewhere in the tree. To prevent checking in more than one copy of the
64 # source files, they are copied to this directory at build-time.
65 #
66
67 COPYHEADERS = \
68         $(DESTDIR)\include\WINNT\al_wizard.h \
69         $(DESTDIR)\include\WINNT\checklist.h \
70         $(DESTDIR)\include\WINNT\subclass.h
71
72 COPYSOURCES = \
73         .\al_wizard.cpp \
74         .\al_wizard.h \
75         .\checklist.cpp \
76         .\checklist.h \
77         .\drivemap.cpp \
78         .\drivemap.h \
79         .\fs_utils.c \
80         .\subclass.cpp \
81         .\subclass.h
82
83 ############################################################################
84
85 {..\afsd}.c{.\}.c:
86         $(COPY) ..\afsd\$(*B).c .
87
88 {..\afsapplib}.h{.\}.h:
89         $(COPY) ..\afsapplib\$(*B).h .
90
91 {..\afsapplib}.cpp{.\}.cpp:
92         $(COPY) ..\afsapplib\$(*B).cpp .
93
94 {..\client_config}.h{.\}.h:
95         $(COPY) ..\client_config\$(*B).h .
96
97 {..\client_config}.cpp{.\}.cpp:
98         $(COPY) ..\client_config\$(*B).cpp .
99
100
101 ############################################################################
102
103 $(EXEFILE) : $(EXEOBJS) $(EXELIBS)
104         $(EXEGUILINK) $(VCLIBS)
105         $(EXEPREP) 
106
107 install : $(COPYSOURCES) $(COPYHEADERS) $(EXEFILE) lang
108
109 lang ::
110         $(CD) lang
111         for /f %l in ('dir /B ??_??') do @$(NTLANG) %l $(MAKECMD) /nologo /f NTMakefile install
112         $(CD) ..
113
114 ############################################################################
115 #
116 # Dependencies
117 #
118
119 afscreds_stub.res : afscreds_stub.rc AFS_component_version_number.h
120