9 AM_CPPFLAGS=-I$(top_srcdir)/bcu/include
10 AM_CFLAGS=-gstabs -O3 -Os
14 tlibdir=$(pkglibdir)/lib
16 tlib_LIBRARIES=libbcu_0012.a libbcu_0020.a
18 COMMON=regs.s tmp.s fp.s tmpspace.s
19 BCU1=initbcu1.s bcu1func.s
20 BCU2=initbcu2.s bcu2func.s
21 BCU1_EE=gen/eewrite_QI.c gen/eewrite_HI.c gen/eewrite_AI.c gen/eewrite_SI.c \
22 gen/eewrite_FI.c gen/eewrite_CI.c gen/eewrite_EI.c gen/eewrite_DI.c
24 BUILT_SOURCES=$(BCU1_EE)
27 libbcu_0012_a_SOURCES=$(BCU1) $(COMMON) $(BCU1_EE)
28 libbcu_0020_a_SOURCES=$(BCU2) $(COMMON) $(BCU1_EE)
30 gen/eewrite_%.c : Makefile
32 echo "#define MODE " `basename $@|sed -e s/eewrite_//g |sed -e s/.c//g` > $@
33 echo "#include \"eewrite.c\"" >> $@
36 $(mkinstalldirs) $(DESTDIR)$(tlibdir)
37 for a in $(addprefix lib,$(addsuffix .a,$(BCU_LIST))) ; do $(top_srcdir)/bcu/addmissing.sh $(DESTDIR)$(tlibdir) $$a; done