Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 2 commits
  • 9 files changed
  • 0 comments
  • 2 contributors
8  Makefile
... ...
@@ -1,16 +1,18 @@
  1
+RM ?= rm -f
  2
+
1 3
 all: build/top.bit build/top.fpg
2 4
 
3 5
 build/top.bit build/top.bin:
4 6
 	./build.py
5 7
 
6 8
 build/top.fpg: build/top.bin
7  
-	make -C tools
  9
+	$(MAKE) -C tools
8 10
 	tools/byteswap $< $@
9 11
 
10 12
 load: build/top.bit
11 13
 	jtag -n load.jtag
12 14
 
13 15
 clean:
14  
-	rm -rf build/*
  16
+	$(RM) -r build/*
15 17
 
16  
-.PHONY: load clean
  18
+.PHONY: all load clean
10  software/bios/Makefile
@@ -35,14 +35,14 @@ main.o: main.c
35 35
 	$(assemble)
36 36
 
37 37
 libs:
38  
-	make -C $(M2DIR)/software/libcompiler-rt
39  
-	make -C $(M2DIR)/software/libbase
40  
-	make -C $(M2DIR)/software/libnet
  38
+	$(MAKE) -C $(M2DIR)/software/libcompiler-rt
  39
+	$(MAKE) -C $(M2DIR)/software/libbase
  40
+	$(MAKE) -C $(M2DIR)/software/libnet
41 41
 
42 42
 flash: bios.bin
43 43
 	m1nor bios.bin
44 44
 
45 45
 clean:
46  
-	rm -f $(OBJECTS) $(OBJECTS:.o=.d) bios.elf bios.bin bios-rescue.elf bios-rescue.bin .*~ *~
  46
+	$(RM) $(OBJECTS) $(OBJECTS:.o=.d) bios.elf bios.bin bios-rescue.elf bios-rescue.bin .*~ *~
47 47
 
48  
-.PHONY: main.o clean libs flash
  48
+.PHONY: all main.o clean libs flash
2  software/common.mak
... ...
@@ -1,5 +1,7 @@
1 1
 TARGET_PREFIX=lm32-elf-
2 2
 
  3
+RM ?= rm -f
  4
+
3 5
 CC_normal := $(TARGET_PREFIX)gcc
4 6
 CX_normal := $(TARGET_PREFIX)g++
5 7
 AS_normal := $(TARGET_PREFIX)as
2  software/libbase/Makefile
@@ -21,4 +21,4 @@ libbase.a: $(OBJECTS)
21 21
 .PHONY: clean
22 22
 
23 23
 clean:
24  
-	rm -f $(OBJECTS) $(OBJECTS:.o=.ts) $(OBJECTS:.o=.d) libbase.a .*~ *~
  24
+	$(RM) $(OBJECTS) $(OBJECTS:.o=.ts) $(OBJECTS:.o=.d) libbase.a .*~ *~
2  software/libcompiler-rt/Makefile
@@ -22,4 +22,4 @@ libcompiler-rt.a: $(OBJECTS)
22 22
 .PHONY: clean
23 23
 
24 24
 clean:
25  
-	rm -f $(OBJECTS) $(OBJECTS:.o=.ts) $(OBJECTS:.o=.d) libcompiler-rt.a .*~ *~
  25
+	$(RM) $(OBJECTS) $(OBJECTS:.o=.ts) $(OBJECTS:.o=.d) libcompiler-rt.a .*~ *~
2  software/libnet/Makefile
@@ -21,4 +21,4 @@ libnet.a: $(OBJECTS)
21 21
 .PHONY: clean
22 22
 
23 23
 clean:
24  
-	rm -f $(OBJECTS) $(OBJECTS:.o=.ts) $(OBJECTS:.o=.d) libnet.a .*~ *~
  24
+	$(RM) $(OBJECTS) $(OBJECTS:.o=.ts) $(OBJECTS:.o=.d) libnet.a .*~ *~
12  software/videomixer/Makefile
@@ -55,15 +55,15 @@ dvisampler0.o: dvisampler0.h
55 55
 dvisampler1.o: dvisampler1.h
56 56
 
57 57
 libs:
58  
-	make -C $(M2DIR)/software/libcompiler-rt
59  
-	make -C $(M2DIR)/software/libbase
  58
+	$(MAKE) -C $(M2DIR)/software/libcompiler-rt
  59
+	$(MAKE) -C $(M2DIR)/software/libbase
60 60
 
61 61
 load: videomixer.bin
62  
-	make -C $(M2DIR)/tools
  62
+	$(MAKE) -C $(M2DIR)/tools
63 63
 	$(M2DIR)/tools/flterm --port /dev/ttyUSB0 --kernel videomixer.bin
64 64
 
65 65
 clean:
66  
-	rm -f $(OBJECTS) $(OBJECTS:.o=.d) videomixer.elf videomixer.bin .*~ *~
67  
-	rm -f dvisampler0.h dvisampler0.c dvisampler1.h dvisampler1.c
  66
+	$(RM) $(OBJECTS) $(OBJECTS:.o=.d) videomixer.elf videomixer.bin .*~ *~
  67
+	$(RM) dvisampler0.h dvisampler0.c dvisampler1.h dvisampler1.c
68 68
 
69  
-.PHONY: main.o clean libs load
  69
+.PHONY: all main.o clean libs load
6  tb/s6ddrphy/Makefile
@@ -6,6 +6,8 @@ SOURCES=tb_s6ddrphy.v ../../verilog/s6ddrphy/s6ddrphy.v \
6 6
 	$(XILINX)/verilog/src/unisims/OBUFT.v \
7 7
 	$(XILINX)/verilog/src/unisims/BUFPLL.v
8 8
 
  9
+RM ?= rm -f
  10
+
9 11
 all: tb_s6ddrphy
10 12
 
11 13
 isim: tb_s6ddrphy
@@ -15,9 +17,9 @@ cversim: $(SOURCES)
15 17
 	cver $(SOURCES)
16 18
 
17 19
 clean:
18  
-	rm -f tb_s6ddrphy verilog.log s6ddrphy.vcd
  20
+	$(RM) tb_s6ddrphy verilog.log s6ddrphy.vcd
19 21
 
20 22
 tb_s6ddrphy: $(SOURCES)
21 23
 	iverilog -o tb_s6ddrphy $(SOURCES)
22 24
 
23  
-.PHONY: clean sim cversim
  25
+.PHONY: all clean isim cversim
5  tools/Makefile
... ...
@@ -1,5 +1,6 @@
1 1
 TARGETS=mkmmimg flterm byteswap
2 2
 CC=gcc
  3
+RM ?= rm -f
3 4
 
4 5
 all: $(TARGETS)
5 6
 
@@ -10,7 +11,7 @@ install: mkmmimg flterm
10 11
 	install -d /usr/local/bin
11 12
 	install -m755 -t /usr/local/bin $^
12 13
 
13  
-.PHONY: clean install
  14
+.PHONY: all clean install
14 15
 
15 16
 clean:
16  
-	rm -f $(TARGETS)
  17
+	$(RM) $(TARGETS)

No commit comments for this range

Something went wrong with that request. Please try again.