summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2014-08-19 01:01:53 -0400
committerOri Bernstein <ori@eigenstate.org>2014-08-19 01:01:53 -0400
commitaf022c84643c46863fe2774917df7ec2ca2d127c (patch)
treed322ecab58d6698eebcfbc868a1f3ce92c842450 /mk
parentaa20d802cd4311a2f56914c0100542f8891f31a8 (diff)
downloadmc-af022c84643c46863fe2774917df7ec2ca2d127c.tar.gz
Document the build system.
And then make c.mk match the docs better.
Diffstat (limited to 'mk')
-rw-r--r--mk/c.mk8
1 files changed, 1 insertions, 7 deletions
diff --git a/mk/c.mk b/mk/c.mk
index 3c807ac..1a68a9b 100644
--- a/mk/c.mk
+++ b/mk/c.mk
@@ -6,8 +6,7 @@ _LIBSRCHPATHS=$(addprefix -L, $(dir $(DEPS)))
_LIBINCPATHS=$(addprefix -I, $(dir $(DEPS)))
_LIBPATHS=$(addprefix -l, $(patsubst lib%.a,%,$(notdir $(DEPS))))
-CFLAGS += -Wall -Werror -Wextra -Wno-unused-parameter -Wno-missing-field-initializers
-CFLAGS += -g
+CFLAGS ?= -Wall -Werror -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -g
CFLAGS += -MMD -MP -MF ${_DEPSDIR}/$(subst /,-,$*).d
LIB ?= $(INSTLIB)
@@ -111,11 +110,6 @@ uninstall: subdirs-uninstall
rm -f $(abspath $(DESTDIR)/$(INST_ROOT)/share/man/man$${sect}/$$i); \
done
-
-clean-backups:
- find ./ -name .*.sw* -exec rm -f {} \;
- find ./ -name *.bak -exec rm -f {} \;
-
%.o: %.c $(GENHDR) .deps
$(CC) -c $(CFLAGS) $(_LIBINCPATHS) $<