aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2017-12-09 17:51:15 +0100
committerMattias Andrée <maandree@kth.se>2017-12-09 17:51:15 +0100
commit5a0a9185aef1c4c8475d0ec6cb0ca77909d891a5 (patch)
treefce5b1fdd84e919796a72b4ad77442684dd93556
parentFix test (diff)
downloadxtest-5a0a9185aef1c4c8475d0ec6cb0ca77909d891a5.tar.gz
xtest-5a0a9185aef1c4c8475d0ec6cb0ca77909d891a5.tar.bz2
xtest-5a0a9185aef1c4c8475d0ec6cb0ca77909d891a5.tar.xz
Fix makefile portability
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r--Makefile10
1 files changed, 7 insertions, 3 deletions
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