[SLOF] [PATCH 03/13] tools: added sloffs to Makefile

Adrian Reber adrian at lisas.de
Wed Jun 15 18:29:50 AEST 2016


(cherry picked from commit 82532ec08b84313bcaa1f90be4a302053a294338)

Cherry picked from https://lisas.de/~adrian/slof/slof.git/

Signed-off-by: Adrian Reber <adrian at lisas.de>
---
 tools/Makefile | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/tools/Makefile b/tools/Makefile
index 06cdaa7..a035960 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -12,7 +12,9 @@
 
 include ../make.rules
 
-all: gen_reloc_table
+TARGETS = gen_reloc_table sloffs
+
+all: $(TARGETS)
 
 %.o: %.c
 		$(HOSTCC) -W $(HOSTCFLAGS) -c $^
@@ -20,11 +22,13 @@ all: gen_reloc_table
 gen_reloc_table: gen_reloc_table.o
 		$(HOSTCC) $(HOSTCFLAGS) -o $@ $^
 
-clean_here:
-	rm -f *.o gen_reloc_table
+sloffs: sloffs.o
+		$(HOSTCC) $(HOSTCFLAGS) -o $@ $^
 
-clean:	clean_here
+clean_here:
+	rm -f *.o $(TARGETS)
 
+clean: clean_here
 
-distclean:	clean_here
 
+distclean: clean_here
-- 
2.7.4



More information about the SLOF mailing list