Windows: Move grmutex, etc. to afspthread.dll
[openafs.git] / src / WINNT / pthread / 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=WINNT\pthread
9 !INCLUDE ..\..\config\NTMakefile.$(SYS_NAME)
10 !INCLUDE ..\..\config\NTMakefile.version
11
12 ############################################################################
13 # Export header files
14
15 LIBINCLUDES = \
16         $(DESTDIR)\include\pthread.h
17
18 ############################################################################
19 # Build standard afspthread.dll
20
21 PTHR_DLLFILE = $(DESTDIR)\lib\afspthread.dll
22
23 UTIL = ..\..\util
24
25 $(OUT)\pthread.res: pthread.rc AFS_component_version_number.h
26         $(RC) /fo$*.res $(*F).rc
27
28 PTHR_DLLOBJS = \
29         $(OUT)\pthread.obj \
30         $(OUT)\pthread.res
31
32 UTILOBJS = \
33         $(OUT)\pthread_glock.obj
34
35 $(UTILOBJS): $(UTIL)\$$(@B).c
36         $(C2OBJ) -I$(UTIL) -DAFS_PTHREAD_ENV $**
37
38 $(PTHR_DLLFILE): $(PTHR_DLLOBJS) $(UTILOBJS)
39         $(DLLCONLINK) /DEF:pthread.def
40         $(_VC_MANIFEST_EMBED_DLL)
41         $(DLLPREP)
42         $(CODESIGN_USERLAND)
43         $(SYMSTORE_IMPORT)
44         $(MAKECYGLIB) --input-def pthread.def
45
46 install: $(PTHR_DLLFILE) $(LIBINCLUDES)
47
48 clean::
49
50 mkdir:
51