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 #
2 # This Source Code Form is subject to the terms of the Mozilla Public
3 # License, v. 2.0. If a copy of the MPL was not distributed with this
4 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
6 DEPTH = ../..
7 CORE_DEPTH = ../..
9 MODULE = coreconf
11 CSRCS = nsinstall.c pathsub.c
13 PROGRAM = nsinstall
15 # Indicate that this directory builds build tools.
16 INTERNAL_TOOLS = 1
19 include $(DEPTH)/coreconf/config.mk
21 ifeq (,$(filter-out OS2 WIN%,$(OS_TARGET)))
22 PROGRAM =
23 else
24 TARGETS = $(PROGRAM)
25 INSTALL = true
26 endif
28 ifdef NATIVE_CC
29 CC=$(NATIVE_CC)
30 endif
32 ifdef NATIVE_FLAGS
33 OS_CFLAGS=$(NATIVE_FLAGS)
34 endif
36 include $(DEPTH)/coreconf/rules.mk
38 # Redefine MAKE_OBJDIR for just this directory
39 define MAKE_OBJDIR
40 if test ! -d $(@D); then rm -rf $(@D); mkdir $(@D); fi
41 endef