Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
c9679e65
Commit
c9679e65
authored
Oct 28, 2007
by
kintel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated build system for Mac OS X
parent
8863c003
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
138 additions
and
232 deletions
+138
-232
makefile.macosx
3d-viewer/makefile.macosx
+8
-19
Info.plist.in
Info.plist.in
+36
-0
makefile.macosx
common/makefile.macosx
+6
-12
makefile.macosx
cvpcb/makefile.macosx
+12
-32
makefile.macosx
eeschema/makefile.macosx
+13
-35
makefile.macosx
eeschema/plugins/makefile.macosx
+0
-21
makefile.macosx
gerbview/makefile.macosx
+12
-33
makefile.macosx
kicad/makefile.macosx
+13
-38
libs.macosx
libs.macosx
+22
-9
makefile.macosx
makefile.macosx
+3
-3
makefile.macosx
pcbnew/makefile.macosx
+13
-30
No files found.
3d-viewer/makefile.macosx
View file @
c9679e65
## Makefile for 3d-viewer.a ( wxMAC - mac os X)
## Makefile for 3d-viewer.a
CC
=
gcc
# Compiler flags.
CPPFLAGS
=
-Wall
-O2
-DPCBNEW
-I
../pcbnew
-I
../include
-I
../common
\
`
wx-config
--cxxflags
`
CPPFLAGS
+=
-arch
i386
-arch
ppc
include
../libs.macosx
include
../libs.macosx
TARGET
=
3d-viewer
TARGET
=
3d-viewer.a
FINAL
=
1
all
:
$(TARGET)
.a
all
:
$(TARGET)
include
makefile.include
include
makefile.include
CPPFLAGS
+=
-DPCBNEW
-I
../pcbnew
EDACPPFLAGS
=
$(CPPFLAGS)
$(TARGET)
.a
:
$(OBJECTS3D) makefile.gtk
makefile.include
$(TARGET)
:
$(OBJECTS3D) makefile.macosx
makefile.include
rm
-f
$@
rm
-f
$@
ar
-rv
$@
$(OBJECTS3D)
ar
-rv
$@
$(OBJECTS3D)
ranlib
$@
ranlib
$@
clean
:
clean
:
rm
-f
*
.o
rm
-f
*
.o
;
rm
-f
*
~
rm
-f
*
.exe
rm
-f
$(TARGET)
rm
-f
*
.res
rm
-f
*
.map
rm
-f
$(TARGET)
.a
Info.plist.in
0 → 100644
View file @
c9679e65
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd">
<plist
version=
"0.9"
>
<dict>
<key>
CFBundleInfoDictionaryVersion
</key>
<string>
6.0
</string>
<key>
CFBundleIdentifier
</key>
<string>
org.kicad-eda.EXECUTABLE
</string>
<key>
CFBundleDevelopmentRegion
</key>
<string>
English
</string>
<key>
CFBundleExecutable
</key>
<string>
EXECUTABLE
</string>
<key>
CFBundleIconFile
</key>
<string>
EXECUTABLE.icns
</string>
<key>
CFBundleName
</key>
<string>
EXECUTABLE
</string>
<key>
CFBundlePackageType
</key>
<string>
APPL
</string>
<key>
CFBundleSignature
</key>
<string>
????
</string>
<key>
CFBundleVersion
</key>
<string>
0.1
</string>
<key>
CFBundleShortVersionString
</key>
<string>
0.1
</string>
<key>
CFBundleGetInfoString
</key>
<string>
EXECUTABLE version 0.1
</string>
<key>
CFBundleLongVersionString
</key>
<string>
0.1
</string>
<key>
NSHumanReadableCopyright
</key>
<string>
Copyleft 2007
</string>
<key>
LSRequiresCarbon
</key>
<true/>
<key>
CSResourcesFileMapped
</key>
<true/>
</dict>
</plist>
common/makefile.macosx
View file @
c9679e65
## Makefile for common.a
## Makefile for common.a
CC
=
gcc
# Compiler flags.
include
../libs.macosx
CPPFLAGS
=
-Wall
-O2
-I
./
-I
../include
`
wx-config
--cxxflags
`
CPPFLAGS
+=
-arch
i386
-arch
ppc
EDACPPFLAGS
=
$(CPPFLAGS)
TARGET
=
pcbnew
all
:
common.a
all
:
$(TARGET)
include
makefile.include
include
makefile.include
CPPFLAGS
+=
$(EXTRACPPFLAGS)
CPPFLAGS
+=
$(EXTRACPPFLAGS)
EDACPPFLAGS
=
$(CPPFLAGS)
EDACPPFLAGS
=
$(CPPFLAGS)
$(TARGET)
:
$(OBJECTS) makefile.macosx makefile.include
common.a
:
$(OBJECTS) makefile.macosx makefile.include
rm
-f
$@
rm
-f
$@
ar
-rv
$@
$(OBJECTS)
ar
-rv
$@
$(OBJECTS)
ranlib
$@
ranlib
$@
clean
:
clean
:
rm
-f
*
.o
;
rm
-f
*
~
;
rm
core
;
rm
*
.bak
;
rm
*
.obj
rm
-f
*
.o
;
rm
-f
*
~
rm
-f
common.a
rm
-f
$(TARGET)
cvpcb/makefile.macosx
View file @
c9679e65
# File: makefile
## Makefile for kicad
# Compiler flags.
CC
=
gcc
LD
=
g++
FINAL
=
1
# Compiler flags.
CPPFLAGS
=
-Wall
-O2
`
wx-config
--cxxflags
`
LDFLAGS
=
EDACPPFLAGS
=
$(CPPFLAGS)
include
../libs.macosx
include
../libs.macosx
TARGET
=
cvpcb
TARGET
=
cvpcb
all
:
$(TARGET)
$(TARGET)
.app
all
:
$(TARGET).app
include
makefile.include
include
makefile.include
CPPFLAGS
+=
$(EXTRACPPFLAGS)
CPPFLAGS
+=
$(EXTRACPPFLAGS)
CPPFLAGS
+=
-arch
i386
-arch
ppc
EDACPPFLAGS
=
$(CPPFLAGS)
EDACPPFLAGS
=
$(CPPFLAGS)
$(TARGET)
:
$(OBJECTS) $(TARGET).r makefile.macosx makefile.include $(EXTRALIBS) ../libs.macosx $(LIBVIEWER3D)
$(TARGET)
:
$(OBJECTS) $(TARGET).r makefile.macosx makefile.include $(EXTRALIBS) ../libs.macosx $(LIBVIEWER3D)
$(LD)
$(OBJECTS)
$(LDFLAGS)
$(LIBVIEWER3D)
$(LIBS3D)
-o
$(TARGET)
$(LD)
$(OBJECTS)
$(LDFLAGS)
$(LIBVIEWER3D)
$(LIBS3D)
-o
$(TARGET)
$(RESCOMP)
-o
$(TARGET)
Carbon.r
$(TARGET)
.r
$(RESCOMP)
-o
$(TARGET)
Carbon.r
$(TARGET)
.r
$(SETFILE)
-a
C
$(TARGET)
$(SETFILE)
-a
C
$(TARGET)
$(TARGET).app
:
$(
OBJS
)
$(TARGET).app
:
$(
TARGET
)
rm
-
R
f
$(TARGET)
.app
rm
-
r
f
$(TARGET)
.app
mkdir
-p
$(TARGET)
.app
mkdir
-p
$(TARGET)
.app
mkdir
-p
$(TARGET)
.app/Contents
mkdir
-p
$(TARGET)
.app/Contents
mkdir
-p
$(TARGET)
.app/Contents/MacOS
mkdir
-p
$(TARGET)
.app/Contents/MacOS
mkdir
-p
$(TARGET)
.app/Contents/Frameworks
mkdir
-p
$(TARGET)
.app/Contents/Frameworks
mkdir
-p
$(TARGET)
.app/Contents/Resources
mkdir
-p
$(TARGET)
.app/Contents/Resources
sed
-e
"s/IDENTIFIER/
`
echo
.
|
sed
-e
s,
\.\.
/,,g |
sed
-e
s,/,.,g
`
/"
-e
"s/EXECUTABLE/
$(TARGET)
/"
\
cp
$(TARGET)
.icns
$(TARGET)
.app/Contents/Resources/
$(TARGET)
.icns
-e
"s/VERSION/
$(MKMK_WX_VERSION)
/"
$(HOME)
/wxMac-
$(MKMK_WX_VERSION)
/src/mac/carbon/wxmac.icns
\
sed
-e
"s/EXECUTABLE/
$(TARGET)
/"
../Info.plist.in
\
>
$(TARGET)
.app/Contents/Resources/wxmac.icns
sed
-e
"s/IDENTIFIER/
`
echo
.
|
sed
-e
s,
\.\.
/,,g |
sed
-e
s,/,.,g
`
/"
-e
"s/EXECUTABLE/
$(TARGET)
/"
\
-e
"s/VERSION/
$(MKMK_WX_VERSION)
/"
$(HOME)
/wxMac-
$(MKMK_WX_VERSION)
/src/mac/carbon/Info.plist.in
\
>
$(TARGET)
.app/Contents/Info.plist
>
$(TARGET)
.app/Contents/Info.plist
echo
-n
"APPL????"
>
$(TARGET)
.app/Contents/PkgInfo
echo
-n
"APPL????"
>
$(TARGET)
.app/Contents/PkgInfo
ln
-f
$(TARGET)
$(TARGET)
.app/Contents/MacOS/
$(TARGET)
cp
$(TARGET)
$(TARGET)
.app/Contents/MacOS/
$(TARGET)
install
:
install
:
$(TARGET).app
cp
-
f
$(TARGET)
$(KICAD_BIN)
cp
-
Rf
$(TARGET)
.app
$(KICAD_BIN)
clean
:
clean
:
rm
*
.o
rm
-f
*
.o
;
rm
-f
*
~
rm
$(TARGET)
rm
-rf
$(TARGET)
.app
rm
-f
$(TARGET)
eeschema/makefile.macosx
View file @
c9679e65
## Makefile for eeschema
## Makefile for eeschema
CC
=
gcc
LD
=
g++
FINAL
=
1
LDFLAGS
=
include
../libs.macosx
include
../libs.macosx
TARGET
=
eeschema
TARGET
=
eeschema
all
:
$(TARGET).app netlist_form_pads-pcb
CPPFLAGS
=
-Wall
-O2
`
wx-config
--cxxflags
`
all
:
$(TARGET) $(TARGET).app netlist_form_pads-pcb
include
makefile.include
include
makefile.include
CPPFLAGS
+=
$(EXTRACPPFLAGS)
CPPFLAGS
+=
$(EXTRACPPFLAGS)
CPPFLAGS
+=
-arch
i386
-arch
ppc
EDACPPFLAGS
=
$(CPPFLAGS)
EDACPPFLAGS
=
$(CPPFLAGS)
$(TARGET)
:
$(OBJECTS) $(TARGET).r makefile.macosx makefile.include $(EXTRALIBS) ../libs.macosx
$(TARGET)
:
$(OBJECTS) $(TARGET).r makefile.macosx makefile.include $(EXTRALIBS) ../libs.macosx
...
@@ -29,39 +17,29 @@ $(TARGET): $(OBJECTS) $(TARGET).r makefile.macosx makefile.include $(EXTRALIBS)
...
@@ -29,39 +17,29 @@ $(TARGET): $(OBJECTS) $(TARGET).r makefile.macosx makefile.include $(EXTRALIBS)
$(SETFILE)
-a
C
$(TARGET)
$(SETFILE)
-a
C
$(TARGET)
$(TARGET).app
:
$(
OBJS
)
$(TARGET).app
:
$(
TARGET
)
rm
-
R
f
$(TARGET)
.app
rm
-
r
f
$(TARGET)
.app
mkdir
-p
$(TARGET)
.app
mkdir
-p
$(TARGET)
.app
mkdir
-p
$(TARGET)
.app/Contents
mkdir
-p
$(TARGET)
.app/Contents
mkdir
-p
$(TARGET)
.app/Contents/MacOS
mkdir
-p
$(TARGET)
.app/Contents/MacOS
mkdir
-p
$(TARGET)
.app/Contents/Frameworks
mkdir
-p
$(TARGET)
.app/Contents/Frameworks
mkdir
-p
$(TARGET)
.app/Contents/Resources
mkdir
-p
$(TARGET)
.app/Contents/Resources
sed
-e
"s/IDENTIFIER/
`
echo
.
|
sed
-e
s,
\.\.
/,,g |
sed
-e
s,/,.,g
`
/"
-e
"s/EXECUTABLE/
$(TARGET)
/"
\
cp
$(TARGET)
.icns
$(TARGET)
.app/Contents/Resources/
$(TARGET)
.icns
-e
"s/VERSION/
$(MKMK_WX_VERSION)
/"
$(HOME)
/wxMac-
$(MKMK_WX_VERSION)
/src/mac/carbon/wxmac.icns
\
sed
-e
"s/EXECUTABLE/
$(TARGET)
/"
../Info.plist.in
\
>
$(TARGET)
.app/Contents/Resources/wxmac.icns
sed
-e
"s/IDENTIFIER/
`
echo
.
|
sed
-e
s,
\.\.
/,,g |
sed
-e
s,/,.,g
`
/"
-e
"s/EXECUTABLE/
$(TARGET)
/"
\
-e
"s/VERSION/
$(MKMK_WX_VERSION)
/"
$(HOME)
/wxMac-
$(MKMK_WX_VERSION)
/src/mac/carbon/Info.plist.in
\
>
$(TARGET)
.app/Contents/Info.plist
>
$(TARGET)
.app/Contents/Info.plist
echo
-n
"APPL????"
>
$(TARGET)
.app/Contents/PkgInfo
echo
-n
"APPL????"
>
$(TARGET)
.app/Contents/PkgInfo
ln
-f
$(TARGET)
$(TARGET)
.app/Contents/MacOS/
$(TARGET)
cp
$(TARGET)
$(TARGET)
.app/Contents/MacOS/
$(TARGET)
netlist_form_pads-pcb
:
plugins/netlist_form_pads-pcb.cpp
netlist_form_pads-pcb
:
plugins/netlist_form_pads-pcb.cpp
g++
$(CXXFLAGS)
-Wall
plugins/netlist_form_pads-pcb.cpp
-o
netlist_form_pads-pcb
g++
-D__UNIX__
$(CXXFLAGS)
-Wall
plugins/netlist_form_pads-pcb.cpp
-o
netlist_form_pads-pcb
install
:
$(TARGET)
install
:
$(TARGET).app
cp
$(TARGET)
$(KICAD_BIN)
cp
-Rf
$(TARGET)
.app
$(KICAD_BIN)
cp
netlist_form_pads-pcb
$(KICAD_BIN)
cp
-f
netlist_form_pads-pcb
$(KICAD_BIN)
clean
:
clean
:
rm
-f
*
.o
;
rm
-f
*
~
;
rm
core
;
rm
*
.bak
rm
-f
*
.o
;
rm
-f
*
~
rm
-rf
$(TARGET)
.app
rm
-f
$(TARGET)
rm
-f
$(TARGET)
rm
-f
netlist_form_pads-pcb
\ No newline at end of file
eeschema/plugins/makefile.macosx
deleted
100644 → 0
View file @
8863c003
# File: makefile for eeschema, mingw
#used only to define (KICAD_BIN) :
include
../../libs.macosx
all
:
netlist_form_pads-pcb
netlist_form_pads-pcb
:
netlist_form_pads-pcb.cpp
g++
-D__UNIX__
-Wall
netlist_form_pads-pcb.cpp
-o
netlist_form_pads-pcb
install
:
cp
-v
all
$(KICAD_BIN)
/plugins/
clean
:
rm
-f
*
.o
rm
-f
*
.rsc
rm
-f
*
.res
rm
-f
*
.exe
rm
-f
*
.bak
gerbview/makefile.macosx
View file @
c9679e65
## Makefile for GERBVIEW et wxGTK
## Makefile for gerbview
CC
=
gcc
LD
=
g++
# Compiler flags.
CPPFLAGS
=
-Wall
-O2
`
wx-config
--cxxflags
`
LDFLAGS
=
EXTRALIBS
=
../common/common.a
include
../libs.macosx
include
../libs.macosx
TARGET
=
gerbview
TARGET
=
gerbview
all
:
$(TARGET)
$(TARGET)
.app
all
:
$(TARGET).app
include
makefile.include
include
makefile.include
CPPFLAGS
+=
$(EXTRACPPFLAGS)
CPPFLAGS
+=
$(EXTRACPPFLAGS)
CPPFLAGS
+=
-arch
i386
-arch
ppc
EDACPPFLAGS
=
$(CPPFLAGS)
EDACPPFLAGS
=
$(CPPFLAGS)
$(TARGET)
:
$(OBJECTS) $(TARGET).r makefile.macosx makefile.include $(EXTRALIBS) ../libs.macosx
$(TARGET)
:
$(OBJECTS) $(TARGET).r makefile.macosx makefile.include $(EXTRALIBS) ../libs.macosx
$(LD)
$(LDFLAGS)
$(OBJECT
S)
$(LIBS)
-o
$(TARGET)
$(LD)
$(OBJECTS)
$(LDFLAG
S)
$(LIBS)
-o
$(TARGET)
$(RESCOMP)
-o
$(TARGET)
Carbon.r
$(TARGET)
.r
$(RESCOMP)
-o
$(TARGET)
Carbon.r
$(TARGET)
.r
$(SETFILE)
-a
C
$(TARGET)
$(SETFILE)
-a
C
$(TARGET)
$(TARGET).app
:
$(
OBJS
)
$(TARGET).app
:
$(
TARGET
)
rm
-
R
f
$(TARGET)
.app
rm
-
r
f
$(TARGET)
.app
mkdir
-p
$(TARGET)
.app
mkdir
-p
$(TARGET)
.app
mkdir
-p
$(TARGET)
.app/Contents
mkdir
-p
$(TARGET)
.app/Contents
mkdir
-p
$(TARGET)
.app/Contents/MacOS
mkdir
-p
$(TARGET)
.app/Contents/MacOS
mkdir
-p
$(TARGET)
.app/Contents/Frameworks
mkdir
-p
$(TARGET)
.app/Contents/Frameworks
mkdir
-p
$(TARGET)
.app/Contents/Resources
mkdir
-p
$(TARGET)
.app/Contents/Resources
sed
-e
"s/IDENTIFIER/
`
echo
.
|
sed
-e
s,
\.\.
/,,g |
sed
-e
s,/,.,g
`
/"
-e
"s/EXECUTABLE/
$(TARGET)
/"
\
cp
$(TARGET)
.icns
$(TARGET)
.app/Contents/Resources/
$(TARGET)
.icns
-e
"s/VERSION/
$(MKMK_WX_VERSION)
/"
$(HOME)
/wxMac-
$(MKMK_WX_VERSION)
/src/mac/carbon/wxmac.icns
\
sed
-e
"s/EXECUTABLE/
$(TARGET)
/"
../Info.plist.in
\
>
$(TARGET)
.app/Contents/Resources/wxmac.icns
sed
-e
"s/IDENTIFIER/
`
echo
.
|
sed
-e
s,
\.\.
/,,g |
sed
-e
s,/,.,g
`
/"
-e
"s/EXECUTABLE/
$(TARGET)
/"
\
-e
"s/VERSION/
$(MKMK_WX_VERSION)
/"
$(HOME)
/wxMac-
$(MKMK_WX_VERSION)
/src/mac/carbon/Info.plist.in
\
>
$(TARGET)
.app/Contents/Info.plist
>
$(TARGET)
.app/Contents/Info.plist
echo
-n
"APPL????"
>
$(TARGET)
.app/Contents/PkgInfo
echo
-n
"APPL????"
>
$(TARGET)
.app/Contents/PkgInfo
ln
-f
$(TARGET)
$(TARGET)
.app/Contents/MacOS/
$(TARGET)
cp
$(TARGET)
$(TARGET)
.app/Contents/MacOS/
$(TARGET)
install
:
cp
$(TARGET)
$(KICAD_BIN)
install
:
$(TARGET).app
cp
-Rf
$(TARGET)
.app
$(KICAD_BIN)
clean
:
clean
:
rm
-f
*
.o
rm
-f
*
.o
;
rm
-f
*
~
rm
-f
*
.exe
rm
-rf
$(TARGET)
.app
rm
-f
*
.res
rm
-f
*
.map
rm
-f
$(TARGET)
rm
-f
$(TARGET)
kicad/makefile.macosx
View file @
c9679e65
# File: makefile for kicad, wxGTK
## Makefile for kicad
# Compiler flags.
CC
=
gcc
LD
=
g++
FINAL
=
1
# Compiler flags.
CPPFLAGS
=
-Wall
-O2
`
wx-config
--cxxflags
`
CPPFLAGS
+=
-arch
i386
-arch
ppc
LDFLAGS
=
include
../libs.macosx
include
../libs.macosx
TARGET
=
kicad
TARGET
=
kicad
all
:
$(TARGET)
$(TARGET)
.app
all
:
$(TARGET).app
include
makefile.include
include
makefile.include
CPPFLAGS
+=
$(EXTRACPPFLAGS)
CPPFLAGS
+=
$(EXTRACPPFLAGS)
EDACPPFLAGS
=
$(CPPFLAGS)
EDACPPFLAGS
=
$(CPPFLAGS)
$(TARGET)
:
$(OBJECTS) $(TARGET).r makefile.macosx makefile.include $(EXTRALIBS) ../libs.macosx
$(TARGET)
:
$(OBJECTS) $(TARGET).r makefile.macosx $(EXTRALIBS) ../libs.macosx
$(LD)
$(OBJECTS)
$(LDFLAGS)
$(LIBS)
-o
$(TARGET)
$(LD)
$(OBJECTS)
$(LDFLAGS)
$(LIBS)
-o
$(TARGET)
$(RESCOMP)
-o
$(TARGET)
Carbon.r
$(TARGET)
.r
$(RESCOMP)
-o
$(TARGET)
Carbon.r
$(TARGET)
.r
$(SETFILE)
-a
C
$(TARGET)
$(SETFILE)
-a
C
$(TARGET)
$(TARGET).app
:
$(
OBJS
)
$(TARGET).app
:
$(
TARGET
)
rm
-
R
f
$(TARGET)
.app
rm
-
r
f
$(TARGET)
.app
mkdir
-p
$(TARGET)
.app
mkdir
-p
$(TARGET)
.app
mkdir
-p
$(TARGET)
.app/Contents
mkdir
-p
$(TARGET)
.app/Contents
mkdir
-p
$(TARGET)
.app/Contents/MacOS
mkdir
-p
$(TARGET)
.app/Contents/MacOS
mkdir
-p
$(TARGET)
.app/Contents/Frameworks
mkdir
-p
$(TARGET)
.app/Contents/Frameworks
mkdir
-p
$(TARGET)
.app/Contents/Resources
mkdir
-p
$(TARGET)
.app/Contents/Resources
sed
-e
"s/IDENTIFIER/
`
echo
.
|
sed
-e
s,
\.\.
/,,g |
sed
-e
s,/,.,g
`
/"
-e
"s/EXECUTABLE/
$(TARGET)
/"
\
cp
$(TARGET)
.icns
$(TARGET)
.app/Contents/Resources/
$(TARGET)
.icns
-e
"s/VERSION/
$(MKMK_WX_VERSION)
/"
$(HOME)
/wxMac-
$(MKMK_WX_VERSION)
/src/mac/carbon/wxmac.icns
\
sed
-e
"s/EXECUTABLE/
$(TARGET)
/"
../Info.plist.in
\
>
$(TARGET)
.app/Contents/Resources/wxmac.icns
sed
-e
"s/IDENTIFIER/
`
echo
.
|
sed
-e
s,
\.\.
/,,g |
sed
-e
s,/,.,g
`
/"
-e
"s/EXECUTABLE/
$(TARGET)
/"
\
-e
"s/VERSION/
$(MKMK_WX_VERSION)
/"
$(HOME)
/wxMac-
$(MKMK_WX_VERSION)
/src/mac/carbon/Info.plist.in
\
>
$(TARGET)
.app/Contents/Info.plist
>
$(TARGET)
.app/Contents/Info.plist
echo
-n
"APPL????"
>
$(TARGET)
.app/Contents/PkgInfo
echo
-n
"APPL????"
>
$(TARGET)
.app/Contents/PkgInfo
ln
-f
$(TARGET)
$(TARGET)
.app/Contents/MacOS/
$(TARGET)
cp
$(TARGET)
$(TARGET)
.app/Contents/MacOS/
$(TARGET)
install
:
$(TARGET)
install
:
$(TARGET).app
cp
-
f
$(TARGET)
$(KICAD_BIN)
cp
-
Rf
$(TARGET)
.app
$(KICAD_BIN)
clean
:
clean
:
rm
-f
*
.o
;
rm
-f
*
.o
;
rm
-f
*
~
rm
-f
*
~
;
rm
-rf
$(TARGET)
.app
rm
-f
core
;
rm
-f
*
.bak
rm
-f
$(TARGET)
rm
-f
$(TARGET)
libs.macosx
View file @
c9679e65
#Configuration for build kicad
#Configuration for build kicad
KICAD_BIN =
/usr/loca
l/kicad/macosx
KICAD_BIN =
$(HOME)/instal
l/kicad/macosx
RESCOMP = /Developer/Tools/Rez -d __DARWIN__ -t APPL -d __WXMAC__ -i .
RESCOMP = /Developer/Tools/Rez -d __DARWIN__ -t APPL -d __WXMAC__ -i .
SETFILE = /Developer/Tools/SetFile
SETFILE = /Developer/Tools/SetFile
MKMK_WX_VERSION=`wx-config --version`
CPPFLAGS = -D__UNIX__ -Wall -I../include `wx-config --cxxflags`
LDFLAGS =
CC = g++
LD = g++
SRCSUFF = .cpp
# turn on/off debugging for all executables, only tested without KICAD_PYTHON
OBJSUFF = .o
DEBUG = 1
FINAL = 1
# You must comment or uncomment this line to disable/enable python support
ifeq ($(DEBUG), 1)
#KICAD_PYTHON = 1
CPPFLAGS += -g
else
CPPFLAGS += -O2
endif
# turn on/off universal binaries
UNIVERSAL = 0
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
ifdef KICAD_PYTHON
PYLIBS= -L/usr/lib
PYLIBS= -L/usr/lib
PYLIBS+= -L /usr/include/python
PYLIBS+= -L /usr/include/python
PYLIBS+= -lpython2.4
PYLIBS+= -lpython2.4
PYLIBS+= -lboost_python
PYLIBS+= -lboost_python
EXTRACPPFLAGS+=-I /usr/include/python2.4 -DKICAD_PYTHON -fno-strict-aliasing
-ggdb
EXTRACPPFLAGS+=-I /usr/include/python2.4 -DKICAD_PYTHON -fno-strict-aliasing
endif
endif
LIBS = ../common/common.a `wx-config --libs` $(PYLIBS)
LIBS = ../common/common.a `wx-config --libs` $(PYLIBS)
LIBS3D = ../common/common.a `wx-config --libs std,gl` $(PYLIBS)
LIBS3D = ../common/common.a `wx-config --libs std,gl`
-framework OpenGL
$(PYLIBS)
makefile.macosx
View file @
c9679e65
KICAD_SUBDIRS
=
common 3d-viewer eeschema
eeschema/plugins
pcbnew cvpcb kicad gerbview
KICAD_SUBDIRS
=
common 3d-viewer eeschema pcbnew cvpcb kicad gerbview
KICAD_SUBDIRS_BIN
=
eeschema
eeschema/plugins
pcbnew cvpcb kicad gerbview
KICAD_SUBDIRS_BIN
=
eeschema pcbnew cvpcb kicad gerbview
# How to invoke make:
# How to invoke make:
MAKE
=
make
-
k
-
f
makefile.macosx
MAKE
=
make
-f
makefile.macosx
MAKE_INSTALL
=
make
-f
makefile.macosx
install
MAKE_INSTALL
=
make
-f
makefile.macosx
install
MAKE_CLEAN
=
make
-f
makefile.macosx clean
MAKE_CLEAN
=
make
-f
makefile.macosx clean
...
...
pcbnew/makefile.macosx
View file @
c9679e65
## Makefile for PCBNEW et wxGTK
## Makefile for pcbnew
CC
=
gcc
LD
=
g++
# Compiler flags.
CPPFLAGS
=
-Wall
-O2
`
wx-config
--cxxflags
`
LDFLAGS
=
include
../libs.macosx
include
../libs.macosx
TARGET
=
pcbnew
TARGET
=
pcbnew
all
:
$(TARGET)
$(TARGET)
.app
all
:
$(TARGET).app
include
makefile.include
include
makefile.include
CPPFLAGS
+=
$(EXTRACPPFLAGS)
CPPFLAGS
+=
$(EXTRACPPFLAGS)
CPPFLAGS
+=
-arch
i386
-arch
ppc
EDACPPFLAGS
=
$(CPPFLAGS)
EDACPPFLAGS
=
$(CPPFLAGS)
$(TARGET)
:
$(OBJECTS) $(TARGET).r makefile.macosx makefile.include $(LIBVIEWER3D) $(EXTRALIBS) ../libs.macosx
$(TARGET)
:
$(OBJECTS) $(TARGET).r makefile.macosx makefile.include $(LIBVIEWER3D) $(EXTRALIBS) ../libs.macosx
$(LD)
$(LDFLAGS)
$(OBJECTS)
$(LIBVIEWER3D)
$(LIBS3D)
-o
$(TARGET)
$(LD)
$(LDFLAGS)
$(OBJECTS)
$(LIBVIEWER3D)
$(LIBS3D)
-o
$(TARGET)
$(RESCOMP)
-o
$(TARGET)
Carbon.r
$(TARGET)
.r
$(RESCOMP)
-o
$(TARGET)
Carbon.r
$(TARGET)
.r
$(SETFILE)
-a
C
$(TARGET)
$(SETFILE)
-a
C
$(TARGET)
install
:
$(TARGET)
$(TARGET).app
:
$(TARGET)
cp
$(TARGET)
$(KICAD_BIN)
rm
-rf
$(TARGET)
.app
$(TARGET).app
:
$(OBJS)
rm
-Rf
$(TARGET)
.app
mkdir
-p
$(TARGET)
.app
mkdir
-p
$(TARGET)
.app
mkdir
-p
$(TARGET)
.app/Contents
mkdir
-p
$(TARGET)
.app/Contents
mkdir
-p
$(TARGET)
.app/Contents/MacOS
mkdir
-p
$(TARGET)
.app/Contents/MacOS
mkdir
-p
$(TARGET)
.app/Contents/Frameworks
mkdir
-p
$(TARGET)
.app/Contents/Frameworks
mkdir
-p
$(TARGET)
.app/Contents/Resources
mkdir
-p
$(TARGET)
.app/Contents/Resources
sed
-e
"s/IDENTIFIER/
`
echo
.
|
sed
-e
s,
\.\.
/,,g |
sed
-e
s,/,.,g
`
/"
-e
"s/EXECUTABLE/
$(TARGET)
/"
\
cp
$(TARGET)
.icns
$(TARGET)
.app/Contents/Resources/
$(TARGET)
.icns
-e
"s/VERSION/
$(MKMK_WX_VERSION)
/"
$(HOME)
/wxMac-
$(MKMK_WX_VERSION)
/src/mac/carbon/wxmac.icns
\
sed
-e
"s/EXECUTABLE/
$(TARGET)
/"
../Info.plist.in
\
>
$(TARGET)
.app/Contents/Resources/wxmac.icns
sed
-e
"s/IDENTIFIER/
`
echo
.
|
sed
-e
s,
\.\.
/,,g |
sed
-e
s,/,.,g
`
/"
-e
"s/EXECUTABLE/
$(TARGET)
/"
\
-e
"s/VERSION/
$(MKMK_WX_VERSION)
/"
$(HOME)
/wxMac-
$(MKMK_WX_VERSION)
/src/mac/carbon/Info.plist.in
\
>
$(TARGET)
.app/Contents/Info.plist
>
$(TARGET)
.app/Contents/Info.plist
echo
-n
"APPL????"
>
$(TARGET)
.app/Contents/PkgInfo
echo
-n
"APPL????"
>
$(TARGET)
.app/Contents/PkgInfo
ln
-f
$(TARGET)
$(TARGET)
.app/Contents/MacOS/
$(TARGET)
cp
$(TARGET)
$(TARGET)
.app/Contents/MacOS/
$(TARGET)
install
:
$(TARGET).app
cp
-Rf
$(TARGET)
.app
$(KICAD_BIN)
clean
:
clean
:
rm
-f
*
.o
rm
-f
*
.o
;
rm
-f
*
~
rm
-
f
*
.ma
p
rm
-
rf
$(TARGET)
.ap
p
rm
-f
$(TARGET)
rm
-f
$(TARGET)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment