From: Michal Sojka Date: Wed, 21 Sep 2016 13:18:36 +0000 (+0200) Subject: Simplify Makefile to use built-in rules X-Git-Tag: 20160921~5 X-Git-Url: https://rtime.felk.cvut.cz/gitweb/sojka/sterm.git/commitdiff_plain/62a1247008bc084fe9fb736efdf5bfc33e8a7207 Simplify Makefile to use built-in rules --- diff --git a/Makefile b/Makefile index 6aa5b90..794e7b2 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,8 @@ CFLAGS = -O2 -Wall -LDFLAGS = -llockdev +LDLIBS = -llockdev all: sterm -%: %.c - $(CC) $(CFLAGS) $^ $(LDFLAGS) -o $@ - clean: rm -f sterm