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.

41 lines
967 B

  1. #Configuration for build kicad
  2. KICAD_BIN = $(HOME)/install/kicad/macosx
  3. RESCOMP = /Developer/Tools/Rez -d __DARWIN__ -t APPL -d __WXMAC__ -i .
  4. SETFILE = /Developer/Tools/SetFile
  5. CPPFLAGS = -D__UNIX__ -Wall -I../include `wx-config --cxxflags`
  6. LDFLAGS =
  7. CC = g++
  8. LD = g++
  9. # turn on/off debugging for all executables, only tested without KICAD_PYTHON
  10. DEBUG = 1
  11. ifeq ($(DEBUG), 1)
  12. CPPFLAGS += -g
  13. else
  14. CPPFLAGS += -O2
  15. endif
  16. # turn on/off universal binaries
  17. UNIVERSAL = 0
  18. ifeq ($(UNIVERSAL), 1)
  19. CPPFLAGS += -arch i386 -arch ppc
  20. endif
  21. # You must comment or uncomment this line to disable/enable python support
  22. #KICAD_PYTHON = 1
  23. ifdef KICAD_PYTHON
  24. PYLIBS= -L/usr/lib
  25. PYLIBS+= -L /usr/include/python
  26. PYLIBS+= -lpython2.4
  27. PYLIBS+= -lboost_python
  28. EXTRACPPFLAGS+=-I /usr/include/python2.4 -DKICAD_PYTHON -fno-strict-aliasing
  29. endif
  30. LIBS = ../common/common.a `wx-config --libs` $(PYLIBS)
  31. LIBS3D = ../common/common.a `wx-config --libs std,gl` -framework OpenGL $(PYLIBS)