security/nss/coreconf/mkdepend/Makefile

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

michael@0 1 # This Source Code Form is subject to the terms of the Mozilla Public
michael@0 2 # License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
michael@0 4
michael@0 5 DEPTH = ../..
michael@0 6 CORE_DEPTH = ../..
michael@0 7
michael@0 8 MODULE = coreconf
michael@0 9
michael@0 10 CSRCS = \
michael@0 11 cppsetup.c \
michael@0 12 ifparser.c \
michael@0 13 include.c \
michael@0 14 main.c \
michael@0 15 parse.c \
michael@0 16 pr.c
michael@0 17
michael@0 18 PROGRAM = mkdepend
michael@0 19
michael@0 20 # Indicate that this directory builds build tools.
michael@0 21 INTERNAL_TOOLS = 1
michael@0 22
michael@0 23
michael@0 24 include $(DEPTH)/coreconf/config.mk
michael@0 25
michael@0 26 TARGETS = $(PROGRAM)
michael@0 27 ifeq (,$(filter-out OS2 WIN%,$(OS_TARGET)))
michael@0 28 DEFINES += -DNO_X11
michael@0 29 else
michael@0 30 INSTALL = true
michael@0 31 endif
michael@0 32
michael@0 33 ifdef NATIVE_CC
michael@0 34 CC=$(NATIVE_CC)
michael@0 35 endif
michael@0 36
michael@0 37 ifdef NATIVE_FLAGS
michael@0 38 OS_CFLAGS=$(NATIVE_FLAGS)
michael@0 39 endif
michael@0 40
michael@0 41 include $(DEPTH)/coreconf/rules.mk
michael@0 42
michael@0 43 ifdef GNU_CC
michael@0 44 OPTIMIZER = -O3
michael@0 45 else
michael@0 46 ifeq ($(OS_ARCH),SunOS)
michael@0 47 OPTIMIZER = -fast
michael@0 48 endif
michael@0 49 ifeq ($(OS_ARCH),WINNT)
michael@0 50 OPTIMIZER = -Ox
michael@0 51 endif
michael@0 52 endif
michael@0 53
michael@0 54 DEFINES += -DINCLUDEDIR=\"/usr/include\" -DOBJSUFFIX=\".$(OBJ_SUFFIX)\"
michael@0 55
michael@0 56 # Redefine MAKE_OBJDIR for just this directory
michael@0 57 define MAKE_OBJDIR
michael@0 58 if test ! -d $(@D); then rm -rf $(@D); mkdir $(@D); fi
michael@0 59 endef
michael@0 60

mercurial