Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
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 = ../../..
9 VPATH = $(CORE_DEPTH)/../dbm/tests
11 MODULE = dbm
13 CSRCS = lots.c
15 PROGRAM = lots
17 include $(DEPTH)/coreconf/config.mk
19 include $(DEPTH)/dbm/config/config.mk
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
27 INCLUDES += -I$(CORE_DEPTH)/../dbm/include
29 LDFLAGS = $(LDOPTS) $(LIBDBM)
31 include $(DEPTH)/coreconf/rules.mk
33 lots.pure: lots
34 purify $(CC) -o lots.pure $(CFLAGS) $(OBJS) $(MYLIBS)
36 crash: crash.o $(MYLIBS)
37 $(CC) -o crash $(CFLAGS) $^
39 crash.pure: crash.o $(MYLIBS)
40 purify $(CC) -o crash.pure $(CFLAGS) $^