diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2005-11-17 22:56:02 +0000 |
---|---|---|
committer | Peter S. Mazinger <ps.m@gmx.net> | 2005-11-17 22:56:02 +0000 |
commit | 0a7b9d5d57021e616dc5e4b5dfaa3b93131381af (patch) | |
tree | c8f59bd3d11749d7512393e5e34e17a7270c5bc6 /libresolv | |
parent | c24e561a344c12f829ffffbf1b5b7b179409b0da (diff) |
Include all lib*/Makefile.in in top_srcdir/Makefile.in, allows adding foreign objects to a lib
Diffstat (limited to 'libresolv')
-rw-r--r-- | libresolv/Makefile.in | 48 |
1 files changed, 36 insertions, 12 deletions
diff --git a/libresolv/Makefile.in b/libresolv/Makefile.in index 06938da9b..d94a076f8 100644 --- a/libresolv/Makefile.in +++ b/libresolv/Makefile.in @@ -5,22 +5,46 @@ # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. # -CFLAGS+=$(SSP_ALL_CFLAGS) +CFLAGS-libresolv := -DNOT_IN_libc $(SSP_ALL_CFLAGS) -LIB_NAME:=libresolv +LDFLAGS-libresolv.so := $(LDFLAGS) -libresolv_DIR:=$(top_srcdir)libresolv -libresolv_OUT:=$(top_builddir)libresolv +LIBS-libresolv.so := $(LIBS) -libresolv_SRC:=$(libresolv_DIR)/resolv.c -libresolv_OBJ:=$(patsubst $(libresolv_DIR)/%.c,$(libresolv_OUT)/%.o,$(libresolv_SRC)) +libresolv_FULL_NAME := libresolv-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so -libresolv-a-y:=$(libresolv_OBJ) -libresolv-so-y:=$(libresolv_OBJ:.o=.os) +libresolv_DIR := $(top_srcdir)libresolv +libresolv_OUT := $(top_builddir)libresolv -libresolv-multi-y:=$(libresolv_SRC) +libresolv_SRC := $(libresolv_DIR)/resolv.c +libresolv_OBJ := $(patsubst $(libresolv_DIR)/%.c,$(libresolv_OUT)/%.o,$(libresolv_SRC)) -objclean-y+=libresolv_clean +libresolv-a-y := $(libresolv_OBJ) +libresolv-so-y := $(libresolv_OBJ:.o=.os) -lib-a-y+=$(top_builddir)lib/libresolv.a -lib-so-y+=$(top_builddir)lib/libresolv.so +libresolv-multi-y := $(libresolv_SRC) + +lib-a-y += $(top_builddir)lib/libresolv.a +lib-so-y += $(top_builddir)lib/libresolv.so +objclean-y += libresolv_clean + +$(top_builddir)lib/libresolv.so: $(libresolv_OUT)/libresolv_so.a libc-y + $(call link.so,$(libresolv_FULL_NAME),$(MAJOR_VERSION)) + +$(libresolv_OUT)/libresolv_so.a: $(libresolv-so-y) + $(Q)$(RM) $@ + $(do_strip) + $(do_ar) + +ifeq ($(DOPIC),y) +$(top_builddir)lib/libresolv.a: $(libresolv-a-y:.o=.os) +else +$(top_builddir)lib/libresolv.a: $(libresolv-a-y) +endif + $(Q)$(INSTALL) -d $(dir $@) + $(Q)$(RM) $@ + $(do_strip) + $(do_ar) + +libresolv_clean: + $(RM) $(libresolv_OUT)/*.{o,os,a} |