Cygwin: fhandler_virtual: move fileid to path_conv member
[newlib-cygwin.git] / libgloss / Makefile.am
blob77a199e96523deeab5a2d9c0b6e9eabf767d2539
1 ## Top level makefile for libgloss
3 ACLOCAL_AMFLAGS = -I . -I .. -I ../config
5 # Variables that will accumulate in subdirs.
6 bin_PROGRAMS =
7 check_PROGRAMS =
8 info_TEXINFOS =
9 CLEANFILES =
10 PHONY =
12 SUBDIRS = @subdirs@ .
14 srcroot = $(top_srcdir)/..
15 tooldir = $(exec_prefix)/$(target_alias)
17 multilibtooldir = $(tooldir)/lib$(MULTISUBDIR)
18 multilibtool_DATA =
19 multilibtool_LIBRARIES =
20 multilibtool_PROGRAMS =
22 includetooldir = $(tooldir)/include
23 includetool_DATA =
25 includesystooldir = $(tooldir)/include/sys
26 includesystool_DATA =
28 # These are useful for standalone object files like crt0.o.
29 AM_CFLAGS = $(AM_CFLAGS_$(subst /,_,$(@D))) $(AM_CFLAGS_$(subst /,_,$(@D)_$(<F)))
30 AM_CCASFLAGS = $(AM_CCASFLAGS_$(subst /,_,$(@D))) $(AM_CCASFLAGS_$(subst /,_,$(@D)_$(<F)))
31 AM_CPPFLAGS = $(AM_CPPFLAGS_$(subst /,_,$(@D))) $(AM_CPPFLAGS_$(subst /,_,$(@D)_$(<F)))
32 AM_LDFLAGS = $(AM_LDFLAGS_$(subst /,_,$(@D))) $(AM_LDFLAGS_$(subst -,_,$(subst /,_,$(@D)_$(@F))))
34 AM_CPPFLAGS += -idirafter $(srcroot)/include
36 # A fake library so automake will generate rules for plain objects that we want
37 # to install (e.g. our crt0.o objects).
38 noinst_LIBRARIES = libobjs.a
39 libobjs_a_SOURCES =
41 ## Some convenience rules for debugging programs.
42 %.dis: %
43         $(AM_V_GEN)$(OBJDUMP) -d $< > $@
44 %.bin: %
45         $(AM_V_GEN)$(OBJCOPY) -O binary $< $@
46 %.hex: %
47         $(AM_V_GEN)$(OBJCOPY) -O ihex $< $@
48 %.srec: %
49         $(AM_V_GEN)$(OBJCOPY) -O srec $< $@
51 ## These are roughly topologically sorted in order to make porting more
52 ## streamlined.
53 FLAGS_TO_PASS = \
54         "CC=$(CC)" \
55         "CFLAGS=$(CFLAGS)" \
56         "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
57         "CCASFLAGS=$(CCASFLAGS)" \
58         "AR=$(AR)" \
59         "RANLIB=$(RANLIB)" \
60         "AR_FLAGS=$(AR_FLAGS)" \
61         "MAKEINFO=$(MAKEINFO)" \
62         "AS=$(AS)" \
63         "LD=$(LD)" \
64         "TARGET_CFLAGS=$(TARGET_CFLAGS)" \
65         "exec_prefix=$(exec_prefix)" \
66         "prefix=$(prefix)" \
67         "tooldir=$(tooldir)" \
68         "infodir=$(infodir)" \
69         "libdir=$(libdir)" \
70         "top_toollibdir=$(toollibdir)" \
71         "INSTALL=$(INSTALL)" \
72         "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
73         "INSTALL_DATA=$(INSTALL_DATA)" \
74         "DESTDIR=$(DESTDIR)"
76 include $(top_srcdir)/../multilib.am
78 TEXINFO_TEX = ../texinfo/texinfo.tex
80 if HAVE_DOC
81 include doc/Makefile.inc
82 endif
83 if CONFIG_AARCH64
84 include aarch64/Makefile.inc
85 endif
86 if CONFIG_ARC
87 include arc/Makefile.inc
88 endif
89 if CONFIG_ARM
90 include arm/Makefile.inc
91 endif
92 if CONFIG_BFIN
93 include bfin/Makefile.inc
94 endif
95 if CONFIG_CR16
96 include cr16/Makefile.inc
97 endif
98 if CONFIG_CSKY
99 include csky/Makefile.inc
100 endif
101 if CONFIG_D30V
102 include d30v/Makefile.inc
103 endif
104 if CONFIG_EPIPHANY
105 include epiphany/Makefile.inc
106 endif
107 if CONFIG_FR30
108 include fr30/Makefile.inc
109 endif
110 if CONFIG_FRV
111 include frv/Makefile.inc
112 endif
113 if CONFIG_FT32
114 include ft32/Makefile.inc
115 endif
116 if CONFIG_I386
117 include i386/Makefile.inc
118 endif
119 if CONFIG_I960
120 include i960/Makefile.inc
121 endif
122 if CONFIG_IQ2000
123 include iq2000/Makefile.inc
124 endif
125 if CONFIG_LIBNOSYS
126 include libnosys/Makefile.inc
127 endif
128 if CONFIG_LM32
129 include lm32/Makefile.inc
130 endif
131 if CONFIG_M32R
132 include m32r/Makefile.inc
133 endif
134 if CONFIG_MCORE
135 include mcore/Makefile.inc
136 endif
137 if CONFIG_MICROBLAZE
138 include microblaze/Makefile.inc
139 endif
140 if CONFIG_MN10200
141 include mn10200/Makefile.inc
142 endif
143 if CONFIG_MN10300
144 include mn10300/Makefile.inc
145 endif
146 if CONFIG_MOXIE
147 include moxie/Makefile.inc
148 endif
149 if CONFIG_MSP430
150 include msp430/Makefile.inc
151 endif
152 if CONFIG_NDS32
153 include nds32/Makefile.inc
154 endif
155 if CONFIG_NIOS2
156 include nios2/Makefile.inc
157 endif
158 if CONFIG_OR1K
159 include or1k/Makefile.inc
160 endif
161 if CONFIG_PRU
162 include pru/Makefile.inc
163 endif
164 if CONFIG_RISCV
165 include riscv/Makefile.inc
166 endif
167 if CONFIG_RL78
168 include rl78/Makefile.inc
169 endif
170 if CONFIG_RX
171 include rx/Makefile.inc
172 endif
173 if CONFIG_SPARC
174 include sparc/Makefile.inc
175 endif
176 if CONFIG_SPARC_LEON
177 include sparc_leon/Makefile.inc
178 endif
179 if CONFIG_TIC6X
180 include tic6x/Makefile.inc
181 endif
182 if CONFIG_V850
183 include v850/Makefile.inc
184 endif
185 if CONFIG_VISIUM
186 include visium/Makefile.inc
187 endif
188 if CONFIG_WINCE
189 include wince/Makefile.inc
190 endif
191 if CONFIG_XSTORMY16
192 include xstormy16/Makefile.inc
193 endif
194 if CONFIG_XTENSA
195 include xtensa/Makefile.inc
196 endif