From 5a0a9185aef1c4c8475d0ec6cb0ca77909d891a5 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 9 Dec 2017 17:51:15 +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(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 9cc8113..c93e06d 100644 --- a/Makefile +++ b/Makefile @@ -5,8 +5,11 @@ include $(CONFIGFILE) all: xtest mksocket -.o: - $(CC) -o $@ $^ $(LDFLAGS) +xtest: xtest.o + $(CC) -o $@ xtest.o $(LDFLAGS) + +mksocket: mksocket.o + $(CC) -o $@ mksocket.o $(LDFLAGS) .c.o: $(CC) -c -o $@ $< $(CFLAGS) $(CPPFLAGS) @@ -32,6 +35,7 @@ uninstall: clean: -rm -rf -- xtest mksocket *.o .testdir -.SUFFIXES: .o .c.o +.SUFFIXES: +.SUFFIXES: .o .c .PHONY: all install uninstall clean -- cgit v1.2.3-70-g09d2