diff options
author | Mart Lubbers | 2016-08-29 10:05:59 +0200 |
---|---|---|
committer | Mart Lubbers | 2016-08-29 10:05:59 +0200 |
commit | 03284a37bc1f639232fb34a440ae32d0eab1de68 (patch) | |
tree | f1678e11717d5345aece36b963c68569ae1e8067 /Makefile | |
parent | tabs>spacE' (diff) |
fix makefile
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 17 |
1 files changed, 5 insertions, 12 deletions
@@ -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 |