2022-01-17 17:12:11 +08:00
|
|
|
## Top level makefile for libgloss
|
|
|
|
|
|
|
|
ACLOCAL_AMFLAGS = -I . -I .. -I ../config
|
|
|
|
|
|
|
|
# Variables that will accumulate in subdirs.
|
2022-02-12 17:58:24 +08:00
|
|
|
bin_PROGRAMS =
|
2022-02-02 13:01:43 +08:00
|
|
|
check_PROGRAMS =
|
2022-02-02 12:46:57 +08:00
|
|
|
info_TEXINFOS =
|
2022-12-14 10:54:54 +08:00
|
|
|
CLEANFILES =
|
2022-01-17 17:12:11 +08:00
|
|
|
PHONY =
|
|
|
|
|
|
|
|
SUBDIRS = @subdirs@ .
|
|
|
|
|
2022-12-14 16:20:32 +08:00
|
|
|
srcroot = $(top_srcdir)/..
|
2022-01-17 17:12:11 +08:00
|
|
|
tooldir = $(exec_prefix)/$(target_alias)
|
|
|
|
|
2022-02-02 13:01:43 +08:00
|
|
|
multilibtooldir = $(tooldir)/lib$(MULTISUBDIR)
|
|
|
|
multilibtool_DATA =
|
|
|
|
multilibtool_LIBRARIES =
|
2023-12-27 13:18:12 +08:00
|
|
|
multilibtool_PROGRAMS =
|
2022-02-02 13:01:43 +08:00
|
|
|
|
2022-02-02 14:06:21 +08:00
|
|
|
includetooldir = $(tooldir)/include
|
|
|
|
includetool_DATA =
|
|
|
|
|
|
|
|
includesystooldir = $(tooldir)/include/sys
|
|
|
|
includesystool_DATA =
|
|
|
|
|
2023-12-30 09:34:38 +08:00
|
|
|
# These are useful for standalone object files like crt0.o.
|
|
|
|
AM_CFLAGS = $(AM_CFLAGS_$(subst /,_,$(@D))) $(AM_CFLAGS_$(subst /,_,$(@D)_$(<F)))
|
|
|
|
AM_CCASFLAGS = $(AM_CCASFLAGS_$(subst /,_,$(@D))) $(AM_CCASFLAGS_$(subst /,_,$(@D)_$(<F)))
|
|
|
|
AM_CPPFLAGS = $(AM_CPPFLAGS_$(subst /,_,$(@D))) $(AM_CPPFLAGS_$(subst /,_,$(@D)_$(<F)))
|
|
|
|
AM_LDFLAGS = $(AM_LDFLAGS_$(subst /,_,$(@D))) $(AM_LDFLAGS_$(subst -,_,$(subst /,_,$(@D)_$(@F))))
|
|
|
|
|
|
|
|
AM_CPPFLAGS += -idirafter $(srcroot)/include
|
2022-12-14 16:20:32 +08:00
|
|
|
|
2022-02-02 13:01:43 +08:00
|
|
|
# A fake library so automake will generate rules for plain objects that we want
|
|
|
|
# to install (e.g. our crt0.o objects).
|
|
|
|
noinst_LIBRARIES = libobjs.a
|
|
|
|
libobjs_a_SOURCES =
|
|
|
|
|
2023-12-29 14:51:27 +08:00
|
|
|
## Some convenience rules for debugging programs.
|
|
|
|
%.dis: %
|
|
|
|
$(AM_V_GEN)$(OBJDUMP) -d $< > $@
|
|
|
|
%.bin: %
|
|
|
|
$(AM_V_GEN)$(OBJCOPY) -O binary $< $@
|
|
|
|
%.hex: %
|
|
|
|
$(AM_V_GEN)$(OBJCOPY) -O ihex $< $@
|
|
|
|
%.srec: %
|
|
|
|
$(AM_V_GEN)$(OBJCOPY) -O srec $< $@
|
|
|
|
|
2022-01-17 17:12:11 +08:00
|
|
|
## These are roughly topologically sorted in order to make porting more
|
|
|
|
## streamlined.
|
|
|
|
FLAGS_TO_PASS = \
|
|
|
|
"CC=$(CC)" \
|
|
|
|
"CFLAGS=$(CFLAGS)" \
|
|
|
|
"CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
|
|
|
|
"CCASFLAGS=$(CCASFLAGS)" \
|
|
|
|
"AR=$(AR)" \
|
|
|
|
"RANLIB=$(RANLIB)" \
|
|
|
|
"AR_FLAGS=$(AR_FLAGS)" \
|
|
|
|
"MAKEINFO=$(MAKEINFO)" \
|
|
|
|
"AS=$(AS)" \
|
|
|
|
"LD=$(LD)" \
|
|
|
|
"TARGET_CFLAGS=$(TARGET_CFLAGS)" \
|
|
|
|
"exec_prefix=$(exec_prefix)" \
|
|
|
|
"prefix=$(prefix)" \
|
|
|
|
"tooldir=$(tooldir)" \
|
|
|
|
"infodir=$(infodir)" \
|
|
|
|
"libdir=$(libdir)" \
|
|
|
|
"top_toollibdir=$(toollibdir)" \
|
|
|
|
"INSTALL=$(INSTALL)" \
|
|
|
|
"INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
|
|
|
|
"INSTALL_DATA=$(INSTALL_DATA)" \
|
|
|
|
"DESTDIR=$(DESTDIR)"
|
|
|
|
|
|
|
|
include $(top_srcdir)/../multilib.am
|
2022-02-02 12:46:57 +08:00
|
|
|
|
|
|
|
TEXINFO_TEX = ../texinfo/texinfo.tex
|
|
|
|
|
|
|
|
if HAVE_DOC
|
|
|
|
include doc/Makefile.inc
|
|
|
|
endif
|
2022-12-14 10:54:54 +08:00
|
|
|
if CONFIG_AARCH64
|
|
|
|
include aarch64/Makefile.inc
|
|
|
|
endif
|
2022-12-15 07:54:45 +08:00
|
|
|
if CONFIG_ARC
|
|
|
|
include arc/Makefile.inc
|
|
|
|
endif
|
2022-12-14 11:27:35 +08:00
|
|
|
if CONFIG_ARM
|
|
|
|
include arm/Makefile.inc
|
|
|
|
endif
|
2022-02-02 14:06:21 +08:00
|
|
|
if CONFIG_BFIN
|
|
|
|
include bfin/Makefile.inc
|
|
|
|
endif
|
2023-01-13 12:34:59 +08:00
|
|
|
if CONFIG_CSKY
|
|
|
|
include csky/Makefile.inc
|
|
|
|
endif
|
2022-12-15 07:58:01 +08:00
|
|
|
if CONFIG_D30V
|
|
|
|
include d30v/Makefile.inc
|
|
|
|
endif
|
2023-12-27 11:29:20 +08:00
|
|
|
if CONFIG_FRV
|
|
|
|
include frv/Makefile.inc
|
|
|
|
endif
|
2023-12-27 11:39:05 +08:00
|
|
|
if CONFIG_I386
|
|
|
|
include i386/Makefile.inc
|
|
|
|
endif
|
2023-12-27 09:59:58 +08:00
|
|
|
if CONFIG_I960
|
|
|
|
include i960/Makefile.inc
|
|
|
|
endif
|
2022-02-02 13:23:50 +08:00
|
|
|
if CONFIG_IQ2000
|
|
|
|
include iq2000/Makefile.inc
|
|
|
|
endif
|
2022-02-02 13:01:43 +08:00
|
|
|
if CONFIG_LIBNOSYS
|
|
|
|
include libnosys/Makefile.inc
|
|
|
|
endif
|
2022-03-01 15:03:17 +08:00
|
|
|
if CONFIG_LM32
|
|
|
|
include lm32/Makefile.inc
|
|
|
|
endif
|
2023-12-27 12:44:44 +08:00
|
|
|
if CONFIG_MCORE
|
|
|
|
include mcore/Makefile.inc
|
|
|
|
endif
|
2023-12-27 12:26:40 +08:00
|
|
|
if CONFIG_MN10200
|
|
|
|
include mn10200/Makefile.inc
|
|
|
|
endif
|
2023-12-27 12:13:37 +08:00
|
|
|
if CONFIG_MN10300
|
|
|
|
include mn10300/Makefile.inc
|
|
|
|
endif
|
2023-12-27 09:21:28 +08:00
|
|
|
if CONFIG_MOXIE
|
|
|
|
include moxie/Makefile.inc
|
|
|
|
endif
|
2023-12-27 10:11:58 +08:00
|
|
|
if CONFIG_MSP430
|
|
|
|
include msp430/Makefile.inc
|
|
|
|
endif
|
2023-12-27 12:59:00 +08:00
|
|
|
if CONFIG_NDS32
|
|
|
|
include nds32/Makefile.inc
|
|
|
|
endif
|
2023-01-12 10:11:59 +08:00
|
|
|
if CONFIG_NIOS2
|
|
|
|
include nios2/Makefile.inc
|
|
|
|
endif
|
2022-08-24 07:12:56 +08:00
|
|
|
if CONFIG_RISCV
|
|
|
|
include riscv/Makefile.inc
|
|
|
|
endif
|
2023-12-27 13:43:25 +08:00
|
|
|
if CONFIG_RL78
|
|
|
|
include rl78/Makefile.inc
|
|
|
|
endif
|
2023-12-27 13:38:25 +08:00
|
|
|
if CONFIG_RX
|
|
|
|
include rx/Makefile.inc
|
|
|
|
endif
|
2023-12-27 09:47:38 +08:00
|
|
|
if CONFIG_V850
|
|
|
|
include v850/Makefile.inc
|
|
|
|
endif
|
2022-02-12 17:58:24 +08:00
|
|
|
if CONFIG_WINCE
|
|
|
|
include wince/Makefile.inc
|
|
|
|
endif
|
2023-12-27 13:18:12 +08:00
|
|
|
if CONFIG_XSTORMY16
|
|
|
|
include xstormy16/Makefile.inc
|
|
|
|
endif
|
2023-08-09 04:07:04 +08:00
|
|
|
if CONFIG_XTENSA
|
|
|
|
include xtensa/Makefile.inc
|
|
|
|
endif
|