From 1ca147f9e08202dfbc78692e204adac280f8238b Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Sat, 14 Feb 2015 19:15:43 +0100 Subject: Rearrange testing architecture : just type 'make run_tests' --- src/rules.make | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/rules.make') diff --git a/src/rules.make b/src/rules.make index 6c02313..9f4e8ce 100644 --- a/src/rules.make +++ b/src/rules.make @@ -12,11 +12,8 @@ LDFLAGS += -ffreestanding -O2 -nostdlib -lgcc all: $(OUT) -%.bin: $(OBJ) - $(LD) $(LDFLAGS) -o $@ $^ $(LIB) - -%.lib: $(OBJ) - $(LD) $(LDFLAGS) -r -o $@ $^ $(LIB) +$(OUT): $(OBJ) $(LIB) + OUT=$(OUT); $(LD) $(LDFLAGS) `if [ $${OUT##*.} = lib ]; then echo -r; fi` -o $@ $^ %.o: %.s $(AS) $(ASFLAGS) -o $@ $< -- cgit v1.2.3