adapted Makefile for cross compiling
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1696 ac1d8469-bf42-47a9-8791-bf33cf982152time-shift
parent
4bda21d4db
commit
b6632e894f
|
@ -1,3 +1,4 @@
|
||||||
|
AR = ar
|
||||||
CPP = g++
|
CPP = g++
|
||||||
|
|
||||||
CPPFLAGS = -Wall
|
CPPFLAGS = -Wall
|
||||||
|
@ -10,6 +11,7 @@ endif
|
||||||
|
|
||||||
ifeq ($(CROSS_WIN32), yes)
|
ifeq ($(CROSS_WIN32), yes)
|
||||||
CPP = i586-mingw32msvc-g++
|
CPP = i586-mingw32msvc-g++
|
||||||
|
AR = i586-mingw32msvc-ar
|
||||||
# Detection of uninitialized variables is buggy in MinGW and generates spurious warnings
|
# Detection of uninitialized variables is buggy in MinGW and generates spurious warnings
|
||||||
CPPFLAGS += -Wno-uninitialized
|
CPPFLAGS += -Wno-uninitialized
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -3,7 +3,7 @@ include ../Makefile.include
|
||||||
OBJ = MacroFlex.o MacroBison.o MacroDriver.o
|
OBJ = MacroFlex.o MacroBison.o MacroDriver.o
|
||||||
|
|
||||||
libmacro.a: $(OBJ)
|
libmacro.a: $(OBJ)
|
||||||
ar crs libmacro.a $(OBJ)
|
$(AR) crs libmacro.a $(OBJ)
|
||||||
|
|
||||||
-include $(OBJ:.o=.P)
|
-include $(OBJ:.o=.P)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue