From b6632e894fadccd9f1cbf3d7c86b3e2a4587f056 Mon Sep 17 00:00:00 2001 From: michel Date: Thu, 7 Feb 2008 21:20:49 +0000 Subject: [PATCH] adapted Makefile for cross compiling git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1696 ac1d8469-bf42-47a9-8791-bf33cf982152 --- preprocessor/Makefile.include | 2 ++ preprocessor/macro/Makefile | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/preprocessor/Makefile.include b/preprocessor/Makefile.include index 6b81179fb..a1e03a4e9 100644 --- a/preprocessor/Makefile.include +++ b/preprocessor/Makefile.include @@ -1,3 +1,4 @@ +AR = ar CPP = g++ CPPFLAGS = -Wall @@ -10,6 +11,7 @@ endif ifeq ($(CROSS_WIN32), yes) CPP = i586-mingw32msvc-g++ + AR = i586-mingw32msvc-ar # Detection of uninitialized variables is buggy in MinGW and generates spurious warnings CPPFLAGS += -Wno-uninitialized endif diff --git a/preprocessor/macro/Makefile b/preprocessor/macro/Makefile index e7c5084b3..fbf272714 100644 --- a/preprocessor/macro/Makefile +++ b/preprocessor/macro/Makefile @@ -3,7 +3,7 @@ include ../Makefile.include OBJ = MacroFlex.o MacroBison.o MacroDriver.o libmacro.a: $(OBJ) - ar crs libmacro.a $(OBJ) + $(AR) crs libmacro.a $(OBJ) -include $(OBJ:.o=.P)