OSDN Git Service

removed unneccesary target in Makefile to speed up make time.
authorastoria-d <astoria-d@mail.goo.ne.jp>
Fri, 30 Aug 2013 02:43:51 +0000 (11:43 +0900)
committerastoria-d <astoria-d@mail.goo.ne.jp>
Fri, 30 Aug 2013 02:43:51 +0000 (11:43 +0900)
renamed dev directory to apu

simulation/Makefile
simulation/apu/Makefile [moved from simulation/dev/Makefile with 81% similarity]
simulation/apu/apu.vhd [moved from simulation/dev/apu.vhd with 100% similarity]
simulation/apu/testbench_apu.vhd [moved from simulation/dev/testbench_apu.vhd with 100% similarity]
simulation/cpu/Makefile
simulation/mem/Makefile
simulation/ppu/Makefile

index 78b1446..567ea29 100644 (file)
@@ -1,4 +1,4 @@
-DIRS=clock mem ppu dev cpu 
+DIRS=clock mem ppu apu cpu 
 MODULES=address_decoder.vhd motones_sim.vhd 
 WORKDIR=work
 TEST_MODULE = testbench_motones_sim.vhd
@@ -25,9 +25,12 @@ $(BIN): $(DIRS) $(OBJS)
 clean:
        -rm $(OBJS)
        -rm $(BIN)
-       -rm $(patsubst $(WORKDIR)/,$(WORKDIR)/e~, $(OBJS))
-       -rm *.o *.cf *.vcd
+       -rm $(subst .vhd,,$(WORKDIR)/e~$(TEST_MODULE)).o
+       -rm testbench.vcd*
        
 rclean: clean
+       for dir in $(DIRS); do \
+               make -C $(ROOT_DIR)/$$dir clean; \
+       done
        -rm $(WORKDIR)/*
 
similarity index 81%
rename from simulation/dev/Makefile
rename to simulation/apu/Makefile
index 27d2802..4403646 100644 (file)
@@ -13,7 +13,8 @@ BIN=$(subst .vhd,, $(TEST_MODULE))
 OBJS = $(addprefix $(WORKDIR)/,$(addsuffix .o,$(basename $(MODULES) $(TEST_MODULE))))
 
 
-all: $(BIN)
+all: $(OBJS)
+test: $(BIN)
 
 $(WORKDIR)/%.o: %.vhd
        ghdl -a $(GHDL_OPTION) $(subst .o,.vhd, $(subst $(WORKDIR)/,, $@))
@@ -24,6 +25,6 @@ $(BIN): $(OBJS)
 clean:
        -rm $(OBJS)
        -rm $(BIN)
-       -rm $(patsubst $(WORKDIR)/,$(WORKDIR)/e~, $(OBJS))
-       -rm *.o *.cf testbench.vcd*
+       -rm $(subst .vhd,,$(WORKDIR)/e~$(TEST_MODULE)).o
+       -rm testbench.vcd*
 
index 549706e..902beea 100644 (file)
@@ -14,7 +14,9 @@ BIN=$(subst .vhd,, $(TEST_MODULE))
 OBJS = $(addprefix $(WORKDIR)/,$(addsuffix .o,$(basename $(MODULES) $(TEST_MODULE))))
 
 
-all: $(BIN)
+all: $(OBJS)
+
+test: $(BIN)
 
 $(WORKDIR)/%.o: %.vhd
        ghdl -a $(GHDL_OPTION) $(subst .o,.vhd, $(subst $(WORKDIR)/,, $@))
@@ -25,6 +27,6 @@ $(BIN): $(OBJS)
 clean:
        -rm $(OBJS)
        -rm $(BIN)
-       -rm $(patsubst $(WORKDIR)/,$(WORKDIR)/e~, $(OBJS))
-       -rm *.o *.cf *.vcd
+       -rm $(subst .vhd,,$(WORKDIR)/e~$(TEST_MODULE)).o
+       -rm testbench.vcd*
 
index 98e49d2..b3a9c79 100644 (file)
@@ -12,7 +12,8 @@ BIN=$(subst .vhd,, $(TEST_MODULE))
 OBJS = $(addprefix $(WORKDIR)/,$(addsuffix .o,$(basename $(MODULES) $(TEST_MODULE))))
 
 
-all: $(BIN)
+all: $(OBJS)
+test: $(BIN)
 
 $(WORKDIR)/%.o: %.vhd
        ghdl -a $(GHDL_OPTION) $(subst .o,.vhd, $(subst $(WORKDIR)/,, $@))
@@ -23,6 +24,6 @@ $(BIN): $(OBJS)
 clean:
        -rm $(OBJS)
        -rm $(BIN)
-       -rm $(patsubst $(WORKDIR)/,$(WORKDIR)/e~, $(OBJS))
-       -rm *.o *.cf *.vcd
+       -rm $(subst .vhd,,$(WORKDIR)/e~$(TEST_MODULE)).o
+       -rm testbench.vcd*
 
index 513784b..c9909ee 100644 (file)
@@ -13,7 +13,9 @@ BIN=$(subst .vhd,, $(TEST_MODULE))
 OBJS = $(addprefix $(WORKDIR)/,$(addsuffix .o,$(basename $(MODULES) $(TEST_MODULE))))
 
 
-all: $(BIN)
+all: $(OBJS)
+
+test: $(BIN)
 
 $(WORKDIR)/%.o: %.vhd
        ghdl -a $(GHDL_OPTION) $(subst .o,.vhd, $(subst $(WORKDIR)/,, $@))
@@ -24,6 +26,6 @@ $(BIN): $(OBJS)
 clean:
        -rm $(OBJS)
        -rm $(BIN)
-       -rm $(patsubst $(WORKDIR)/,$(WORKDIR)/e~, $(OBJS))
-       -rm *.o *.cf testbench.vcd*
+       -rm $(subst .vhd,,$(WORKDIR)/e~$(TEST_MODULE)).o
+       -rm testbench.vcd*