shithub: scc

Download patch

ref: 8d1263baee29b16b1ea7de48f1eb3e3d43e43e18
parent: cc8fd34873b779bedd6d54445fae80e3fb27ce13
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Fri Aug 23 12:40:21 EDT 2019

[tests/ld] Add size rule

--- a/tests/ld/execute/Makefile
+++ b/tests/ld/execute/Makefile
@@ -2,6 +2,7 @@
 AR = ../../../bin/ar
 LD = ../../../bin/ld
 RL = ../../../bin/ranlib
+SZ = ../../../bin/size
 
 OBJS   = f1.o f2.o
 OBJLIB = f3.o
@@ -13,8 +14,9 @@
 
 f.a: $(OBJLIB)
 	$(AR) -rv $@ $?
-	$(RL) $@
-	rm $?
 
+size:
+	$(SZ) *.o *.a
+
 clean:
-	rm -f *.o *.a a.out
+	rm -f *.o *.a a.out core* *.dat