diff options
author | Mattias Andrée <maandree@kth.se> | 2017-12-09 17:21:08 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2017-12-09 17:21:08 +0100 |
commit | 84cfaf5481d7340b5420f0a4aed17bcf5b0f15a4 (patch) | |
tree | 40e98fdc8e353e83c9ecfb32a8222f55c7f77725 | |
parent | Update make clean (diff) | |
download | pdeath-84cfaf5481d7340b5420f0a4aed17bcf5b0f15a4.tar.gz pdeath-84cfaf5481d7340b5420f0a4aed17bcf5b0f15a4.tar.bz2 pdeath-84cfaf5481d7340b5420f0a4aed17bcf5b0f15a4.tar.xz |
Fix makefile
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r-- | Makefile | 15 |
1 files changed, 11 insertions, 4 deletions
@@ -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 |