2007-07-09 09:29:53 +00:00
|
|
|
# File: libs.win
|
2007-05-28 18:09:49 +00:00
|
|
|
#binaries path:
|
2008-04-28 06:36:29 +00:00
|
|
|
KICAD_BIN = /f/kicad/bin
|
2007-05-28 18:09:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Target WXMAKINGDLL WXUSINGDLL WXBUILDDLL
|
|
|
|
# wxWin DLL 1 0 1
|
|
|
|
# wxWin STATIC 0 0 0
|
|
|
|
# App use wxWin DLL 0 1 0
|
|
|
|
# DLL use wxWin DLL 0 1 1
|
|
|
|
# DLL use wxWin STATIC 0 0 1
|
|
|
|
#
|
|
|
|
|
2007-12-30 18:20:51 +00:00
|
|
|
# turn on/OFF debugging for all executables, only tested without KICAD_PYTHON
|
|
|
|
DEBUG = 0
|
|
|
|
|
|
|
|
|
2007-07-09 09:29:53 +00:00
|
|
|
#comment this for static wxWidgets link
|
2007-05-28 18:09:49 +00:00
|
|
|
#WXUSINGDLL = 1
|
|
|
|
|
|
|
|
#Define the wxWidget path (if not found in environment variables):
|
|
|
|
ifndef WXWIN
|
2007-12-30 18:20:51 +00:00
|
|
|
ifeq ($(DEBUG), 1)
|
2009-02-21 07:28:14 +00:00
|
|
|
WXWIN=f:/wxMSW-2.8.910-rc2/Debug
|
2007-12-30 18:20:51 +00:00
|
|
|
else
|
2009-02-21 07:28:14 +00:00
|
|
|
WXWIN=f:/wxMSW-2.8.10-rc2/Release
|
2007-05-28 18:09:49 +00:00
|
|
|
endif
|
2007-12-30 18:20:51 +00:00
|
|
|
endif
|
2007-05-28 18:09:49 +00:00
|
|
|
LIBVERSION = 2.8
|
|
|
|
|
2009-02-20 14:31:16 +00:00
|
|
|
BOOST_LIB=/f/boost/boost
|
2008-11-27 18:42:19 +00:00
|
|
|
|
2007-05-28 18:09:49 +00:00
|
|
|
|
|
|
|
# You must comment or uncomment this line to disable/enable python support
|
|
|
|
#KICAD_PYTHON = 1
|
|
|
|
|
2007-12-30 18:20:51 +00:00
|
|
|
|
|
|
|
ifeq ($(DEBUG), 1)
|
|
|
|
CPPFLAGS = -Wall -g3 -ggdb3 -DDEBUG ${WXXFLAGS} -fno-strict-aliasing
|
|
|
|
ALL_LDFLAGS = -g3 -ggdb3 #-v
|
|
|
|
else
|
|
|
|
CPPFLAGS = -Wall -O2 ${WXXFLAGS} -fno-strict-aliasing
|
|
|
|
ALL_LDFLAGS = -s #-v
|
2007-05-28 18:09:49 +00:00
|
|
|
FINAL = 1
|
2007-12-30 18:20:51 +00:00
|
|
|
endif
|
2007-05-28 18:09:49 +00:00
|
|
|
|
2009-02-20 14:31:16 +00:00
|
|
|
CPPFLAGS += -I $(BOOST_LIB)
|
2008-12-04 20:53:11 +00:00
|
|
|
|
2007-12-30 18:20:51 +00:00
|
|
|
ALL_CPPFLAGS = `$(WXWIN)/wx-config --cppflags` $(CPPFLAGS)
|
2007-05-28 18:09:49 +00:00
|
|
|
EDACPPFLAGS = $(ALL_CPPFLAGS) $(ALL_CXXFLAGS) $(EXTRACPPFLAGS)
|
|
|
|
EDALIBS = $(EXTRALIBS)
|
|
|
|
|
|
|
|
ifdef KICAD_PYTHON
|
|
|
|
PYTHON_PATH=/c/Python25
|
|
|
|
PYLIBS= -L$(PYTHON_PATH)/libs
|
|
|
|
PYLIBS+= -L $(PYTHON_PATH)/Lib
|
|
|
|
PYLIBS+= -lpython2.5
|
2008-12-04 20:53:11 +00:00
|
|
|
EXTRACPPFLAGS+=-I $(PYTHON_PATH)/include -DKICAD_PYTHON -ggdb
|
2007-05-28 18:09:49 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
SYSWXLIB = `$(WXWIN)/wx-config --libs gl`\
|
|
|
|
-lwxpng-$(LIBVERSION) -lwxjpeg-$(LIBVERSION) -lwxzlib-$(LIBVERSION) $(PYLIBS)
|
|
|
|
|
2009-01-04 18:52:57 +00:00
|
|
|
|
2007-10-06 16:16:48 +00:00
|
|
|
CC = gcc
|
|
|
|
|
2007-05-28 18:09:49 +00:00
|
|
|
.cpp.o:
|
2008-10-25 10:21:46 +00:00
|
|
|
g++ -c -Wall $(ALL_CPPFLAGS) $(ALL_CXXFLAGS) $(EXTRACPPFLAGS) -o $@ $*.cpp
|
2007-05-28 18:09:49 +00:00
|
|
|
|
2009-02-21 07:28:14 +00:00
|
|
|
# Settings for Mingw32
|
|
|
|
RESCOMP=`$(WXWIN)/wx-config --rescomp`
|