2007-05-06 16:03:28 +00:00
|
|
|
|
## Makefile for GERBVIEW et wxGTK
|
|
|
|
|
CC = gcc
|
|
|
|
|
LD = g++
|
|
|
|
|
|
|
|
|
|
# Compiler flags.
|
|
|
|
|
CPPFLAGS = -Wall -O2 `wx-config --cxxflags`
|
|
|
|
|
|
|
|
|
|
LDFLAGS =
|
|
|
|
|
|
|
|
|
|
EXTRALIBS = ../common/common.a
|
|
|
|
|
include ../libs.macosx
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TARGET = gerbview
|
|
|
|
|
|
2007-05-28 18:09:49 +00:00
|
|
|
|
all: $(TARGET) $(TARGET).app
|
2007-05-06 16:03:28 +00:00
|
|
|
|
|
|
|
|
|
include makefile.include
|
|
|
|
|
|
|
|
|
|
CPPFLAGS += $(EXTRACPPFLAGS)
|
2007-05-28 18:09:49 +00:00
|
|
|
|
CPPFLAGS += -arch i386 -arch ppc
|
2007-05-06 16:03:28 +00:00
|
|
|
|
EDACPPFLAGS = $(CPPFLAGS)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$(TARGET): $(OBJECTS) $(TARGET).r makefile.macosx makefile.include $(EXTRALIBS) ../libs.macosx
|
|
|
|
|
$(LD) $(LDFLAGS) $(OBJECTS) $(LIBS) -o $(TARGET)
|
|
|
|
|
$(RESCOMP) -o $(TARGET) Carbon.r $(TARGET).r
|
|
|
|
|
$(SETFILE) -a C $(TARGET)
|
2007-05-28 18:09:49 +00:00
|
|
|
|
|
|
|
|
|
$(TARGET).app: $(OBJS)
|
|
|
|
|
rm -Rf $(TARGET).app
|
|
|
|
|
mkdir -p $(TARGET).app
|
|
|
|
|
mkdir -p $(TARGET).app/Contents
|
|
|
|
|
mkdir -p $(TARGET).app/Contents/MacOS
|
|
|
|
|
mkdir -p $(TARGET).app/Contents/Frameworks
|
|
|
|
|
mkdir -p $(TARGET).app/Contents/Resources
|
|
|
|
|
sed -e "s/IDENTIFIER/`echo . | sed -e <20>s,\.\./,,g<> | sed -e <20>s,/,.,g<>`/" -e "s/EXECUTABLE/$(TARGET)/" \
|
|
|
|
|
-e "s/VERSION/$(MKMK_WX_VERSION)/" $(HOME)/wxMac-$(MKMK_WX_VERSION)/src/mac/carbon/wxmac.icns \
|
|
|
|
|
>$(TARGET).app/Contents/Resources/wxmac.icns
|
|
|
|
|
sed -e "s/IDENTIFIER/`echo . | sed -e <20>s,\.\./,,g<> | sed -e <20>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
|
|
|
|
|
echo -n "APPL????" >$(TARGET).app/Contents/PkgInfo
|
|
|
|
|
ln -f $(TARGET) $(TARGET).app/Contents/MacOS/$(TARGET)
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
install:
|
2007-05-06 16:03:28 +00:00
|
|
|
|
cp $(TARGET) $(KICAD_BIN)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
clean:
|
|
|
|
|
rm -f *.o
|
|
|
|
|
rm -f *.exe
|
|
|
|
|
rm -f *.res
|
|
|
|
|
rm -f *.map
|
|
|
|
|
rm -f $(TARGET)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|