← Back to team overview

kicad-developers team mailing list archive

Patch: Fix Windows makefiles


This patch (against kicad-sources-2006-03-28) is for building with mingw/msys on Windows.

Without this patch, nothing compiles, because the compiler can't find wx/setup.h in the standard place.

The root cause of the problem is that "makeg95.env" defines ALL_CPPFLAGS with "=" instead of "+=", so predefining ALL_CPPFLAGS in libs.win is ineffective.

In libs.win, delete the lines:

SRCSUFF = .cpp

(they conflict with slightly different definitions in "makeg95.env").

In */makefile.include, exchange the lines

include ../libs.win
include ../makeg95.env

so that the order becomes:

include ../makeg95.env
include ../libs.win

Follow ups