From e0cb0b83f5d7e983662d80447d4fd8981a921698 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 9 Dec 2017 17:10:14 +0100 Subject: Fix makefile portability MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 8534793..fe1b394 100644 --- a/Makefile +++ b/Makefile @@ -5,8 +5,11 @@ include $(CONFIGFILE) all: exec-as test -.o: - $(CC) -o $@ $^ $(LDFLAGS) +exec-as: exec-as.o + $(CC) -o $@ exec-as.o $(LDFLAGS) + +test: test.o + $(CC) -o $@ test.o $(LDFLAGS) .c.o: $(CC) -c -o $@ $< $(CFLAGS) $(CPPFLAGS) @@ -31,6 +34,7 @@ uninstall: clean: -rm -f -- exec-as test -.SUFFIXES: .o .c.o +.SUFFIXES: +.SUFFIXES: .o .c .PHONY: all check install uninstall clean -- cgit v1.2.3-70-g09d2