summaryrefslogtreecommitdiff
path: root/mk/c.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
commit9ca6c28c98934802e0b99cd7be55f84b9f87c1f6 (patch)
treed322ecab58d6698eebcfbc868a1f3ce92c842450 /mk/c.mk
parent4ca9e2fd9c0213a83b79554dd76d3e19aa6adec7 (diff)
downloadmc-9ca6c28c98934802e0b99cd7be55f84b9f87c1f6.tar.gz
Document the build system.
And then make c.mk match the docs better.
Diffstat (limited to 'mk/c.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) $<