You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

89 lines
2.3 KiB

  1. # File: libs.win
  2. #binaries path:
  3. KICAD_BIN = /f/kicad/bin
  4. # Target WXMAKINGDLL WXUSINGDLL WXBUILDDLL
  5. # wxWin DLL 1 0 1
  6. # wxWin STATIC 0 0 0
  7. # App use wxWin DLL 0 1 0
  8. # DLL use wxWin DLL 0 1 1
  9. # DLL use wxWin STATIC 0 0 1
  10. #
  11. # turn on/OFF debugging for all executables, only tested without KICAD_PYTHON
  12. DEBUG = 0
  13. #comment this for static wxWidgets link
  14. #WXUSINGDLL = 1
  15. #Define the wxWidget path (if not found in environment variables):
  16. ifndef WXWIN
  17. ifeq ($(DEBUG), 1)
  18. WXWIN=f:/wxMSW-2.8.9-debug
  19. else
  20. WXWIN=f:/wxMSW-2.8.9
  21. endif
  22. endif
  23. LIBVERSION = 2.8
  24. BOOST_PATH=/f/boost/boost
  25. # You must comment or uncomment this line to disable/enable python support
  26. #KICAD_PYTHON = 1
  27. ifeq ($(DEBUG), 1)
  28. CPPFLAGS = -Wall -g3 -ggdb3 -DDEBUG ${WXXFLAGS} -fno-strict-aliasing
  29. ALL_LDFLAGS = -g3 -ggdb3 #-v
  30. else
  31. CPPFLAGS = -Wall -O2 ${WXXFLAGS} -fno-strict-aliasing
  32. ALL_LDFLAGS = -s #-v
  33. FINAL = 1
  34. endif
  35. CPPFLAGS += -I $(BOOST_PATH)
  36. ALL_CPPFLAGS = `$(WXWIN)/wx-config --cppflags` $(CPPFLAGS)
  37. EDACPPFLAGS = $(ALL_CPPFLAGS) $(ALL_CXXFLAGS) $(EXTRACPPFLAGS)
  38. EDALIBS = $(EXTRALIBS)
  39. ifdef KICAD_PYTHON
  40. PYTHON_PATH=/c/Python25
  41. PYLIBS= -L$(PYTHON_PATH)/libs
  42. PYLIBS+= -L $(PYTHON_PATH)/Lib
  43. PYLIBS+= -lpython2.5
  44. EXTRACPPFLAGS+=-I $(PYTHON_PATH)/include -DKICAD_PYTHON -ggdb
  45. endif
  46. SYSWXLIB = `$(WXWIN)/wx-config --libs gl`\
  47. -lwxpng-$(LIBVERSION) -lwxjpeg-$(LIBVERSION) -lwxzlib-$(LIBVERSION) $(PYLIBS)
  48. CC = gcc
  49. .cpp.o:
  50. g++ -c -Wall $(ALL_CPPFLAGS) $(ALL_CXXFLAGS) $(EXTRACPPFLAGS) -o $@ $*.cpp
  51. # Settings for Cyginw/Mingw32
  52. # Some versions of windres cannot cope with the --preprocessor
  53. # option. Uncomment the RCPREPROCESSOR line below if yours can.
  54. ifndef WINE
  55. RESCOMP=$(CROSS)windres $(_USE_TEMP_FILE_IF_SUPPORTED)
  56. else
  57. RESCOMP=wrc
  58. endif
  59. RCINPUTSWITCH=-i
  60. RCOUTPUTSWITCH=-o
  61. RCINCSWITCH=--include-dir
  62. RCDEFSWITCH=--define
  63. # Note that this can cause windres to fail (Win95/98 problem?)
  64. # but commenting out RCPREPROCESSOR then does the trick.
  65. #RCPREPROCESSOR=--preprocessor "$(CXX) -c -E -xc-header -DRC_INVOKED"
  66. # Don't make this too long (e.g. by adding contrib/include/wx) because it will
  67. # truncate the command line
  68. RESFLAGS=$(RCPREPROCESSOR) $(RCINCSWITCH) $(WXDIR)/include $(RCEXTRAINC) $(RCDEFSWITCH) __WIN32__ $(RCDEFSWITCH) __WIN95__ $(RCDEFSWITCH) __GNUWIN32__