1bb8e99872dca34113c49cafeecc323cbeb5ef8e
[openafs.git] / src / fsint / 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 ..\config\NTMakefile.$(SYS_NAME)
9 !IF (EXIST(..\config\NTMakefile.version))
10 !INCLUDE ..\config\NTMakefile.version
11 !ENDIF
12
13 # Definitions for installing header files
14
15 INCFILEDIR = $(DESTDIR)\include\afs
16
17 INCFILES =\
18         $(INCFILEDIR)\afsint.h \
19         $(INCFILEDIR)\afscbint.h
20
21 # afsint.lib
22
23 LIBFILE = $(DESTDIR)\lib\afs\afsint.lib
24
25 LIBOBJS =\
26         afscbint.cs.obj \
27         afscbint.ss.obj \
28         afscbint.xdr.obj \
29         afsint.cs.obj   \
30         afsint.ss.obj   \
31         afsint.xdr.obj  \
32         afsaux.obj      \
33         AFS_component_version_number.obj
34
35 $(LIBFILE): $(LIBOBJS)  
36         $(LIBARCH)  
37
38
39 # use rxgen on afscbint.xg and afsint.xg
40 afscbint.cs.c afscbint.ss.c afscbint.xdr.c afscbint.h : afscbint.xg common.xg
41         $(RXGEN) -x -y afscbint.xg
42
43 afsint.cs.c afsint.ss.c afsint.xdr.c afsint.h: afsint.xg common.xg
44         $(RXGEN) -x afsint.xg
45
46 # mtafsint.lib
47
48 MT_LIBFILE = $(DESTDIR)\lib\afs\mtafsint.lib
49
50 MT_LIBOBJS =\
51         afscbint.cs_mt.obj \
52         afscbint.ss_mt.obj \
53         afscbint.xdr_mt.obj \
54         afsint.cs_mt.obj        \
55         afsint.ss_mt.obj        \
56         afsint.xdr_mt.obj       \
57         afsaux_mt.obj      \
58         AFS_component_version_number.obj
59
60 afscbint.cs_mt.obj:afscbint.cs.c
61         $(C2OBJ) afscbint.cs.c -DAFS_PTHREAD_ENV /Foafscbint.cs_mt.obj
62
63 afscbint.ss_mt.obj:afscbint.ss.c
64         $(C2OBJ) afscbint.ss.c -DAFS_PTHREAD_ENV /Foafscbint.ss_mt.obj
65
66 afscbint.xdr_mt.obj:afscbint.xdr.c
67         $(C2OBJ) afscbint.xdr.c -DAFS_PTHREAD_ENV /Foafscbint.xdr_mt.obj
68
69 afsint.cs_mt.obj:afsint.cs.c
70         $(C2OBJ) afsint.cs.c -DAFS_PTHREAD_ENV /Foafsint.cs_mt.obj
71
72 afsint.ss_mt.obj:afsint.ss.c
73         $(C2OBJ) afsint.ss.c -DAFS_PTHREAD_ENV /Foafsint.ss_mt.obj
74
75 afsint.xdr_mt.obj:afsint.xdr.c
76         $(C2OBJ) afsint.xdr.c -DAFS_PTHREAD_ENV /Foafsint.xdr_mt.obj
77
78 afsaux_mt.obj:afsaux.c
79         $(C2OBJ) afsaux.c -DAFS_PTHREAD_ENV /Foafsaux_mt.obj
80
81 $(MT_LIBFILE): $(MT_LIBOBJS)  
82         $(LIBARCH)  
83
84 install: $(LIBFILE) $(INCFILES) $(MT_LIBFILE)
85
86 install9x: install
87
88 clean::
89         $(DEL) *.cs.c *.ss.c *.xdr.c afsint.h afscbint.h