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