Commit bc52b0e6 authored by raburton's avatar raburton

simple hacky make dependancy solution

parent 956a9d83
......@@ -11,8 +11,11 @@ FINAL = 1
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
rm -f $@
......@@ -22,10 +25,7 @@ $(TARGET).a: $(OBJECTS3D) makefile.gtk makefile.include
install:$(TARGET).a
clean:
rm -f *.o
rm -f *.exe
rm -f *.res
rm -f *.map
rm -f *.o *.exe *.res *.map *.d
rm -f $(TARGET).a
......
......@@ -11,7 +11,11 @@ EDACPPFLAGS = $(CPPFLAGS)
all: common.a
deps:
$(CXX) $(CPPFLAGS) -E -MMD -MG *.cpp >/dev/null
include makefile.include
-include *.d
CPPFLAGS += $(EXTRACPPFLAGS) -fno-strict-aliasing
EDACPPFLAGS = $(CPPFLAGS)
......@@ -25,11 +29,7 @@ common.a: $(OBJECTS) makefile.gtk makefile.include
install:common.a
clean:
rm -f *.o
rm -f *~
rm -f core
rm -f *.bak
rm -f *.obj
rm -f *.o *~ core *.bak *.obj *.d
rm -f common.a
......@@ -14,7 +14,11 @@ TARGET = cvpcb
all: $(TARGET)
deps:
$(CXX) $(CPPFLAGS) -E -MMD -MG *.cpp >/dev/null
include makefile.include
-include *.d
CPPFLAGS += $(EXTRACPPFLAGS)
EDACPPFLAGS = $(CPPFLAGS)
......@@ -29,6 +33,6 @@ install: $(TARGET)
cp -f $(TARGET) $(KICAD_BIN)
clean:
rm -f *.o
rm -f *.o *.d
rm -f $(TARGET)
......@@ -13,7 +13,11 @@ TARGET = eeschema
all: $(TARGET)
deps:
$(CXX) $(CPPFLAGS) -E -MMD -MG *.cpp >/dev/null
include makefile.include
-include *.d
CPPFLAGS += $(EXTRACPPFLAGS)
EDACPPFLAGS = $(CPPFLAGS)
......@@ -31,10 +35,7 @@ install: $(TARGET)
clean:
rm -f *.o
rm -f *~
rm -f core
rm -f *.bak
rm -f *.o *.d *~ core *.bak
rm -f $(TARGET)
......
......@@ -15,6 +15,11 @@ endif
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
gcc -D__UNIX__ -Wall netlist_form_pads-pcb.cpp -o netlist_form_pads-pcb $(LIBSTDC)
......@@ -24,9 +29,5 @@ install: netlist_form_pads-pcb
clean :
rm -f netlist_form_pads-pcb
rm -f *.o
rm -f *.rsc
rm -f *.res
rm -f *.exe
rm -f *.bak
rm -f *.o *.rsc *.res *.exe *.bak *.d
......@@ -11,7 +11,11 @@ TARGET = gerbview
all: $(TARGET)
deps:
$(CXX) $(CPPFLAGS) -E -MMD -MG *.cpp >/dev/null
include makefile.include
-include *.d
CPPFLAGS += $(EXTRACPPFLAGS)
EDACPPFLAGS = $(CPPFLAGS)
......@@ -26,10 +30,6 @@ install: $(TARGET)
clean:
rm -f *.o
rm -f *.exe
rm -f *.res
rm -f *.map
rm -f *.o *.exe *.res *.map *.d
rm -f $(TARGET)
\ No newline at end of file
......@@ -12,7 +12,11 @@ TARGET = kicad
all: $(TARGET)
deps:
$(CXX) $(CPPFLAGS) -E -MMD -MG *.cpp >/dev/null
include makefile.include
-include *.d
CPPFLAGS += $(EXTRACPPFLAGS)
EDACPPFLAGS = $(CPPFLAGS)
......@@ -26,15 +30,6 @@ install: $(TARGET)
cp -f $(TARGET) $(KICAD_BIN)
clean:
rm -f *.o;
rm -f *~;
rm -f core;
rm -f *.bak
rm -f *.o *.d *~ *.bak core
rm -f $(TARGET)
......@@ -10,6 +10,11 @@ all:
$(MAKEGTK) -C $$dir; \
done
deps:
@for dir in $(KICAD_SUBDIRS); do \
$(MAKEGTK) -k -C $$dir deps; \
done
install-bin:
@for dir in $(KICAD_SUBDIRS_BIN); do \
$(MAKEGTK) -C $$dir install; \
......
......@@ -5,6 +5,7 @@
/************************************************/
#include "dialog_edit_module.h"
#include <wx/version.h>
/**************************************/
/* class WinEDA_ModulePropertiesFrame */
......
......@@ -11,7 +11,11 @@ TARGET = pcbnew
all: $(TARGET)
deps:
$(CXX) $(CPPFLAGS) -E -MMD -MG *.cpp >/dev/null
include makefile.include
-include *.d
CPPFLAGS += $(EXTRACPPFLAGS)
EDACPPFLAGS = $(CPPFLAGS)
......@@ -28,8 +32,7 @@ install: $(TARGET)
clean:
rm -f *.o
rm -f *.map
rm -f *.o *.map *.d
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