aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorCamil Staps2016-08-29 11:09:27 +0200
committerGitHub2016-08-29 11:09:27 +0200
commitea57e1f9e43f36bf0374815d884caa2d75fbc366 (patch)
tree23112386b76c0270035d146eed3f0bc129ee4de1 /Makefile
parentpedantic (diff)
parentfix makefile (diff)
Merge pull request #2 from dopefishh/masterHEADmaster
Clean up 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