Import Upstream version 1.8.5
[hcoop/debian/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)\casestrcpy.obj \
40 $(OUT)\dict.obj \
41 $(OUT)\fmt.obj \
42 $(OUT)\proc.obj \
43 $(OUT)\rbtree.obj \
44 $(OUT)\uuid.obj \
45 $(OUT)\AFS_component_version_number.obj
46
47 $(LIBOBJS): $(INCFILES)
48
49 !if !defined(NMAKE)
50 NTMAKE = nmake /nologo /f ntmakefile
51 !endif
52
53 $(LIBFILE): $(LIBOBJS)
54 $(LIBARCH)
55
56 install_headers: $(INCFILES)
57
58 install: install_headers $(LIBFILE)
59
60 clean::
61 $(DEL) $(INCFILES)
62 $(DEL) $(LIBFILE)