tile: add basic support for tilegx
[uclibc-ng.git] / librt / Makefile.in
blobf3cc0655b22c6e60fdc140c031eb60f9e944c7b6
1 # Makefile for uClibc
3 # Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
5 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
8 subdirs += librt
10 CFLAGS-librt := -DNOT_IN_libc -DIS_IN_librt $(SSP_ALL_CFLAGS)
12 librt_DIR := $(top_srcdir)librt
13 librt_OUT := $(top_builddir)librt
15 librt_SRC := $(notdir $(wildcard $(librt_DIR)/*.c))
16 librt_filter_SRC :=
17 ifeq ($(UCLIBC_HAS_THREADS_NATIVE),y)
18 librt_filter_SRC += mq_notify.c timer_create.c timer_delete.c \
19 timer_getoverr.c timer_gettime.c timer_settime.c
20 endif
22 librt_filter_SRC += $(if $(UCLIBC_HAS_ADVANCED_REALTIME),, \
23 spawn.c \
24 spawn_faction_addclose.c \
25 spawn_faction_adddup2.c \
26 spawn_faction_addopen.c \
27 spawn_faction_init.c)
29 librt_filter_SRC += $(if $(UCLIBC_HAS_STUBS),,rt_stubs.c)
30 librt_filter_SRC += $(if $(HAS_NO_THREADS),dso_handle.c)
32 librt_SRC := $(filter-out $(librt_filter_SRC),$(librt_SRC))
33 librt_OBJ := $(patsubst %.c,$(librt_OUT)/%.o,$(librt_SRC))
35 ifeq ($(DOPIC),y)
36 librt-a-y += $(librt_OBJ:.o=.os)
37 else
38 librt-a-y += $(librt_OBJ)
39 endif
40 librt-so-y += $(librt_OBJ:.o=.os)
42 librt-dep-y := $(libc.depend)
44 objclean-y += CLEAN_librt
46 CLEAN_librt:
47 $(do_rm) $(addprefix $(librt_OUT)/*., o os oS a)