aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMart Lubbers2016-08-29 10:05:59 +0200
committerMart Lubbers2016-08-29 10:05:59 +0200
commit03284a37bc1f639232fb34a440ae32d0eab1de68 (patch)
treef1678e11717d5345aece36b963c68569ae1e8067 /Makefile
parenttabs>spacE' (diff)
fix makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 5 insertions, 12 deletions
diff --git a/Makefile b/Makefile
index 231a81d..ad786ca 100644
--- a/Makefile
+++ b/Makefile
@@ -1,15 +1,8 @@
-CC=gcc
-CFLAGS=-O3 -Wall -Wextra -Werror -pedantic
-DEPS=minctest.h
-OBJS=example.o minctest.o
+CFLAGS:=-O3 -Wall -Wextra -Werror -pedantic
+OBJS:=minctest.o
-%.o: %.c $(DEPS)
- $(CC) -c -o $@ $< $(CFLAGS)
-
-example: $(OBJS)
- $(CC) -o $@ $^ $(CFLAGS)
+example: example.c $(OBJS)
+ $(LINK.c) $^ $(OUTPUT_OPTION)
clean:
- $(RM) *.o example
-
-
+ $(RM) $(OBJS) example