2007-06-05 12:10:51 +00:00
|
|
|
#Configuration for build kicad
|
2007-10-28 18:47:28 +00:00
|
|
|
KICAD_BIN = $(HOME)/install/kicad/macosx
|
2007-05-06 16:03:28 +00:00
|
|
|
|
|
|
|
RESCOMP = /Developer/Tools/Rez -d __DARWIN__ -t APPL -d __WXMAC__ -i .
|
|
|
|
SETFILE = /Developer/Tools/SetFile
|
|
|
|
|
2007-10-28 18:47:28 +00:00
|
|
|
CPPFLAGS = -D__UNIX__ -Wall -I../include `wx-config --cxxflags`
|
|
|
|
LDFLAGS =
|
|
|
|
CC = g++
|
|
|
|
LD = g++
|
2007-05-28 18:09:49 +00:00
|
|
|
|
2007-10-28 18:47:28 +00:00
|
|
|
# turn on/off debugging for all executables, only tested without KICAD_PYTHON
|
|
|
|
DEBUG = 1
|
2007-05-06 16:03:28 +00:00
|
|
|
|
2007-10-28 18:47:28 +00:00
|
|
|
ifeq ($(DEBUG), 1)
|
|
|
|
CPPFLAGS += -g
|
|
|
|
else
|
|
|
|
CPPFLAGS += -O2
|
|
|
|
endif
|
2007-05-28 18:09:49 +00:00
|
|
|
|
2007-10-28 18:47:28 +00:00
|
|
|
# turn on/off universal binaries
|
|
|
|
UNIVERSAL = 0
|
2007-05-28 18:09:49 +00:00
|
|
|
|
2007-10-28 18:47:28 +00:00
|
|
|
ifeq ($(UNIVERSAL), 1)
|
|
|
|
CPPFLAGS += -arch i386 -arch ppc
|
|
|
|
endif
|
|
|
|
|
|
|
|
# You must comment or uncomment this line to disable/enable python support
|
|
|
|
#KICAD_PYTHON = 1
|
2007-05-28 18:09:49 +00:00
|
|
|
|
|
|
|
ifdef KICAD_PYTHON
|
|
|
|
PYLIBS= -L/usr/lib
|
|
|
|
PYLIBS+= -L /usr/include/python
|
|
|
|
PYLIBS+= -lpython2.4
|
|
|
|
PYLIBS+= -lboost_python
|
2007-10-28 18:47:28 +00:00
|
|
|
EXTRACPPFLAGS+=-I /usr/include/python2.4 -DKICAD_PYTHON -fno-strict-aliasing
|
2007-05-28 18:09:49 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
LIBS = ../common/common.a `wx-config --libs` $(PYLIBS)
|
2007-10-28 18:47:28 +00:00
|
|
|
LIBS3D = ../common/common.a `wx-config --libs std,gl` -framework OpenGL $(PYLIBS)
|
2007-05-06 16:03:28 +00:00
|
|
|
|