NTMakefile revision 1.1.1.1.14.2 1 ########################################################################
2 #
3 # Copyright (c) 2010, Secure Endpoints Inc.
4 # All rights reserved.
5 #
6 # Redistribution and use in source and binary forms, with or without
7 # modification, are permitted provided that the following conditions
8 # are met:
9 #
10 # - Redistributions of source code must retain the above copyright
11 # notice, this list of conditions and the following disclaimer.
12 #
13 # - Redistributions in binary form must reproduce the above copyright
14 # notice, this list of conditions and the following disclaimer in
15 # the documentation and/or other materials provided with the
16 # distribution.
17 #
18 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
21 # FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
22 # COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
23 # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
24 # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
25 # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
26 # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
28 # ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29 # POSSIBILITY OF SUCH DAMAGE.
30 #
31
32 RELDIR=lib\base
33
34 intcflags=-I$(SRCDIR) -I$(OBJ)
35
36 !include ../../windows/NTMakefile.w32
37
38 INCFILES=$(INCDIR)\heimbase.h
39
40 test_binaries = $(OBJ)\test_base.exe
41
42 libheimbase_OBJS = \
43 $(OBJ)\array.obj \
44 $(OBJ)\bool.obj \
45 $(OBJ)\bsearch.obj \
46 $(OBJ)\data.obj \
47 $(OBJ)\db.obj \
48 $(OBJ)\dict.obj \
49 $(OBJ)\dll.obj \
50 $(OBJ)\error.obj \
51 $(OBJ)\heimbase.obj \
52 $(OBJ)\json.obj \
53 $(OBJ)\null.obj \
54 $(OBJ)\number.obj \
55 $(OBJ)\string.obj
56
57 $(LIBHEIMBASE): $(libheimbase_OBJS)
58 $(LIBCON_C) -OUT:$@ $(LIBROKEN) @<<
59 $(libheimbase_OBJS: =
60 )
61 <<
62
63 test:: test-binaries test-run
64
65 test-run:
66 cd $(OBJ)
67 -test_base.exe
68 cd $(SRCDIR)
69
70 all:: $(INCFILES) $(LIBHEIMBASE)
71
72 clean::
73 -$(RM) $(INCFILES)
74
75 test-binaries: $(test_binaries)
76
77 $(test_binaries): $$(@R).obj $(LIBHEIMBASE) $(LIBVERS) $(LIBROKEN)
78 $(EXECONLINK)
79 $(EXEPREP_NODIST)
80
81 $(test_binaries:.exe=.obj): $$(@B).c
82 $(C2OBJ_C) -Fo$@ -Fd$(@D)\ $** -DBlah
83