Clean up gnu/lib-names.h generation (bug 14171).
[glibc.git] / sysdeps / unix / sysv / linux / mips / Makefile
blob25fb18b3ddee84103d2db6f629337dbfb98a8ddf
1 ifeq ($(subdir),signal)
2 #sysdep_routines += sigsuspend
3 endif
5 ifeq ($(subdir),misc)
6 sysdep_routines += cachectl cacheflush sysmips _test_and_set
8 sysdep_headers += sys/cachectl.h sys/sysmips.h sys/tas.h
9 endif
11 abi-variants := o32_soft o32_hard o32_soft_2008 o32_hard_2008
12 abi-variants += n32_soft n32_hard n32_soft_2008 n32_hard_2008
13 abi-variants += n64_soft n64_hard n64_soft_2008 n64_hard_2008
15 ifeq (,$(filter $(default-abi),$(abi-variants)))
16 Unknown ABI, must be one of $(abi-variants)
17 endif
19 abi-includes := sgidefs.h
21 # _MIPS_SIM_ABI32 == 1, _MIPS_SIM_NABI32 == 2, _MIPS_SIM_ABI64 == 3
22 abi-o32_soft-options := -U_MIPS_SIM -D_MIPS_SIM=1 \
23 -D__mips_soft_float -U__mips_hard_float \
24 -U__mips_nan2008
25 abi-o32_soft-condition := !defined(__mips_nan2008) \
26 && defined(__mips_soft_float) \
27 && (_MIPS_SIM == _MIPS_SIM_ABI32)
28 abi-o32_hard-options := -U_MIPS_SIM -D_MIPS_SIM=1 \
29 -D__mips_hard_float -U__mips_soft_float \
30 -U__mips_nan2008
31 abi-o32_hard-condition := !defined(__mips_nan2008) \
32 && defined(__mips_hard_float) \
33 && (_MIPS_SIM == _MIPS_SIM_ABI32)
34 abi-o32_soft_2008-options := -U_MIPS_SIM -D_MIPS_SIM=1 \
35 -D__mips_soft_float -U__mips_hard_float \
36 -D__mips_nan2008
37 abi-o32_soft_2008-condition := defined(__mips_nan2008) \
38 && defined(__mips_soft_float) \
39 && (_MIPS_SIM == _MIPS_SIM_ABI32)
40 abi-o32_hard_2008-options := -U_MIPS_SIM -D_MIPS_SIM=1 \
41 -D__mips_hard_float -U__mips_soft_float \
42 -D__mips_nan2008
43 abi-o32_hard_2008-condition := defined(__mips_nan2008) \
44 && defined(__mips_hard_float) \
45 && (_MIPS_SIM == _MIPS_SIM_ABI32)
46 abi-n32_soft-options := -U_MIPS_SIM -D_MIPS_SIM=2 \
47 -D__mips_soft_float -U__mips_hard_float \
48 -U__mips_nan2008
49 abi-n32_soft-condition := !defined(__mips_nan2008) \
50 && defined(__mips_soft_float) \
51 && (_MIPS_SIM == _MIPS_SIM_NABI32)
52 abi-n32_hard-options := -U_MIPS_SIM -D_MIPS_SIM=2 \
53 -D__mips_hard_float -U__mips_soft_float \
54 -U__mips_nan2008
55 abi-n32_hard-condition := !defined(__mips_nan2008) \
56 && defined(__mips_hard_float) \
57 && (_MIPS_SIM == _MIPS_SIM_NABI32)
58 abi-n32_soft_2008-options := -U_MIPS_SIM -D_MIPS_SIM=2 \
59 -D__mips_soft_float -U__mips_hard_float \
60 -D__mips_nan2008
61 abi-n32_soft_2008-condition := defined(__mips_nan2008) \
62 && defined(__mips_soft_float) \
63 && (_MIPS_SIM == _MIPS_SIM_NABI32)
64 abi-n32_hard_2008-options := -U_MIPS_SIM -D_MIPS_SIM=2 \
65 -D__mips_hard_float -U__mips_soft_float \
66 -D__mips_nan2008
67 abi-n32_hard_2008-condition := defined(__mips_nan2008) \
68 && defined(__mips_hard_float) \
69 && (_MIPS_SIM == _MIPS_SIM_NABI32)
70 abi-n64_soft-options := -U_MIPS_SIM -D_MIPS_SIM=3 \
71 -D__mips_soft_float -U__mips_hard_float \
72 -U__mips_nan2008
73 abi-n64_soft-condition := !defined(__mips_nan2008) \
74 && defined(__mips_soft_float) \
75 && (_MIPS_SIM == _MIPS_SIM_ABI64)
76 abi-n64_hard-options := -U_MIPS_SIM -D_MIPS_SIM=3 \
77 -D__mips_hard_float -U__mips_soft_float \
78 -U__mips_nan2008
79 abi-n64_hard-condition := !defined(__mips_nan2008) \
80 && defined(__mips_hard_float) \
81 && (_MIPS_SIM == _MIPS_SIM_ABI64)
82 abi-n64_soft_2008-options := -U_MIPS_SIM -D_MIPS_SIM=3 \
83 -D__mips_soft_float -U__mips_hard_float \
84 -D__mips_nan2008
85 abi-n64_soft_2008-condition := defined(__mips_nan2008) \
86 && defined(__mips_soft_float) \
87 && (_MIPS_SIM == _MIPS_SIM_ABI64)
88 abi-n64_hard_2008-options := -U_MIPS_SIM -D_MIPS_SIM=3 \
89 -D__mips_hard_float -U__mips_soft_float \
90 -D__mips_nan2008
91 abi-n64_hard_2008-condition := defined(__mips_nan2008) \
92 && defined(__mips_hard_float) \
93 && (_MIPS_SIM == _MIPS_SIM_ABI64)
95 ifeq ($(subdir),elf)
96 ifeq ($(build-shared),yes)
97 # This is needed for DSO loading from static binaries.
98 sysdep-dl-routines += dl-static
99 sysdep_routines += dl-static
100 sysdep-rtld-routines += dl-static
101 endif
102 endif
104 ifeq ($(subdir),stdlib)
105 gen-as-const-headers += ucontext_i.sym
106 endif