Updated build system for Mac OS X
This commit is contained in:
parent
8863c003e4
commit
c9679e65c9
|
@ -1,36 +1,25 @@
|
||||||
## 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)
|
||||||
|
|
||||||
all: $(TARGET).a
|
|
||||||
|
|
||||||
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
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,36 @@
|
||||||
|
<?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>
|
|
@ -1,27 +1,21 @@
|
||||||
## 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)
|
||||||
|
|
||||||
|
|
|
@ -1,59 +1,39 @@
|
||||||
# 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 -Rf $(TARGET).app
|
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:
|
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)
|
||||||
|
|
|
@ -1,26 +1,14 @@
|
||||||
## 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)
|
||||||
$(SETFILE) -a C $(TARGET)
|
$(SETFILE) -a C $(TARGET)
|
||||||
|
|
||||||
|
|
||||||
$(TARGET).app: $(OBJS)
|
$(TARGET).app: $(TARGET)
|
||||||
rm -Rf $(TARGET).app
|
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)
|
||||||
|
|
||||||
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
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,21 +0,0 @@
|
||||||
# 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
|
|
||||||
|
|
|
@ -1,59 +1,38 @@
|
||||||
## 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) $(OBJECTS) $(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 -Rf $(TARGET).app
|
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:
|
|
||||||
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)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,64 +1,39 @@
|
||||||
# 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 -Rf $(TARGET).app
|
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)
|
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)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
31
libs.macosx
31
libs.macosx
|
@ -1,28 +1,41 @@
|
||||||
#Configuration for build kicad
|
#Configuration for build kicad
|
||||||
KICAD_BIN = /usr/local/kicad/macosx
|
KICAD_BIN = $(HOME)/install/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
|
|
||||||
|
ifeq ($(DEBUG), 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
|
# You must comment or uncomment this line to disable/enable python support
|
||||||
#KICAD_PYTHON = 1
|
#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)
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
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
|
||||||
|
|
||||||
|
|
|
@ -1,55 +1,38 @@
|
||||||
## 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 *.map
|
rm -rf $(TARGET).app
|
||||||
rm -f $(TARGET)
|
rm -f $(TARGET)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue