diff options
author | Bernhard Reutner-Fischer | 2006-03-13 19:04:00 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer | 2006-03-13 19:04:00 +0000 |
commit | df10094870c28cc0c6c5577c9aa03b8ede9cb8a6 (patch) | |
tree | 49493696039b285aa751a5bc884fc70c9c85e878 /networking/Makefile.in | |
parent | c5b1d4d6b14f22b5e2f7ae42eb01bf2746b8001c (diff) | |
download | busybox-df10094870c28cc0c6c5577c9aa03b8ede9cb8a6.zip busybox-df10094870c28cc0c6c5577c9aa03b8ede9cb8a6.tar.gz |
- revert back to r14406
Diffstat (limited to 'networking/Makefile.in')
-rw-r--r-- | networking/Makefile.in | 29 |
1 files changed, 18 insertions, 11 deletions
diff --git a/networking/Makefile.in b/networking/Makefile.in index 80cfd17..650fc1a 100644 --- a/networking/Makefile.in +++ b/networking/Makefile.in @@ -4,9 +4,13 @@ # # Licensed under the GPL v2, see the file LICENSE in this tarball. -srcdir:=$(top_srcdir)/networking -objdir:=$(top_builddir)/networking +NETWORKING_AR:=networking.a +ifndef $(NETWORKING_DIR) +NETWORKING_DIR:=$(top_builddir)/networking/ +endif +srcdir=$(top_srcdir)/networking +NETWORKING-y:= NETWORKING-$(CONFIG_ARPING) += arping.o NETWORKING-$(CONFIG_DNSD) += dnsd.o NETWORKING-$(CONFIG_ETHER_WAKE) += ether-wake.o @@ -40,11 +44,8 @@ NETWORKING-$(CONFIG_WGET) += wget.o NETWORKING-$(CONFIG_ZCIP) += zcip.o NETWORKING-y:=$(sort $(NETWORKING-y)) - -needcrypt-y:= -needcrypt-$(CONFIG_FEATURE_HTTPD_AUTH_MD5) := y -ifeq ($(needcrypt-y),y) - LIBRARIES := -lcrypt $(filter-out -lcrypt,$(LIBRARIES)) +ifneq ($(strip $(NETWORKING-y)),) +libraries-y+=$(NETWORKING_DIR)$(NETWORKING_AR) endif NETWORKING_SRC-y:=$(patsubst %.o,$(srcdir)/%.c,$(NETWORKING-y)) @@ -55,9 +56,15 @@ APPLET_SRC-a+=$(NETWORKING_SRC-a) LIBRARY_DEFINE-y+= -I$(top_srcdir)/networking LIBRARY_DEFINE-a+= -I$(top_srcdir)/networking -networking_OBJ:= $(patsubst %,$(objdir)/%,$(NETWORKING-y)) +needcrypt-y:= +needcrypt-$(CONFIG_FEATURE_HTTPD_AUTH_MD5) := y + +ifeq ($(needcrypt-y),y) + LIBRARIES := -lcrypt $(filter-out -lcrypt,$(LIBRARIES)) +endif -$(networking_OBJ): $(objdir)/%.o: $(srcdir)/%.c -$(objdir)/networking.a: $(networking_OBJ) -libraries-y:=$(libraries-y) $(objdir)/networking.a +$(NETWORKING_DIR)$(NETWORKING_AR): $(patsubst %,$(NETWORKING_DIR)%, $(NETWORKING-y)) + $(do_ar) +$(NETWORKING_DIR)%.o: $(srcdir)/%.c + $(compile.c) |