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.

85 lines
2.3 KiB

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