ab6ddf61e2ea67295e6448e40d0618f256671cc0
[openafs.git] / src / lwp / 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 # nmake Makefile for NT build of LWP.
9
10 RELDIR=lwp
11 !include ..\config\NTMakefile.$(SYS_NAME)
12 !include ..\config\NTMakefile.version
13
14 LIBOBJS = $(OUT)\lock.obj \
15           $(OUT)\lwp_nt.obj \
16           $(OUT)\iomgr.obj \
17           $(OUT)\timer.obj\
18           $(OUT)\fasttime.obj \
19           $(OUT)\waitkey.obj \
20           $(OUT)\threadname.obj \
21           $(OUT)\AFS_component_version_number.obj
22
23 $(LIBOBJS): $$(@B).c
24     $(C2OBJ) $**
25
26 LIBFILE = $(DESTDIR)\lib\afslwp.lib
27
28 INCFILES = \
29         $(DESTDIR)\include\lock.h \
30         $(DESTDIR)\include\lwp.h \
31         $(DESTDIR)\include\preempt.h \
32         $(DESTDIR)\include\timer.h
33
34 install_headers: $(INCFILES)
35
36 install: install_headers $(LIBFILE)
37
38 $(LIBFILE): $(LIBOBJS)
39         $(LIBARCH)
40
41 tests: $(OUT)\rw.exe
42
43 $(OUT)\rw.exe: $(OUT)\rw.obj $(LIBFILE) $(DESTDIR)\lib\afs\afsutil.lib
44         $(EXECONLINK)
45         $(_VC_MANIFEST_EMBED_EXE)
46         $(CODESIGN_USERLAND)
47         $(SYMSTORE_IMPORT)
48
49 clean::
50         $(DEL) $(LIBFILE)
51
52 mkdir:
53