summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorOri Bernstein <orib@google.com>2012-06-13 14:59:52 -0400
committerOri Bernstein <orib@google.com>2012-06-13 14:59:52 -0400
commitc4adf490ce12152d8c3eb2163666f33f96881d3b (patch)
tree1be8101fa7b8c1646d5c7416239651d7068ef79b /mk
parent829b70e103c2f1eb5cf57c02e84fe80675cc3e5d (diff)
downloadmc-c4adf490ce12152d8c3eb2163666f33f96881d3b.tar.gz
Rename 'libdeps' to 'deps'. It's more general than just libs.
Diffstat (limited to 'mk')
-rw-r--r--mk/c.mk10
1 files changed, 5 insertions, 5 deletions
diff --git a/mk/c.mk b/mk/c.mk
index a2364ae..16b74fa 100644
--- a/mk/c.mk
+++ b/mk/c.mk
@@ -1,9 +1,9 @@
_DEPSDIR = .deps
_DEPS=$(addprefix $(_DEPSDIR)/, $(OBJ:.o=.d))
-_LIBSRCHPATHS=$(addprefix -L, $(dir $(LIBDEPS)))
-_LIBINCPATHS=$(addprefix -I, $(dir $(LIBDEPS)))
-_LIBPATHS=$(addprefix -l, $(patsubst lib%.a,%,$(notdir $(LIBDEPS))))
+_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
@@ -21,8 +21,8 @@ $(LIB): $(OBJ) libs
$(BIN): $(OBJ) $(EXTRADEP) libs
$(CC) -o $@ $(OBJ) $(_LIBSRCHPATHS) $(_LIBPATHS)
-libs: $(LIBDEPS)
- @for i in $(dir $(LIBDEPS)); do (\
+libs: $(DEPS)
+ @for i in $(dir $(DEPS)); do (\
cd $$i && \
$(MAKE) || \
exit 1 \