kicad/libs.macosx

42 lines
967 B
Plaintext
Raw Normal View History

#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-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-10-28 18:47:28 +00:00
# turn on/off universal binaries
UNIVERSAL = 0
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
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
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