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
michael@0 | 1 | #! gmake |
michael@0 | 2 | # |
michael@0 | 3 | # This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 4 | # License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 5 | # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
michael@0 | 6 | DEPTH = ../../.. |
michael@0 | 7 | CORE_DEPTH = ../../.. |
michael@0 | 8 | |
michael@0 | 9 | VPATH = $(CORE_DEPTH)/../dbm/tests |
michael@0 | 10 | |
michael@0 | 11 | MODULE = dbm |
michael@0 | 12 | |
michael@0 | 13 | CSRCS = lots.c |
michael@0 | 14 | |
michael@0 | 15 | PROGRAM = lots |
michael@0 | 16 | |
michael@0 | 17 | include $(DEPTH)/coreconf/config.mk |
michael@0 | 18 | |
michael@0 | 19 | include $(DEPTH)/dbm/config/config.mk |
michael@0 | 20 | |
michael@0 | 21 | ifeq (,$(filter-out WIN%,$(OS_TARGET))) |
michael@0 | 22 | LIBDBM = ../src/$(PLATFORM)/dbm$(STATIC_LIB_SUFFIX) |
michael@0 | 23 | else |
michael@0 | 24 | LIBDBM = ../src/$(PLATFORM)/libdbm$(STATIC_LIB_SUFFIX) |
michael@0 | 25 | endif |
michael@0 | 26 | |
michael@0 | 27 | INCLUDES += -I$(CORE_DEPTH)/../dbm/include |
michael@0 | 28 | |
michael@0 | 29 | LDFLAGS = $(LDOPTS) $(LIBDBM) |
michael@0 | 30 | |
michael@0 | 31 | include $(DEPTH)/coreconf/rules.mk |
michael@0 | 32 | |
michael@0 | 33 | lots.pure: lots |
michael@0 | 34 | purify $(CC) -o lots.pure $(CFLAGS) $(OBJS) $(MYLIBS) |
michael@0 | 35 | |
michael@0 | 36 | crash: crash.o $(MYLIBS) |
michael@0 | 37 | $(CC) -o crash $(CFLAGS) $^ |
michael@0 | 38 | |
michael@0 | 39 | crash.pure: crash.o $(MYLIBS) |
michael@0 | 40 | purify $(CC) -o crash.pure $(CFLAGS) $^ |
michael@0 | 41 |