2007-07-09 09:29:53 +00:00
|
|
|
# File: libs.win
|
2007-05-28 18:09:49 +00:00
|
|
|
#binaries path:
|
|
|
|
KICAD_BIN = /f/kicad/winexe
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# 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-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-11-27 17:42:15 +00:00
|
|
|
WXWIN=f:/wxMSW-2.8.7
|
2007-05-28 18:09:49 +00:00
|
|
|
endif
|
|
|
|
LIBVERSION = 2.8
|
|
|
|
|
|
|
|
|
|
|
|
# You must comment or uncomment this line to disable/enable python support
|
|
|
|
#KICAD_PYTHON = 1
|
|
|
|
|
|
|
|
FINAL = 1
|
|
|
|
|
|
|
|
ALL_CPPFLAGS = `$(WXWIN)/wx-config --cppflags`
|
|
|
|
EDACPPFLAGS = $(ALL_CPPFLAGS) $(ALL_CXXFLAGS) $(EXTRACPPFLAGS)
|
|
|
|
EDALIBS = $(EXTRALIBS)
|
|
|
|
|
|
|
|
ifdef KICAD_PYTHON
|
|
|
|
BOOST_PATH=/d/boost
|
|
|
|
PYTHON_PATH=/c/Python25
|
|
|
|
PYLIBS= -L$(PYTHON_PATH)/libs
|
|
|
|
PYLIBS+= -L $(PYTHON_PATH)/Lib
|
|
|
|
PYLIBS+= -lpython2.5
|
|
|
|
EXTRACPPFLAGS+=-I $(PYTHON_PATH)/include -DKICAD_PYTHON -I $(BOOST_PATH) -fno-strict-aliasing -ggdb
|
|
|
|
endif
|
|
|
|
|
|
|
|
SYSWXLIB = `$(WXWIN)/wx-config --libs gl`\
|
|
|
|
-lwxpng-$(LIBVERSION) -lwxjpeg-$(LIBVERSION) -lwxzlib-$(LIBVERSION) $(PYLIBS)
|
|
|
|
|
2007-10-06 16:16:48 +00:00
|
|
|
CC = gcc
|
|
|
|
|
2007-05-28 18:09:49 +00:00
|
|
|
.cpp.o:
|
|
|
|
gcc -c -Wall $(ALL_CPPFLAGS) $(ALL_CXXFLAGS) $(EXTRACPPFLAGS) -o $@ $*.cpp
|
|
|
|
|
|
|
|
# Settings for Cyginw/Mingw32
|
|
|
|
# Some versions of windres cannot cope with the --preprocessor
|
|
|
|
# option. Uncomment the RCPREPROCESSOR line below if yours can.
|
|
|
|
ifndef WINE
|
|
|
|
RESCOMP=$(CROSS)windres $(_USE_TEMP_FILE_IF_SUPPORTED)
|
|
|
|
else
|
|
|
|
RESCOMP=wrc
|
|
|
|
endif
|
|
|
|
RCINPUTSWITCH=-i
|
|
|
|
RCOUTPUTSWITCH=-o
|
|
|
|
RCINCSWITCH=--include-dir
|
|
|
|
RCDEFSWITCH=--define
|
|
|
|
# Note that this can cause windres to fail (Win95/98 problem?)
|
|
|
|
# but commenting out RCPREPROCESSOR then does the trick.
|
|
|
|
#RCPREPROCESSOR=--preprocessor "$(CXX) -c -E -xc-header -DRC_INVOKED"
|
|
|
|
|
|
|
|
# Don't make this too long (e.g. by adding contrib/include/wx) because it will
|
|
|
|
# truncate the command line
|
|
|
|
RESFLAGS=$(RCPREPROCESSOR) $(RCINCSWITCH) $(WXDIR)/include $(RCEXTRAINC) $(RCDEFSWITCH) __WIN32__ $(RCDEFSWITCH) __WIN95__ $(RCDEFSWITCH) __GNUWIN32__
|