| 1 |
ifeq ($(subdir),misc) |
| 2 |
sysdep_headers += regdef.h fpregdef.h sys/regdef.h sys/fpregdef.h \ |
| 3 |
sys/asm.h sgidefs.h |
| 4 |
endif |
| 5 |
|
| 6 |
ifeq ($(subdir),setjmp) |
| 7 |
sysdep_routines += setjmp_aux |
| 8 |
endif |
| 9 |
|
| 10 |
ifeq ($(subdir),rt) |
| 11 |
librt-sysdep_routines += rt-sysdep |
| 12 |
librt-shared-only-routines += rt-sysdep |
| 13 |
endif |
| 14 |
|
| 15 |
ifeq ($(subdir),csu) |
| 16 |
CPPFLAGS-crti.S += $(pic-ccflag) |
| 17 |
CPPFLAGS-crtn.S += $(pic-ccflag) |
| 18 |
endif |
| 19 |
|
| 20 |
ifeq ($(subdir),string) |
| 21 |
CFLAGS-strcmp.c += -funroll-loops |
| 22 |
endif |
| 23 |
|
| 24 |
ASFLAGS-.os += $(pic-ccflag) |
| 25 |
|
| 26 |
ASFLAGS-.o += $(pie-default) |
| 27 |
ASFLAGS-.op += $(pie-default) |
| 28 |
|
| 29 |
ifeq ($(subdir),elf) |
| 30 |
|
| 31 |
|
| 32 |
test-xfail-tst-audit24a = yes |
| 33 |
test-xfail-tst-audit24b = yes |
| 34 |
test-xfail-tst-audit24c = yes |
| 35 |
test-xfail-tst-audit24d = yes |
| 36 |
test-xfail-tst-audit25a = yes |
| 37 |
test-xfail-tst-audit25b = yes |
| 38 |
|
| 39 |
ifneq ($(o32-fpabi),) |
| 40 |
tests += tst-abi-interlink |
| 41 |
|
| 42 |
fpabi-modules-names = |
| 43 |
fpabi_list = |
| 44 |
ifneq (,$(filter $(o32-fpabi),32 xx xxo)) |
| 45 |
fpabi-modules-names += tst-abi-fp32mod |
| 46 |
CFLAGS-tst-abi-fp32mod.c += -mfp32 |
| 47 |
endif |
| 48 |
ifneq (,$(filter $(o32-fpabi),xx)) |
| 49 |
fpabi-modules-names += tst-abi-fpxxmod |
| 50 |
CFLAGS-tst-abi-fpxxmod.c += -mfpxx -mno-odd-spreg |
| 51 |
endif |
| 52 |
ifneq (,$(filter $(o32-fpabi),xx xxo)) |
| 53 |
ifeq ($(has-modd-spreg),yes) |
| 54 |
fpabi-modules-names += tst-abi-fpxxomod |
| 55 |
CFLAGS-tst-abi-fpxxomod.c += -mfpxx -modd-spreg |
| 56 |
endif |
| 57 |
endif |
| 58 |
ifneq (,$(filter $(o32-fpabi),xx 64a)) |
| 59 |
ifeq ($(has-mpf64),yes) |
| 60 |
fpabi-modules-names += tst-abi-fp64amod |
| 61 |
CFLAGS-tst-abi-fp64amod.c += -mfp64 -mno-odd-spreg |
| 62 |
endif |
| 63 |
endif |
| 64 |
ifneq (,$(filter $(o32-fpabi),xx xxo 64a 64)) |
| 65 |
ifeq ($(has-mpf64)-$(has-modd-spreg),yes-yes) |
| 66 |
fpabi-modules-names += tst-abi-fp64mod |
| 67 |
CFLAGS-tst-abi-fp64mod.c += -mfp64 -modd-spreg |
| 68 |
endif |
| 69 |
endif |
| 70 |
modules-names += $(fpabi-modules-names) |
| 71 |
|
| 72 |
comma:=, |
| 73 |
empty:= |
| 74 |
space:=$(empty) $(empty) |
| 75 |
fpabi_list=$(subst $(space),$(comma),$(patsubst tst-abi-%mod,o_%,\ |
| 76 |
$(fpabi-modules-names))) |
| 77 |
CPPFLAGS-tst-abi-interlink.c += -DFPABI_LIST=$(fpabi_list) |
| 78 |
CPPFLAGS-tst-abi-interlink.c += -DFPABI_COUNT=$(words $(fpabi-modules-names)) |
| 79 |
CPPFLAGS-tst-abi-interlink.c += -DFPABI_NATIVE=o_fp$(o32-fpabi) |
| 80 |
$(objpfx)tst-abi-interlink.out: $(patsubst %,$(objpfx)%.so,\ |
| 81 |
$(fpabi-modules-names)) |
| 82 |
endif |
| 83 |
|
| 84 |
ifeq ($(mips-mode-switch),yes) |
| 85 |
ifeq ($(o32-fpabi),xx) |
| 86 |
tests += tst-mode-switch-1 tst-mode-switch-2 tst-mode-switch-3 |
| 87 |
endif |
| 88 |
endif |
| 89 |
endif |
| 90 |
|
| 91 |
ifeq ($(subdir),elf) |
| 92 |
tests += tst-undefined-weak |
| 93 |
modules-names += tst-undefined-weak-lib |
| 94 |
|
| 95 |
$(objpfx)tst-undefined-weak: $(objpfx)tst-undefined-weak-lib.so |
| 96 |
endif |