From 7b007f6d8584a5450effe25b0bb4c008b3233203 Mon Sep 17 00:00:00 2001 From: kintel Date: Mon, 19 Nov 2007 14:35:04 +0000 Subject: [PATCH] Added deps make target for Mac OS X --- 3d-viewer/makefile.macosx | 4 ++++ common/makefile.macosx | 4 ++++ cvpcb/makefile.macosx | 4 ++++ eeschema/makefile.macosx | 4 ++++ gerbview/makefile.macosx | 4 ++++ kicad/makefile.macosx | 4 ++++ makefile.macosx | 3 +++ pcbnew/makefile.macosx | 4 ++++ pcbnew/ratsnest.cpp | 2 +- 9 files changed, 32 insertions(+), 1 deletion(-) diff --git a/3d-viewer/makefile.macosx b/3d-viewer/makefile.macosx index dde3ac0e1a..1c8a2a92d9 100644 --- a/3d-viewer/makefile.macosx +++ b/3d-viewer/makefile.macosx @@ -6,7 +6,11 @@ TARGET = 3d-viewer.a all: $(TARGET) +deps: + $(CXX) $(CPPFLAGS) -E -MMD -MG *.cpp >/dev/null + include makefile.include +-include *.d CPPFLAGS += -DPCBNEW -I../pcbnew EDACPPFLAGS = $(CPPFLAGS) diff --git a/common/makefile.macosx b/common/makefile.macosx index 52cfa459cb..5033c94df9 100644 --- a/common/makefile.macosx +++ b/common/makefile.macosx @@ -6,7 +6,11 @@ TARGET = common.a all: $(TARGET) +deps: + $(CXX) $(CPPFLAGS) -E -MMD -MG *.cpp >/dev/null + include makefile.include +-include *.d CPPFLAGS += $(EXTRACPPFLAGS) EDACPPFLAGS = $(CPPFLAGS) diff --git a/cvpcb/makefile.macosx b/cvpcb/makefile.macosx index a9605a49ab..4c6932eb91 100644 --- a/cvpcb/makefile.macosx +++ b/cvpcb/makefile.macosx @@ -6,7 +6,11 @@ TARGET = cvpcb all: $(TARGET).app +deps: + $(CXX) $(CPPFLAGS) -E -MMD -MG *.cpp >/dev/null + include makefile.include +-include *.d CPPFLAGS += $(EXTRACPPFLAGS) EDACPPFLAGS = $(CPPFLAGS) diff --git a/eeschema/makefile.macosx b/eeschema/makefile.macosx index fc532c7916..e5d4c10d2c 100644 --- a/eeschema/makefile.macosx +++ b/eeschema/makefile.macosx @@ -6,7 +6,11 @@ TARGET = eeschema all: $(TARGET).app netlist_form_pads-pcb +deps: + $(CXX) $(CPPFLAGS) -E -MMD -MG *.cpp >/dev/null + include makefile.include +-include *.d CPPFLAGS += $(EXTRACPPFLAGS) EDACPPFLAGS = $(CPPFLAGS) diff --git a/gerbview/makefile.macosx b/gerbview/makefile.macosx index 881b75a474..dabb1fb1a4 100644 --- a/gerbview/makefile.macosx +++ b/gerbview/makefile.macosx @@ -6,7 +6,11 @@ TARGET = gerbview all: $(TARGET).app +deps: + $(CXX) $(CPPFLAGS) -E -MMD -MG *.cpp >/dev/null + include makefile.include +-include *.d CPPFLAGS += $(EXTRACPPFLAGS) EDACPPFLAGS = $(CPPFLAGS) diff --git a/kicad/makefile.macosx b/kicad/makefile.macosx index ea2fa3455e..655d031544 100644 --- a/kicad/makefile.macosx +++ b/kicad/makefile.macosx @@ -6,7 +6,11 @@ TARGET = kicad all: $(TARGET).app +deps: + $(CXX) $(CPPFLAGS) -E -MMD -MG *.cpp >/dev/null + include makefile.include +-include *.d CPPFLAGS += $(EXTRACPPFLAGS) EDACPPFLAGS = $(CPPFLAGS) diff --git a/makefile.macosx b/makefile.macosx index 6f7f2d7b5c..30e6f4a1c1 100644 --- a/makefile.macosx +++ b/makefile.macosx @@ -9,6 +9,9 @@ MAKE_CLEAN = make -f makefile.macosx clean all: @for d in $(KICAD_SUBDIRS); do (cd $$d && $(MAKE)); done +deps: + @for d in $(KICAD_SUBDIRS); do (cd $$d && $(MAKE) -k deps); done + install: @for d in $(KICAD_SUBDIRS_BIN); do (cd $$d && $(MAKE_INSTALL)); done diff --git a/pcbnew/makefile.macosx b/pcbnew/makefile.macosx index 60392961a5..472a636ada 100644 --- a/pcbnew/makefile.macosx +++ b/pcbnew/makefile.macosx @@ -6,7 +6,11 @@ TARGET = pcbnew all: $(TARGET).app +deps: + $(CXX) $(CPPFLAGS) -E -MMD -MG *.cpp >/dev/null + include makefile.include +-include *.d CPPFLAGS += $(EXTRACPPFLAGS) EDACPPFLAGS = $(CPPFLAGS) diff --git a/pcbnew/ratsnest.cpp b/pcbnew/ratsnest.cpp index bc9b02a541..e3fa0bf8c1 100644 --- a/pcbnew/ratsnest.cpp +++ b/pcbnew/ratsnest.cpp @@ -114,7 +114,7 @@ void WinEDA_BasePcbFrame::Compile_Ratsnest( wxDC* DC, bool display_status_pcb ) m_Pcb->m_Status_Pcb = 0; /* we want a full ratnest computation, from the scratch */ build_liste_pads(); - MsgPanel->EraseMsgBox(); + MsgPanel->EraseMsgBox(DC); msg.Printf( wxT( " %d" ), m_Pcb->m_NbPads ); Affiche_1_Parametre( this, 1, wxT( "pads" ), msg, RED );