summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid McMackins II <contact@mcmackins.org>2017-05-13 11:45:13 -0500
committerDavid McMackins II <contact@mcmackins.org>2017-05-13 11:45:13 -0500
commit67205cb3ea1853920bf97ad17f63dc8dbd8c91d3 (patch)
tree9479b0224cd170717d170ab02ecd5c68d48601bf
parent00f756e31e15d2a1b4bbdba8230c5ed192b88851 (diff)
Update MakefileHEADmaster
-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