Initial IBM OpenAFS 1.0 tree
[openafs.git] / src / fsint / NTMakefile
1 # Copyright (C)  1998  Transarc Corporation.  All rights reserved.
2 #
3
4 !INCLUDE ..\config\NTMakefile.$(SYS_NAME)
5 !INCLUDE ..\config\NTMakefile.version
6
7 # Definitions for installing header files
8
9 INCFILEDIR = $(DESTDIR)\include\afs
10
11 INCFILES =\
12         $(INCFILEDIR)\afsint.h \
13         $(INCFILEDIR)\afscbint.h
14
15 # afsint.lib
16
17 LIBFILE = $(DESTDIR)\lib\afs\afsint.lib
18
19 LIBOBJS =\
20         afscbint.cs.obj \
21         afscbint.ss.obj \
22         afscbint.xdr.obj \
23         afsint.cs.obj   \
24         afsint.ss.obj   \
25         afsint.xdr.obj  \
26         afsaux.obj      \
27         AFS_component_version_number.obj
28
29 $(LIBFILE): $(LIBOBJS)  
30         $(LIBARCH)  
31
32
33 # use rxgen on afscbint.xg and afsint.xg
34 afscbint.cs.c afscbint.ss.c afscbint.xdr.c afscbint.h : afscbint.xg common.xg
35         $(RXGEN) -x -y afscbint.xg
36
37 afsint.cs.c afsint.ss.c afsint.xdr.c afsint.h: afsint.xg common.xg
38         $(RXGEN) -x afsint.xg
39
40 # mtafsint.lib
41
42 MT_LIBFILE = $(DESTDIR)\lib\afs\mtafsint.lib
43
44 MT_LIBOBJS =\
45         afscbint.cs_mt.obj \
46         afscbint.ss_mt.obj \
47         afscbint.xdr_mt.obj \
48         afsint.cs_mt.obj        \
49         afsint.ss_mt.obj        \
50         afsint.xdr_mt.obj       \
51         afsaux_mt.obj      \
52         AFS_component_version_number.obj
53
54 afscbint.cs_mt.obj:afscbint.cs.c
55         $(C2OBJ) afscbint.cs.c -DAFS_PTHREAD_ENV /Foafscbint.cs_mt.obj
56
57 afscbint.ss_mt.obj:afscbint.ss.c
58         $(C2OBJ) afscbint.ss.c -DAFS_PTHREAD_ENV /Foafscbint.ss_mt.obj
59
60 afscbint.xdr_mt.obj:afscbint.xdr.c
61         $(C2OBJ) afscbint.xdr.c -DAFS_PTHREAD_ENV /Foafscbint.xdr_mt.obj
62
63 afsint.cs_mt.obj:afsint.cs.c
64         $(C2OBJ) afsint.cs.c -DAFS_PTHREAD_ENV /Foafsint.cs_mt.obj
65
66 afsint.ss_mt.obj:afsint.ss.c
67         $(C2OBJ) afsint.ss.c -DAFS_PTHREAD_ENV /Foafsint.ss_mt.obj
68
69 afsint.xdr_mt.obj:afsint.xdr.c
70         $(C2OBJ) afsint.xdr.c -DAFS_PTHREAD_ENV /Foafsint.xdr_mt.obj
71
72 afsaux_mt.obj:afsaux.c
73         $(C2OBJ) afsaux.c -DAFS_PTHREAD_ENV /Foafsaux_mt.obj
74
75 $(MT_LIBFILE): $(MT_LIBOBJS)  
76         $(LIBARCH)  
77
78 install: $(LIBFILE) $(INCFILES) $(MT_LIBFILE)
79
80 clean::
81         $(DEL) *.cs.c *.ss.c *.xdr.c afsint.h afscbint.h