# # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. DEPTH = ../.. topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk USE_STATIC_LIBS = 1 MODULE = mkdepend HOST_PROGRAM = mkdepend$(BIN_SUFFIX) ifdef GNU_CC MODULE_OPTIMIZE_FLAGS = -O3 else ifeq ($(OS_ARCH),SunOS) MODULE_OPTIMIZE_FLAGS = -fast endif endif ifeq ($(OS_ARCH),WINNT) ifndef GNU_CC MODULE_OPTIMIZE_FLAGS = -Ox endif endif HOST_CSRCS = \ cppsetup.c \ ifparser.c \ include.c \ main.c \ parse.c \ pr.c \ $(NULL) include $(topsrcdir)/config/rules.mk HOST_CFLAGS += -DINCLUDEDIR=\"/usr/include\" -DOBJSUFFIX=\".$(OBJ_SUFFIX)\" ifdef GNU_CC _GCCDIR = $(shell $(CC) -print-file-name=include) HOST_CFLAGS += -DPREINCDIR=\"$(_GCCDIR)\" endif export:: $(HOST_PROGRAM) $(HOST_OBJS): def.h ifparser.h imakemdep.h