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