1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/security/nss/coreconf/mkdepend/Makefile Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,60 @@ 1.4 +# This Source Code Form is subject to the terms of the Mozilla Public 1.5 +# License, v. 2.0. If a copy of the MPL was not distributed with this 1.6 +# file, You can obtain one at http://mozilla.org/MPL/2.0/. 1.7 + 1.8 +DEPTH = ../.. 1.9 +CORE_DEPTH = ../.. 1.10 + 1.11 +MODULE = coreconf 1.12 + 1.13 +CSRCS = \ 1.14 + cppsetup.c \ 1.15 + ifparser.c \ 1.16 + include.c \ 1.17 + main.c \ 1.18 + parse.c \ 1.19 + pr.c 1.20 + 1.21 +PROGRAM = mkdepend 1.22 + 1.23 +# Indicate that this directory builds build tools. 1.24 +INTERNAL_TOOLS = 1 1.25 + 1.26 + 1.27 +include $(DEPTH)/coreconf/config.mk 1.28 + 1.29 +TARGETS = $(PROGRAM) 1.30 +ifeq (,$(filter-out OS2 WIN%,$(OS_TARGET))) 1.31 +DEFINES += -DNO_X11 1.32 +else 1.33 +INSTALL = true 1.34 +endif 1.35 + 1.36 +ifdef NATIVE_CC 1.37 +CC=$(NATIVE_CC) 1.38 +endif 1.39 + 1.40 +ifdef NATIVE_FLAGS 1.41 +OS_CFLAGS=$(NATIVE_FLAGS) 1.42 +endif 1.43 + 1.44 +include $(DEPTH)/coreconf/rules.mk 1.45 + 1.46 +ifdef GNU_CC 1.47 +OPTIMIZER = -O3 1.48 +else 1.49 +ifeq ($(OS_ARCH),SunOS) 1.50 +OPTIMIZER = -fast 1.51 +endif 1.52 +ifeq ($(OS_ARCH),WINNT) 1.53 +OPTIMIZER = -Ox 1.54 +endif 1.55 +endif 1.56 + 1.57 +DEFINES += -DINCLUDEDIR=\"/usr/include\" -DOBJSUFFIX=\".$(OBJ_SUFFIX)\" 1.58 + 1.59 +# Redefine MAKE_OBJDIR for just this directory 1.60 +define MAKE_OBJDIR 1.61 +if test ! -d $(@D); then rm -rf $(@D); mkdir $(@D); fi 1.62 +endef 1.63 +