d2beadb3344993def7a012b87bc2125222fb67f6
[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 !INCLUDE ..\..\config\NTMakefile.$(SYS_NAME)
9 !INCLUDE ..\..\config\NTMakefile.version
10
11
12 ############################################################################
13 # Export header files
14
15 LIBINCLUDES = \
16         $(DESTDIR)\include\pthread.h
17
18 ############################################################################
19 # Build standard pthread.dll
20
21 PTHR_DLLFILE = $(DESTDIR)\lib\pthread.dll
22
23 PTHR_DLLOBJS = \
24         pthread.obj \
25         pthread.res
26
27 $(PTHR_DLLFILE): $(PTHR_DLLOBJS)
28         $(DLLCONLINK) /DEF:pthread.def
29         $(DLLPREP)
30
31 ############################################################################
32 # Build Windows 95 version of pthread.dll
33
34 PTHR95_DLLFILE = $(DESTDIR)\lib\win95\pthread.dll
35
36 PTHR95_DLLOBJS = \
37         pthread_95.obj \
38         pthread95.res
39
40 $(PTHR95_DLLFILE): $(PTHR95_DLLOBJS)
41         $(DLLCONLINK) /DEF:pthread.def
42         $(DLLPREP)
43
44 pthread_95.obj: pthread.c
45         $(C2OBJ) pthread.c -DAFS_WIN95_ENV /Fopthread_95.obj
46
47 install: $(PTHR95_DLLFILE) $(PTHR_DLLFILE) $(LIBINCLUDES)
48
49 install9x: install
50
51 pthread.res: pthread.rc AFS_component_version_number.h
52         $(RC) $*.rc
53
54 pthread95.res: pthread95.rc AFS_component_version_number.h
55         $(RC) $*.rc
56
57 clean::
58         $(DEL) /q $(DESTDIR)\lib\win95\*.*