1 ## Top level makefile for libgloss
3 ACLOCAL_AMFLAGS = -I . -I .. -I ../config
5 # Variables that will accumulate in subdirs.
14 srcroot = $(top_srcdir)/..
15 tooldir = $(exec_prefix)/$(target_alias)
17 multilibtooldir = $(tooldir)/lib$(MULTISUBDIR)
19 multilibtool_LIBRARIES =
20 multilibtool_PROGRAMS =
22 includetooldir = $(tooldir)/include
25 includesystooldir = $(tooldir)/include/sys
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
41 ## Some convenience rules for debugging programs.
43 $(AM_V_GEN)$(OBJDUMP) -d $< > $@
45 $(AM_V_GEN)$(OBJCOPY) -O binary $< $@
47 $(AM_V_GEN)$(OBJCOPY) -O ihex $< $@
49 $(AM_V_GEN)$(OBJCOPY) -O srec $< $@
51 ## These are roughly topologically sorted in order to make porting more
56 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
57 "CCASFLAGS=$(CCASFLAGS)" \
60 "AR_FLAGS=$(AR_FLAGS)" \
61 "MAKEINFO=$(MAKEINFO)" \
64 "TARGET_CFLAGS=$(TARGET_CFLAGS)" \
65 "exec_prefix=$(exec_prefix)" \
67 "tooldir=$(tooldir)" \
68 "infodir=$(infodir)" \
70 "top_toollibdir=$(toollibdir)" \
71 "INSTALL=$(INSTALL)" \
72 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
73 "INSTALL_DATA=$(INSTALL_DATA)" \
76 include $(top_srcdir)/../multilib.am
78 TEXINFO_TEX = ../texinfo/texinfo.tex
81 include doc/Makefile.inc
84 include aarch64/Makefile.inc
87 include arc/Makefile.inc
90 include arm/Makefile.inc
93 include bfin/Makefile.inc
96 include cr16/Makefile.inc
99 include csky/Makefile.inc
102 include d30v/Makefile.inc
105 include epiphany/Makefile.inc
108 include fr30/Makefile.inc
111 include frv/Makefile.inc
114 include ft32/Makefile.inc
117 include i386/Makefile.inc
120 include i960/Makefile.inc
123 include iq2000/Makefile.inc
126 include libnosys/Makefile.inc
129 include lm32/Makefile.inc
132 include m32r/Makefile.inc
135 include mcore/Makefile.inc
138 include microblaze/Makefile.inc
141 include mn10200/Makefile.inc
144 include mn10300/Makefile.inc
147 include moxie/Makefile.inc
150 include msp430/Makefile.inc
153 include nds32/Makefile.inc
156 include nios2/Makefile.inc
159 include or1k/Makefile.inc
162 include pru/Makefile.inc
165 include riscv/Makefile.inc
168 include rl78/Makefile.inc
171 include rx/Makefile.inc
174 include sparc/Makefile.inc
177 include sparc_leon/Makefile.inc
180 include tic6x/Makefile.inc
183 include v850/Makefile.inc
186 include visium/Makefile.inc
189 include wince/Makefile.inc
192 include xstormy16/Makefile.inc
195 include xtensa/Makefile.inc