Windows: remove install9x rules
[openafs.git] / src / comerr / 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 RELDIR=comerr
9 !INCLUDE ..\config\NTMakefile.$(SYS_NAME)
10 !INCLUDE ..\config\NTMakefile.version
11
12 ####################################################################
13 # install  comerr header files 
14 INCFILEDIR = $(DESTDIR)\include\afs
15 INCFILES =\
16         $(INCFILEDIR)\com_err.h \
17         $(INCFILEDIR)\error_table.h \
18         $(INCFILEDIR)\mit-sipb-cr.h 
19
20 ####################################################################
21 # build and install  afscom_err.lib static lib
22 COMERR_LIBFILE = $(DESTDIR)\lib\afs\afscom_err.lib
23
24 COMERR_LIBOBJS =\
25                 $(OUT)\error_msg.obj  \
26                 $(OUT)\et_name.obj  \
27                 $(OUT)\com_err.obj \
28                 $(OUT)\AFS_component_version_number.obj
29                 
30 $(COMERR_LIBOBJS): $$(@B).c
31     $(C2OBJ) $**
32
33 $(COMERR_LIBFILE): $(COMERR_LIBOBJS)
34         $(LIBARCH)  
35
36 ####################################################################
37 # build and install the compile_et executable
38 COMPILE_ET_EXEFILE = $(DESTDIR)\bin\compile_et.exe
39
40 COMPILE_ET_EXERES  = $(OUT)\compile_et.res
41
42 prep:
43         $(DESTDIR)\bin\touch et_lex.lex_nt.c
44         $(DESTDIR)\bin\touch error_table_nt.c
45         @echo If you update et_lex.lex.l, to build correctly, you should delete error_table_nt.c 
46
47 et_lex.lex_nt.c:   et_lex.lex.l
48     $(LEX) -t et_lex.lex.l > $@ 
49
50 error_table_nt.c:  et_lex.lex_nt.c error_table.y
51     $(YACC) -d -o $@ error_table.y
52
53 COMPILE_ET_EXEOBJS =\
54                 $(OUT)\compile_et.obj \
55                 $(OUT)\error_table_nt.obj
56
57 $(COMPILE_ET_EXERES): compile_et.rc AFS_component_version_number.h
58
59 $(COMPILE_ET_EXEOBJS): $$(@B).c
60     $(C2OBJ) $**
61
62 COMPILE_ET_EXELIBS =\
63         $(DESTDIR)\lib\afs\afsutil.lib \
64         $(DESTDIR)\lib\opr.lib \
65         $(DESTDIR)\lib\afsroken.lib
66
67 $(COMPILE_ET_EXEFILE): $(COMPILE_ET_EXEOBJS) $(COMPILE_ET_EXERES) $(COMPILE_ET_EXELIBS)  
68         $(EXECONLINK)
69         $(_VC_MANIFEST_EMBED_EXE)
70         $(EXEPREP) 
71         $(CODESIGN_USERLAND)
72         $(SYMSTORE_IMPORT)
73
74 ####################################################################
75 install: prep $(INCFILES) $(COMERR_LIBFILE) $(COMPILE_ET_EXEFILE) 
76
77 clean::
78         $(DEL) $(COMERR_LIBFILE) $(OUT)\AFS_component_version_number.obj
79         $(DEL) $(COMPILE_ET_EXEFILE)
80         $(DEL) $(COMPILE_ET_EXERES);
81         $(DEL) *~ *.bak \
82                  *.otl *.aux *.toc *.PS *.dvi *.x9700 *.ps \
83                  *.cp *.fn *.ky *.log *.pg *.tp *.vr \
84                  et.ar TAGS
85
86 test:
87
88 mkdir: