Home | History | Annotate | Line # | Download | only in cris
local.mk revision 1.1.1.1
      1 ## See sim/Makefile.am
      2 ##
      3 ## Copyright (C) 2004-2023 Free Software Foundation, Inc.
      4 ## Contributed by Axis Communications.
      5 ##
      6 ## This program is free software; you can redistribute it and/or modify
      7 ## it under the terms of the GNU General Public License as published by
      8 ## the Free Software Foundation; either version 3 of the License, or
      9 ## (at your option) any later version.
     10 ##
     11 ## This program is distributed in the hope that it will be useful,
     12 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
     13 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     14 ## GNU General Public License for more details.
     15 ##
     16 ## You should have received a copy of the GNU General Public License
     17 ## along with this program.  If not, see <http://www.gnu.org/licenses/>.
     18 
     19 %C%_run_SOURCES =
     20 %C%_run_LDADD = \
     21 	%D%/nrun.o \
     22 	%D%/libsim.a \
     23 	$(SIM_COMMON_LIBS)
     24 
     25 noinst_PROGRAMS += %D%/run
     26 
     27 ## rvdummy is just used for testing -- it runs on the same host as `run`.
     28 ## It does nothing if --enable-sim-hardware isn't active.
     29 %C%_rvdummy_SOURCES = %D%/rvdummy.c
     30 %C%_rvdummy_LDADD = $(LIBIBERTY_LIB)
     31 
     32 check_PROGRAMS += %D%/rvdummy
     33 
     34 %C%_BUILD_OUTPUTS = \
     35 	%D%/engv10.h \
     36 	%D%/mloopv10f.c \
     37 	%D%/stamp-mloop-v10f \
     38 	%D%/engv32.h \
     39 	%D%/mloopv32f.c \
     40 	%D%/stamp-mloop-v32f
     41 
     42 ## This makes sure build tools are available before building the arch-subdirs.
     43 SIM_ALL_RECURSIVE_DEPS += $(%C%_BUILD_OUTPUTS)
     44 
     45 ## FIXME: What is mono and what does "Use of `mono' is wip" mean (other
     46 ## than the apparent; some "mono" feature is work in progress)?
     47 %D%/mloopv10f.c %D%/engv10.h: %D%/stamp-mloop-v10f ; @true
     48 %D%/stamp-mloop-v10f: $(srccom)/genmloop.sh %D%/mloop.in
     49 	$(AM_V_GEN)$(SHELL) $(srccom)/genmloop.sh -shell $(SHELL) \
     50 		-mono -no-fast -pbb -switch semcrisv10f-switch.c \
     51 		-cpu crisv10f \
     52 		-infile $(srcdir)/%D%/mloop.in -outfile-prefix %D%/ -outfile-suffix -v10f
     53 	$(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/eng-v10f.hin %D%/engv10.h
     54 	$(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/mloop-v10f.cin %D%/mloopv10f.c
     55 	$(AM_V_at)touch $@
     56 
     57 ## FIXME: What is mono and what does "Use of `mono' is wip" mean (other
     58 ## than the apparent; some "mono" feature is work in progress)?
     59 %D%/mloopv32f.c %D%/engv32.h: %D%/stamp-mloop-v32f ; @true
     60 %D%/stamp-mloop-v32f: $(srccom)/genmloop.sh %D%/mloop.in
     61 	$(AM_V_GEN)$(SHELL) $(srccom)/genmloop.sh -shell $(SHELL) \
     62 		-mono -no-fast -pbb -switch semcrisv32f-switch.c \
     63 		-cpu crisv32f \
     64 		-infile $(srcdir)/%D%/mloop.in -outfile-prefix %D%/ -outfile-suffix -v32f
     65 	$(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/eng-v32f.hin %D%/engv32.h
     66 	$(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/mloop-v32f.cin %D%/mloopv32f.c
     67 	$(AM_V_at)touch $@
     68 
     69 MOSTLYCLEANFILES += $(%C%_BUILD_OUTPUTS)
     70