aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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