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