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.

68 lines
1.9 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. #comment this for static wxWidgets link
  12. #WXUSINGDLL = 1
  13. #Define the wxWidget path (if not found in environment variables):
  14. ifndef WXWIN
  15. WXWIN=f:/wxMSW-2.8.4
  16. endif
  17. LIBVERSION = 2.8
  18. # You must comment or uncomment this line to disable/enable python support
  19. #KICAD_PYTHON = 1
  20. FINAL = 1
  21. ALL_CPPFLAGS = `$(WXWIN)/wx-config --cppflags`
  22. EDACPPFLAGS = $(ALL_CPPFLAGS) $(ALL_CXXFLAGS) $(EXTRACPPFLAGS)
  23. EDALIBS = $(EXTRALIBS)
  24. ifdef KICAD_PYTHON
  25. BOOST_PATH=/d/boost
  26. PYTHON_PATH=/c/Python25
  27. PYLIBS= -L$(PYTHON_PATH)/libs
  28. PYLIBS+= -L $(PYTHON_PATH)/Lib
  29. PYLIBS+= -lpython2.5
  30. EXTRACPPFLAGS+=-I $(PYTHON_PATH)/include -DKICAD_PYTHON -I $(BOOST_PATH) -fno-strict-aliasing -ggdb
  31. endif
  32. SYSWXLIB = `$(WXWIN)/wx-config --libs gl`\
  33. -lwxpng-$(LIBVERSION) -lwxjpeg-$(LIBVERSION) -lwxzlib-$(LIBVERSION) $(PYLIBS)
  34. .cpp.o:
  35. gcc -c -Wall $(ALL_CPPFLAGS) $(ALL_CXXFLAGS) $(EXTRACPPFLAGS) -o $@ $*.cpp
  36. # Settings for Cyginw/Mingw32
  37. # Some versions of windres cannot cope with the --preprocessor
  38. # option. Uncomment the RCPREPROCESSOR line below if yours can.
  39. ifndef WINE
  40. RESCOMP=$(CROSS)windres $(_USE_TEMP_FILE_IF_SUPPORTED)
  41. else
  42. RESCOMP=wrc
  43. endif
  44. RCINPUTSWITCH=-i
  45. RCOUTPUTSWITCH=-o
  46. RCINCSWITCH=--include-dir
  47. RCDEFSWITCH=--define
  48. # Note that this can cause windres to fail (Win95/98 problem?)
  49. # but commenting out RCPREPROCESSOR then does the trick.
  50. #RCPREPROCESSOR=--preprocessor "$(CXX) -c -E -xc-header -DRC_INVOKED"
  51. # Don't make this too long (e.g. by adding contrib/include/wx) because it will
  52. # truncate the command line
  53. RESFLAGS=$(RCPREPROCESSOR) $(RCINCSWITCH) $(WXDIR)/include $(RCEXTRAINC) $(RCDEFSWITCH) __WIN32__ $(RCDEFSWITCH) __WIN95__ $(RCDEFSWITCH) __GNUWIN32__