2007-10-28 18:47:28 +00:00
|
|
|
## Makefile for kicad
|
2007-05-06 16:03:28 +00:00
|
|
|
|
|
|
|
include ../libs.macosx
|
|
|
|
|
|
|
|
TARGET = cvpcb
|
|
|
|
|
2007-10-28 18:47:28 +00:00
|
|
|
all: $(TARGET).app
|
2007-05-06 16:03:28 +00:00
|
|
|
|
2007-11-19 14:35:04 +00:00
|
|
|
deps:
|
|
|
|
$(CXX) $(CPPFLAGS) -E -MMD -MG *.cpp >/dev/null
|
|
|
|
|
2007-05-06 16:03:28 +00:00
|
|
|
include makefile.include
|
2007-11-19 14:35:04 +00:00
|
|
|
-include *.d
|
2007-05-06 16:03:28 +00:00
|
|
|
|
|
|
|
CPPFLAGS += $(EXTRACPPFLAGS)
|
|
|
|
EDACPPFLAGS = $(CPPFLAGS)
|
|
|
|
|
|
|
|
$(TARGET): $(OBJECTS) $(TARGET).r makefile.macosx makefile.include $(EXTRALIBS) ../libs.macosx $(LIBVIEWER3D)
|
|
|
|
$(LD) $(OBJECTS) $(LDFLAGS) $(LIBVIEWER3D) $(LIBS3D) -o $(TARGET)
|
|
|
|
$(RESCOMP) -o $(TARGET) Carbon.r $(TARGET).r
|
|
|
|
$(SETFILE) -a C $(TARGET)
|
|
|
|
|
|
|
|
|
2007-10-28 18:47:28 +00:00
|
|
|
$(TARGET).app: $(TARGET)
|
|
|
|
rm -rf $(TARGET).app
|
2007-05-28 18:09:49 +00:00
|
|
|
mkdir -p $(TARGET).app
|
|
|
|
mkdir -p $(TARGET).app/Contents
|
|
|
|
mkdir -p $(TARGET).app/Contents/MacOS
|
|
|
|
mkdir -p $(TARGET).app/Contents/Resources
|
2007-10-28 23:04:56 +00:00
|
|
|
cp $(TARGET).icns $(TARGET).app/Contents/Resources
|
|
|
|
cp Info.plist $(TARGET).app/Contents
|
|
|
|
echo -n "APPL????" > $(TARGET).app/Contents/PkgInfo
|
2007-10-28 18:47:28 +00:00
|
|
|
cp $(TARGET) $(TARGET).app/Contents/MacOS/$(TARGET)
|
2007-05-28 18:09:49 +00:00
|
|
|
|
2007-10-28 18:47:28 +00:00
|
|
|
install: $(TARGET).app
|
|
|
|
cp -Rf $(TARGET).app $(KICAD_BIN)
|
2007-06-05 12:10:51 +00:00
|
|
|
|
2007-05-06 16:03:28 +00:00
|
|
|
clean:
|
2007-10-28 18:47:28 +00:00
|
|
|
rm -f *.o; rm -f *~
|
|
|
|
rm -rf $(TARGET).app
|
|
|
|
rm -f $(TARGET)
|