From 84cfaf5481d7340b5420f0a4aed17bcf5b0f15a4 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 9 Dec 2017 17:21:08 +0100 Subject: Fix makefile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 3896877..f239a15 100644 --- a/Makefile +++ b/Makefile @@ -5,11 +5,17 @@ include $(CONFIGFILE) all: pdeath tinysleep test -.o: - $(CC) -o $@ $^ $(LDFLAGS) +pdeath: pdeath.o + $(CC) -o $@ pdeath.o $(LDFLAGS) + +tinysleep: tinysleep.o + $(CC) -o $@ tinysleep.o $(LDFLAGS) + +test: test.o + $(CC) -o $@ test.o $(LDFLAGS) .c.o: - $(CC) -o $@ $< $(CPPFLAGS) $(CFLAGS) + $(CC) -c -o $@ $< $(CPPFLAGS) $(CFLAGS) check: pdeath tinysleep test ./pdeath -L >/dev/null @@ -52,6 +58,7 @@ uninstall: clean: -rm -rf -- *.o pdeath tinysleep test .testdir -SUFFIXES: .o .c.o +SUFFIXES: +SUFFIXES: .o .c .PHONY: all check install uninstall clean -- cgit v1.2.3-70-g09d2