Message ID | 1465979400-2964-4-git-send-email-adrian@lisas.de |
---|---|
State | Accepted |
Headers | show |
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
(cherry picked from commit 82532ec08b84313bcaa1f90be4a302053a294338) Cherry picked from https://lisas.de/~adrian/slof/slof.git/ Signed-off-by: Adrian Reber <adrian@lisas.de> --- tools/Makefile | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-)