98c9d3d6d9a5b53df1a90eff1bf157ce1a91ebbf
[openafs.git] / src / opr / NTMakefile
1 # Copyright 2011, Your File System Inc
2 # All rights reserved
3 #
4 # This software has been released under the terms of the BSD License
5 # For details, see the LICENSE file in the top level source directory
6
7 RELDIR=opr
8 !include ..\config\NTMakefile.$(SYS_NAME)
9 !include ..\config\NTMakefile.version
10
11 INCFILEDIR = $(DESTDIR)\include\afs
12
13 INCFILES = \
14         $(INCFILEDIR)\opr.h \
15         $(INCFILEDIR)\opr_assert.h \
16         $(DESTDIR)\include\opr\dict.h \
17         $(DESTDIR)\include\opr\ffs.h \
18         $(DESTDIR)\include\opr\fmt.h \
19         $(DESTDIR)\include\opr\jhash.h \
20         $(DESTDIR)\include\opr\proc.h \
21         $(DESTDIR)\include\opr\queue.h \
22         $(DESTDIR)\include\opr\rbtree.h \
23         $(DESTDIR)\include\opr\time.h \
24         $(DESTDIR)\include\opr\lock.h \
25         $(DESTDIR)\include\opr\lockstub.h \
26         $(DESTDIR)\include\opr\softsig.h \
27         $(DESTDIR)\include\opr\uuid.h
28
29 $(DESTDIR)\include\opr\time.h: opr_time.h
30         $(COPY) $** $@
31
32 $(DESTDIR)\include\opr\lock.h: opr_lock.h
33         $(COPY) $** $@
34
35 LIBFILE = $(DESTDIR)\lib\opr.lib
36
37 LIBOBJS = \
38         $(OUT)\assert.obj \
39         $(OUT)\cache.obj \
40         $(OUT)\casestrcpy.obj \
41         $(OUT)\dict.obj \
42         $(OUT)\fmt.obj \
43         $(OUT)\proc.obj \
44         $(OUT)\rbtree.obj \
45         $(OUT)\uuid.obj \
46         $(OUT)\AFS_component_version_number.obj
47
48 $(LIBOBJS): $(INCFILES)
49
50 !if !defined(NMAKE)
51 NTMAKE = nmake /nologo /f ntmakefile
52 !endif
53
54 $(LIBFILE): $(LIBOBJS)
55         $(LIBARCH)
56
57 install_headers: $(INCFILES)
58
59 install: install_headers $(LIBFILE)
60
61 clean::
62         $(DEL) $(INCFILES)
63         $(DEL) $(LIBFILE)