127c4079655e697150108345557c970b0ab17c9e
[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\uuid.h
27
28 $(DESTDIR)\include\opr\time.h: opr_time.h
29         $(COPY) $** $@
30
31 $(DESTDIR)\include\opr\lock.h: opr_lock.h
32         $(COPY) $** $@
33
34 LIBFILE = $(DESTDIR)\lib\opr.lib
35
36 LIBOBJS = \
37         $(OUT)\assert.obj \
38         $(OUT)\casestrcpy.obj \
39         $(OUT)\dict.obj \
40         $(OUT)\fmt.obj \
41         $(OUT)\proc.obj \
42         $(OUT)\rbtree.obj \
43         $(OUT)\uuid.obj \
44         $(OUT)\AFS_component_version_number.obj
45
46 $(LIBOBJS): $(INCFILES)
47
48 !if !defined(NMAKE)
49 NTMAKE = nmake /nologo /f ntmakefile
50 !endif
51
52 $(LIBFILE): $(LIBOBJS)
53         $(LIBARCH)
54
55 install_headers: $(INCFILES)
56
57 install: install_headers $(LIBFILE)
58
59 clean::
60         $(DEL) $(INCFILES)
61         $(DEL) $(LIBFILE)