summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index bd0942d..b0a8c5f 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,11 @@
CC=c99
-CFLAGS=-Wall -Wextra -Wunreachable-code -ftrapv -D_POSIX_C_SOURCE=2
+CFLAGS=-Wall -Wextra -Wunreachable-code -ftrapv -fPIC -g -D_POSIX_C_SOURCE=2
all: c-style
-c-style: style.o
- $(CC) -o c-style $?
+c_style_deps=style.o
+c-style: $(c_style_deps)
+ $(CC) -o $@ $(c_style_deps)
clean:
- rm -f *.o
+ rm -f *.o c-style