diff options
Diffstat (limited to 'coreutils/Makefile.in')
-rw-r--r-- | coreutils/Makefile.in | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/coreutils/Makefile.in b/coreutils/Makefile.in index a5343c9c7..aacb813b3 100644 --- a/coreutils/Makefile.in +++ b/coreutils/Makefile.in | |||
@@ -19,8 +19,9 @@ | |||
19 | 19 | ||
20 | COREUTILS_AR:=coreutils.a | 20 | COREUTILS_AR:=coreutils.a |
21 | ifndef $(COREUTILS_DIR) | 21 | ifndef $(COREUTILS_DIR) |
22 | COREUTILS_DIR:=$(TOPDIR)coreutils/ | 22 | COREUTILS_DIR:=$(top_builddir)/coreutils/ |
23 | endif | 23 | endif |
24 | srcdir=$(top_srcdir)/coreutils | ||
24 | 25 | ||
25 | COREUTILS-y:= | 26 | COREUTILS-y:= |
26 | COREUTILS-$(CONFIG_BASENAME) += basename.o | 27 | COREUTILS-$(CONFIG_BASENAME) += basename.o |
@@ -91,3 +92,7 @@ libraries-y+=$(COREUTILS_DIR)$(COREUTILS_AR) | |||
91 | 92 | ||
92 | $(COREUTILS_DIR)$(COREUTILS_AR): $(patsubst %,$(COREUTILS_DIR)%, $(COREUTILS-y)) | 93 | $(COREUTILS_DIR)$(COREUTILS_AR): $(patsubst %,$(COREUTILS_DIR)%, $(COREUTILS-y)) |
93 | $(AR) -ro $@ $(patsubst %,$(COREUTILS_DIR)%, $(COREUTILS-y)) | 94 | $(AR) -ro $@ $(patsubst %,$(COREUTILS_DIR)%, $(COREUTILS-y)) |
95 | |||
96 | $(COREUTILS_DIR)%.o: $(srcdir)/%.c | ||
97 | $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c -o $@ $< | ||
98 | |||