f267dcd5e4b6d2921dbbfd2046c8165eb2b7e134
[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\jhash.h \
18         $(DESTDIR)\include\opr\queue.h \
19         $(DESTDIR)\include\opr\rbtree.h \
20         $(DESTDIR)\include\opr\time.h \
21         $(DESTDIR)\include\opr\lock.h \
22         $(DESTDIR)\include\opr\lockstub.h \
23         $(DESTDIR)\include\opr\uuid.h
24
25 $(DESTDIR)\include\opr\time.h: opr_time.h
26         $(COPY) $** $@
27
28 $(DESTDIR)\include\opr\lock.h: opr_lock.h
29         $(COPY) $** $@
30
31 LIBFILE = $(DESTDIR)\lib\opr.lib
32
33 LIBOBJS = \
34         $(OUT)\assert.obj \
35         $(OUT)\casestrcpy.obj \
36         $(OUT)\dict.obj \
37         $(OUT)\rbtree.obj \
38         $(OUT)\uuid.obj \
39         $(OUT)\AFS_component_version_number.obj
40
41 $(LIBOBJS): $(INCFILES)
42
43 !if !defined(NMAKE)
44 NTMAKE = nmake /nologo /f ntmakefile
45 !endif
46
47 $(LIBFILE): $(LIBOBJS)
48         $(LIBARCH)
49
50 install_headers: $(INCFILES)
51
52 install: install_headers $(LIBFILE)
53
54 clean::
55         $(DEL) $(INCFILES)
56         $(DEL) $(LIBFILE)