Makefile (831B)
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/. 5 6 DEPTH = ../.. 7 CORE_DEPTH = ../.. 8 9 MODULE = coreconf 10 11 CSRCS = nsinstall.c pathsub.c 12 13 PROGRAM = nsinstall 14 15 # Indicate that this directory builds build tools. 16 INTERNAL_TOOLS = 1 17 18 19 include $(DEPTH)/coreconf/config.mk 20 21 ifeq (,$(filter-out WIN%,$(OS_TARGET))) 22 PROGRAM = 23 TARGETS = 24 else 25 TARGETS = $(PROGRAM) 26 INSTALL = true 27 endif 28 29 ifdef NATIVE_CC 30 CC=$(NATIVE_CC) 31 endif 32 33 ifdef NATIVE_FLAGS 34 OS_CFLAGS=$(NATIVE_FLAGS) 35 endif 36 37 ifdef NATIVE_LDFLAGS 38 LDFLAGS=$(NATIVE_LDFLAGS) 39 endif 40 41 include $(DEPTH)/coreconf/rules.mk 42 43 # Redefine MAKE_OBJDIR for just this directory 44 define MAKE_OBJDIR 45 if test ! -d $(@D); then mkdir -p $(@D); fi 46 endef