aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2017-12-09 17:10:14 +0100
committerMattias Andrée <maandree@kth.se>2017-12-09 17:10:14 +0100
commite0cb0b83f5d7e983662d80447d4fd8981a921698 (patch)
tree15e919409b369d7ee034169fce71ed800e210c0d /Makefile
parentRewrite and relicense (diff)
downloadexec-as-e0cb0b83f5d7e983662d80447d4fd8981a921698.tar.gz
exec-as-e0cb0b83f5d7e983662d80447d4fd8981a921698.tar.bz2
exec-as-e0cb0b83f5d7e983662d80447d4fd8981a921698.tar.xz
Fix makefile portability
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 8534793..fe1b394 100644
--- a/Makefile
+++ b/Makefile
@@ -5,8 +5,11 @@ include $(CONFIGFILE)
all: exec-as test
-.o:
- $(CC) -o $@ $^ $(LDFLAGS)
+exec-as: exec-as.o
+ $(CC) -o $@ exec-as.o $(LDFLAGS)
+
+test: test.o
+ $(CC) -o $@ test.o $(LDFLAGS)
.c.o:
$(CC) -c -o $@ $< $(CFLAGS) $(CPPFLAGS)
@@ -31,6 +34,7 @@ uninstall:
clean:
-rm -f -- exec-as test
-.SUFFIXES: .o .c.o
+.SUFFIXES:
+.SUFFIXES: .o .c
.PHONY: all check install uninstall clean