windows-64-bit-type-safety-20051105
[openafs.git] / src / libadmin / pts / 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 AFSDEV_AUXCDEFINES = -DAFS_PTHREAD_ENV
9
10 RELDIR=libadmin\pts
11 !include ..\..\config\NTMakefile.$(SYS_NAME)
12 !include ..\..\config\NTMakefile.version
13
14 PTSERVER = ..\..\ptserver
15 RX = ..\..\rx
16
17 RXOBJS = $(OUT)\xdr_int32.obj $(OUT)\xdr_int64.obj
18
19 PTSERVEROBJS = \
20         $(OUT)\ptint.xdr.obj $(OUT)\ptint.cs.obj
21
22 ADMINOBJS = \
23         $(OUT)\afs_ptsAdmin.obj
24
25 DLLOBJS =\
26         $(ADMINOBJS) \
27         $(PTSERVEROBJS) \
28         $(RXOBJS) \
29         $(OUT)\afsptsadmin.res
30
31 LIBINCLUDES = \
32         $(DESTDIR)\include\afs\afs_ptsAdmin.h
33
34 DLLFILE = $(DESTDIR)\root.server\usr\afs\bin\afsptsadmin.dll
35 ILIBDIR = $(DESTDIR)\lib\afs
36
37 DLLLIBS =\
38         $(DESTDIR)\lib\afs\afsadminutil.lib \
39         $(DESTDIR)\lib\afsauthent.lib \
40         $(DESTDIR)\lib\afsrpc.lib \
41         $(DESTDIR)\lib\afspthread.lib
42
43 $(DLLFILE): $(DLLOBJS) $(DLLLIBS)
44         $(DLLCONLINK) /DEF:ptsadmin.def
45         $(_VC_MANIFEST_EMBED_DLL)
46         $(DLLPREP)
47         $(COPY) $*.lib $(ILIBDIR)
48         $(DEL) $*.lib $*.exp
49
50
51
52 install: $(DLLFILE) $(LIBINCLUDES)
53
54 $(RXOBJS): $(RX)\$$(@B).c
55         $(C2OBJ) -I$(RX) $**
56
57 $(PTSERVEROBJS): $(PTSERVER)\$$(@B).c
58         $(C2OBJ) $**
59
60 # Definitions for generating versioninfo resources
61
62 $(OUT)\afsptsadmin.res: AFS_component_version_number.h
63
64 mkdir:
65