michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: DEPTH = ../.. michael@0: CORE_DEPTH = ../.. michael@0: michael@0: MODULE = coreconf michael@0: michael@0: CSRCS = \ michael@0: cppsetup.c \ michael@0: ifparser.c \ michael@0: include.c \ michael@0: main.c \ michael@0: parse.c \ michael@0: pr.c michael@0: michael@0: PROGRAM = mkdepend michael@0: michael@0: # Indicate that this directory builds build tools. michael@0: INTERNAL_TOOLS = 1 michael@0: michael@0: michael@0: include $(DEPTH)/coreconf/config.mk michael@0: michael@0: TARGETS = $(PROGRAM) michael@0: ifeq (,$(filter-out OS2 WIN%,$(OS_TARGET))) michael@0: DEFINES += -DNO_X11 michael@0: else michael@0: INSTALL = true michael@0: endif michael@0: michael@0: ifdef NATIVE_CC michael@0: CC=$(NATIVE_CC) michael@0: endif michael@0: michael@0: ifdef NATIVE_FLAGS michael@0: OS_CFLAGS=$(NATIVE_FLAGS) michael@0: endif michael@0: michael@0: include $(DEPTH)/coreconf/rules.mk michael@0: michael@0: ifdef GNU_CC michael@0: OPTIMIZER = -O3 michael@0: else michael@0: ifeq ($(OS_ARCH),SunOS) michael@0: OPTIMIZER = -fast michael@0: endif michael@0: ifeq ($(OS_ARCH),WINNT) michael@0: OPTIMIZER = -Ox michael@0: endif michael@0: endif michael@0: michael@0: DEFINES += -DINCLUDEDIR=\"/usr/include\" -DOBJSUFFIX=\".$(OBJ_SUFFIX)\" michael@0: michael@0: # Redefine MAKE_OBJDIR for just this directory michael@0: define MAKE_OBJDIR michael@0: if test ! -d $(@D); then rm -rf $(@D); mkdir $(@D); fi michael@0: endef michael@0: