aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2017-12-09 17:21:08 +0100
committerMattias Andrée <maandree@kth.se>2017-12-09 17:21:08 +0100
commit84cfaf5481d7340b5420f0a4aed17bcf5b0f15a4 (patch)
tree40e98fdc8e353e83c9ecfb32a8222f55c7f77725 /Makefile
parentUpdate make clean (diff)
downloadpdeath-84cfaf5481d7340b5420f0a4aed17bcf5b0f15a4.tar.gz
pdeath-84cfaf5481d7340b5420f0a4aed17bcf5b0f15a4.tar.bz2
pdeath-84cfaf5481d7340b5420f0a4aed17bcf5b0f15a4.tar.xz
Fix makefile
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 11 insertions, 4 deletions
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