1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- # Makefile for uClibc
- #
- # Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
- #
- # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
- #
- CFLAGS-librt := -DNOT_IN_libc $(SSP_ALL_CFLAGS)
- LDFLAGS-librt.so := $(LDFLAGS)
- LIBS-librt.so := $(LIBS)
- librt_FULL_NAME := librt-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so
- librt_DIR := $(top_srcdir)librt
- librt_OUT := $(top_builddir)librt
- librt_SRC := $(wildcard $(librt_DIR)/*.c)
- librt_OBJ := $(patsubst $(librt_DIR)/%.c,$(librt_OUT)/%.o,$(librt_SRC))
- librt-a-y := $(librt_OBJ)
- librt-so-y := $(librt_OBJ:.o=.os)
- librt-multi-y += $(librt_SRC)
- lib-a-y += $(top_builddir)lib/librt.a
- lib-so-y += $(top_builddir)lib/librt.so
- objclean-y += librt_clean
- $(top_builddir)lib/librt.so: $(librt_OUT)/librt_so.a libc-y
- $(call link.so,$(librt_FULL_NAME),$(MAJOR_VERSION))
- $(librt_OUT)/librt_so.a: $(librt-so-y)
- $(Q)$(RM) $@
- $(do_strip)
- $(do_ar)
- ifeq ($(DOPIC),y)
- $(top_builddir)lib/librt.a: $(librt-a-y:.o=.os)
- else
- $(top_builddir)lib/librt.a: $(librt-a-y)
- endif
- $(Q)$(INSTALL) -d $(dir $@)
- $(Q)$(RM) $@
- $(do_strip)
- $(do_ar)
- librt_clean:
- $(RM) $(librt_OUT)/*.{o,os,a}
|