Mercurial > trustbridge > nss-cmake-static
comparison nss/lib/dbm/tests/Makefile @ 3:150b72113545
Add DBM and legacydb support
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Tue, 05 Aug 2014 18:32:02 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
2:a945361df361 | 3:150b72113545 |
---|---|
1 #! gmake | |
2 # | |
3 # This Source Code Form is subject to the terms of the Mozilla Public | |
4 # License, v. 2.0. If a copy of the MPL was not distributed with this | |
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/. | |
6 DEPTH = ../../.. | |
7 CORE_DEPTH = ../../.. | |
8 | |
9 VPATH = $(CORE_DEPTH)/../dbm/tests | |
10 | |
11 MODULE = dbm | |
12 | |
13 CSRCS = lots.c | |
14 | |
15 PROGRAM = lots | |
16 | |
17 include $(DEPTH)/coreconf/config.mk | |
18 | |
19 include $(DEPTH)/dbm/config/config.mk | |
20 | |
21 ifeq (,$(filter-out WIN%,$(OS_TARGET))) | |
22 LIBDBM = ../src/$(PLATFORM)/dbm$(STATIC_LIB_SUFFIX) | |
23 else | |
24 LIBDBM = ../src/$(PLATFORM)/libdbm$(STATIC_LIB_SUFFIX) | |
25 endif | |
26 | |
27 INCLUDES += -I$(CORE_DEPTH)/../dbm/include | |
28 | |
29 LDFLAGS = $(LDOPTS) $(LIBDBM) | |
30 | |
31 include $(DEPTH)/coreconf/rules.mk | |
32 | |
33 lots.pure: lots | |
34 purify $(CC) -o lots.pure $(CFLAGS) $(OBJS) $(MYLIBS) | |
35 | |
36 crash: crash.o $(MYLIBS) | |
37 $(CC) -o crash $(CFLAGS) $^ | |
38 | |
39 crash.pure: crash.o $(MYLIBS) | |
40 purify $(CC) -o crash.pure $(CFLAGS) $^ | |
41 |