diff options
author | Ori Bernstein <ori@eigenstate.org> | 2015-11-15 17:07:28 -0800 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2015-11-15 19:17:25 -0800 |
commit | fcc859d58857fce2701ee30abd79ed891a46c3b2 (patch) | |
tree | 4fc0317015b37aabf01012ad51b96a2912f84896 /mk/c.mk | |
parent | af4500539de576c28d982faad6ac8b845ed236ce (diff) | |
download | mc-fcc859d58857fce2701ee30abd79ed891a46c3b2.tar.gz |
Fix build flags for Clang/Yacc
This allows us to build with -Werror again. Thanks to Ryan
Gonzalez.
Diffstat (limited to 'mk/c.mk')
-rw-r--r-- | mk/c.mk | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -7,7 +7,7 @@ _LIBINCPATHS=$(addprefix -I, $(dir $(DEPS))) _LIBPATHS=$(addprefix -l, $(patsubst lib%.a,%,$(notdir $(DEPS)))) # yeah, I should probably remove -Werror, but it's nice for developing alone. -CFLAGS += -Wall -Werror -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -g +CFLAGS += -Wall -Werror -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wno-sign-compare -Wno-array-bounds -g CFLAGS += -MMD -MP -MF ${_DEPSDIR}/$(subst /,-,$*).d LIB ?= $(INSTLIB) @@ -114,7 +114,7 @@ uninstall: subdirs-uninstall $(EXTRAUNINSTALL) %.o: %.c $(GENHDR) .deps $(CC) -c $(CFLAGS) $(_LIBINCPATHS) $< -.deps: +.deps: mkdir -p $(_DEPSDIR) config.mk: configure |