Initial IBM OpenAFS 1.0 tree
[openafs.git] / src / WINNT / client_config / NTMakefile
1 # Copyright (C)  1998  Transarc Corporation.  All rights reserved.
2 #
3
4 # make compiler warnings fatal
5
6 AFSDEV_AUXCDEFINES = $(AFSDEV_AUXCDEFINES) -WX
7
8 # include the AFSD source tree on our inclusion path
9
10 AFSDEV_AUXCDEFINES = $(AFSDEV_AUXCDEFINES) -I ..\afsd
11
12 # include the primary makefile
13
14 !INCLUDE ..\..\config\NTMakefile.$(SYS_NAME)
15 !INCLUDE ..\..\config\NTMakefile.version
16
17 ############################################################################
18 #
19 # BUILD TARGETS
20 #
21
22 EXEFILE = $(DESTDIR)\root.client\usr\vice\etc\afs_config.exe
23
24 EXEOBJS = \
25         afs_config_stub.res \
26         cellservdb.obj \
27         checklist.obj \
28         config.obj \
29         ctl_sockaddr.obj \
30         ctl_spinner.obj \
31         dialog.obj \
32         drivemap.obj \
33         fastlist.obj \
34         fs_utils.obj \
35         hashlist.obj \
36         isadmin.obj \
37         main.obj \
38         misc.obj \
39         pagesize.obj \
40         resize.obj \
41         subclass.obj \
42         tab_advanced.obj \
43         tab_drives.obj \
44         tab_hosts.obj \
45         tab_general.obj \
46         tab_prefs.obj \
47         dlg_misc.obj \
48         dlg_logon.obj \
49         dlg_diag.obj \
50         dlg_automap.obj
51
52 VCLIBS =\
53         comctl32.lib \
54         shell32.lib \
55         mpr.lib
56
57 EXELIBS = \
58         $(DESTDIR)\lib\afs\TaLocale.lib \
59         $(DESTDIR)\lib\afsrpc.lib \
60         $(DESTDIR)\lib\afsauthent.lib \
61         $(DESTDIR)\lib\libafsconf.lib
62
63 ############################################################################
64 #
65 # EXTERNAL SOURCE FILES
66 #
67 # The following source files are required by this application, but live
68 # elsewhere in the tree. To prevent checking in more than one copy of the
69 # source files, they are copied to this directory at build-time.
70 #
71
72 COPYHEADERS = \
73         $(DESTDIR)\include\WINNT\al_resource.h \
74         $(DESTDIR)\include\WINNT\checklist.h \
75         $(DESTDIR)\include\WINNT\ctl_sockaddr.h \
76         $(DESTDIR)\include\WINNT\ctl_spinner.h \
77         $(DESTDIR)\include\WINNT\dialog.h \
78         $(DESTDIR)\include\WINNT\fastlist.h \
79         $(DESTDIR)\include\WINNT\hashlist.h \
80         $(DESTDIR)\include\WINNT\resize.h \
81         $(DESTDIR)\include\WINNT\subclass.h
82
83 COPYSOURCES = \
84         .\checklist.cpp \
85         .\checklist.h \
86         .\ctl_sockaddr.cpp \
87         .\ctl_sockaddr.h \
88         .\ctl_spinner.cpp \
89         .\ctl_spinner.h \
90         .\dialog.cpp \
91         .\dialog.h \
92         .\fastlist.cpp \
93         .\fastlist.h \
94         .\fs_utils.c \
95         .\hashlist.cpp \
96         .\hashlist.h \
97         .\resize.cpp \
98         .\resize.h \
99         .\subclass.cpp \
100         .\subclass.h
101
102 ############################################################################
103
104 {..\afsapplib}.h{$(DESTDIR)\include\WINNT}.h:
105         $(COPY) ..\afsapplib\$(*B).h $(DESTDIR)\include\WINNT
106
107 {..\afsapplib}.h{.\}.h:
108         $(COPY) ..\afsapplib\$(*B).h .
109
110 {..\afsapplib}.cpp{.\}.cpp:
111         $(COPY) ..\afsapplib\$(*B).cpp .
112
113 {..\afsd}.c{.\}.c:
114         $(COPY) ..\afsd\$(*B).c .
115
116 ############################################################################
117
118 $(EXEFILE) : $(EXEOBJS) $(EXELIBS)
119         $(EXEGUILINK) $(VCLIBS)
120         $(EXEPREP) 
121
122 install : $(COPYSOURCES) $(COPYHEADERS) $(EXEFILE) lang
123
124 lang ::
125         $(CD) lang
126         for /f %l in ('dir /B ??_??') do @$(NTLANG) %l $(MAKECMD) /nologo /f NTMakefile install
127         $(CD) ..
128
129 ############################################################################
130 #
131 # Dependencies
132 #
133
134 afs_config_stub.res : afs_config_stub.rc AFS_component_version_number.h
135