Commit bc52b0e6 authored by raburton's avatar raburton

simple hacky make dependancy solution

parent 956a9d83
...@@ -11,8 +11,11 @@ FINAL = 1 ...@@ -11,8 +11,11 @@ FINAL = 1
all: $(TARGET).a all: $(TARGET).a
include makefile.include deps:
$(CXX) $(CPPFLAGS) -E -MMD -MG *.cpp >/dev/null
include makefile.include
-include *.d
$(TARGET).a: $(OBJECTS3D) makefile.gtk makefile.include $(TARGET).a: $(OBJECTS3D) makefile.gtk makefile.include
rm -f $@ rm -f $@
...@@ -22,10 +25,7 @@ $(TARGET).a: $(OBJECTS3D) makefile.gtk makefile.include ...@@ -22,10 +25,7 @@ $(TARGET).a: $(OBJECTS3D) makefile.gtk makefile.include
install:$(TARGET).a install:$(TARGET).a
clean: clean:
rm -f *.o rm -f *.o *.exe *.res *.map *.d
rm -f *.exe
rm -f *.res
rm -f *.map
rm -f $(TARGET).a rm -f $(TARGET).a
......
...@@ -11,7 +11,11 @@ EDACPPFLAGS = $(CPPFLAGS) ...@@ -11,7 +11,11 @@ EDACPPFLAGS = $(CPPFLAGS)
all: common.a all: common.a
deps:
$(CXX) $(CPPFLAGS) -E -MMD -MG *.cpp >/dev/null
include makefile.include include makefile.include
-include *.d
CPPFLAGS += $(EXTRACPPFLAGS) -fno-strict-aliasing CPPFLAGS += $(EXTRACPPFLAGS) -fno-strict-aliasing
EDACPPFLAGS = $(CPPFLAGS) EDACPPFLAGS = $(CPPFLAGS)
...@@ -25,11 +29,7 @@ common.a: $(OBJECTS) makefile.gtk makefile.include ...@@ -25,11 +29,7 @@ common.a: $(OBJECTS) makefile.gtk makefile.include
install:common.a install:common.a
clean: clean:
rm -f *.o rm -f *.o *~ core *.bak *.obj *.d
rm -f *~
rm -f core
rm -f *.bak
rm -f *.obj
rm -f common.a rm -f common.a
...@@ -14,7 +14,11 @@ TARGET = cvpcb ...@@ -14,7 +14,11 @@ TARGET = cvpcb
all: $(TARGET) all: $(TARGET)
deps:
$(CXX) $(CPPFLAGS) -E -MMD -MG *.cpp >/dev/null
include makefile.include include makefile.include
-include *.d
CPPFLAGS += $(EXTRACPPFLAGS) CPPFLAGS += $(EXTRACPPFLAGS)
EDACPPFLAGS = $(CPPFLAGS) EDACPPFLAGS = $(CPPFLAGS)
...@@ -29,6 +33,6 @@ install: $(TARGET) ...@@ -29,6 +33,6 @@ install: $(TARGET)
cp -f $(TARGET) $(KICAD_BIN) cp -f $(TARGET) $(KICAD_BIN)
clean: clean:
rm -f *.o rm -f *.o *.d
rm -f $(TARGET) rm -f $(TARGET)
...@@ -13,7 +13,11 @@ TARGET = eeschema ...@@ -13,7 +13,11 @@ TARGET = eeschema
all: $(TARGET) all: $(TARGET)
deps:
$(CXX) $(CPPFLAGS) -E -MMD -MG *.cpp >/dev/null
include makefile.include include makefile.include
-include *.d
CPPFLAGS += $(EXTRACPPFLAGS) CPPFLAGS += $(EXTRACPPFLAGS)
EDACPPFLAGS = $(CPPFLAGS) EDACPPFLAGS = $(CPPFLAGS)
...@@ -31,10 +35,7 @@ install: $(TARGET) ...@@ -31,10 +35,7 @@ install: $(TARGET)
clean: clean:
rm -f *.o rm -f *.o *.d *~ core *.bak
rm -f *~
rm -f core
rm -f *.bak
rm -f $(TARGET) rm -f $(TARGET)
......
...@@ -15,6 +15,11 @@ endif ...@@ -15,6 +15,11 @@ endif
all: netlist_form_pads-pcb all: netlist_form_pads-pcb
deps:
$(CXX) $(CPPFLAGS) -E -MMD -MG *.cpp >/dev/null
-include *.d
netlist_form_pads-pcb: netlist_form_pads-pcb.cpp makefile.gtk netlist_form_pads-pcb: netlist_form_pads-pcb.cpp makefile.gtk
gcc -D__UNIX__ -Wall netlist_form_pads-pcb.cpp -o netlist_form_pads-pcb $(LIBSTDC) gcc -D__UNIX__ -Wall netlist_form_pads-pcb.cpp -o netlist_form_pads-pcb $(LIBSTDC)
...@@ -24,9 +29,5 @@ install: netlist_form_pads-pcb ...@@ -24,9 +29,5 @@ install: netlist_form_pads-pcb
clean : clean :
rm -f netlist_form_pads-pcb rm -f netlist_form_pads-pcb
rm -f *.o rm -f *.o *.rsc *.res *.exe *.bak *.d
rm -f *.rsc
rm -f *.res
rm -f *.exe
rm -f *.bak
...@@ -11,7 +11,11 @@ TARGET = gerbview ...@@ -11,7 +11,11 @@ TARGET = gerbview
all: $(TARGET) all: $(TARGET)
deps:
$(CXX) $(CPPFLAGS) -E -MMD -MG *.cpp >/dev/null
include makefile.include include makefile.include
-include *.d
CPPFLAGS += $(EXTRACPPFLAGS) CPPFLAGS += $(EXTRACPPFLAGS)
EDACPPFLAGS = $(CPPFLAGS) EDACPPFLAGS = $(CPPFLAGS)
...@@ -26,10 +30,6 @@ install: $(TARGET) ...@@ -26,10 +30,6 @@ install: $(TARGET)
clean: clean:
rm -f *.o rm -f *.o *.exe *.res *.map *.d
rm -f *.exe
rm -f *.res
rm -f *.map
rm -f $(TARGET) rm -f $(TARGET)
\ No newline at end of file
...@@ -12,7 +12,11 @@ TARGET = kicad ...@@ -12,7 +12,11 @@ TARGET = kicad
all: $(TARGET) all: $(TARGET)
deps:
$(CXX) $(CPPFLAGS) -E -MMD -MG *.cpp >/dev/null
include makefile.include include makefile.include
-include *.d
CPPFLAGS += $(EXTRACPPFLAGS) CPPFLAGS += $(EXTRACPPFLAGS)
EDACPPFLAGS = $(CPPFLAGS) EDACPPFLAGS = $(CPPFLAGS)
...@@ -26,15 +30,6 @@ install: $(TARGET) ...@@ -26,15 +30,6 @@ install: $(TARGET)
cp -f $(TARGET) $(KICAD_BIN) cp -f $(TARGET) $(KICAD_BIN)
clean: clean:
rm -f *.o; rm -f *.o *.d *~ *.bak core
rm -f *~;
rm -f core;
rm -f *.bak
rm -f $(TARGET) rm -f $(TARGET)
...@@ -10,6 +10,11 @@ all: ...@@ -10,6 +10,11 @@ all:
$(MAKEGTK) -C $$dir; \ $(MAKEGTK) -C $$dir; \
done done
deps:
@for dir in $(KICAD_SUBDIRS); do \
$(MAKEGTK) -k -C $$dir deps; \
done
install-bin: install-bin:
@for dir in $(KICAD_SUBDIRS_BIN); do \ @for dir in $(KICAD_SUBDIRS_BIN); do \
$(MAKEGTK) -C $$dir install; \ $(MAKEGTK) -C $$dir install; \
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
/************************************************/ /************************************************/
#include "dialog_edit_module.h" #include "dialog_edit_module.h"
#include <wx/version.h>
/**************************************/ /**************************************/
/* class WinEDA_ModulePropertiesFrame */ /* class WinEDA_ModulePropertiesFrame */
......
...@@ -11,7 +11,11 @@ TARGET = pcbnew ...@@ -11,7 +11,11 @@ TARGET = pcbnew
all: $(TARGET) all: $(TARGET)
deps:
$(CXX) $(CPPFLAGS) -E -MMD -MG *.cpp >/dev/null
include makefile.include include makefile.include
-include *.d
CPPFLAGS += $(EXTRACPPFLAGS) CPPFLAGS += $(EXTRACPPFLAGS)
EDACPPFLAGS = $(CPPFLAGS) EDACPPFLAGS = $(CPPFLAGS)
...@@ -28,8 +32,7 @@ install: $(TARGET) ...@@ -28,8 +32,7 @@ install: $(TARGET)
clean: clean:
rm -f *.o rm -f *.o *.map *.d
rm -f *.map
rm -f $(TARGET) rm -f $(TARGET)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment