3 ## Copyright (C) 2005-2023 Free Software Foundation, Inc.
4 ## Written by Analog Devices, Inc.
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.
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.
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/>.
19 AM_CPPFLAGS_
%C
% = $(SDL_CFLAGS
)
21 %C
%_libsim_a_SOURCES
=
22 %C
%_libsim_a_LIBADD
= \
23 $(common_libcommon_a_OBJECTS
) \
24 $(patsubst %,%D
%/%,$(SIM_NEW_COMMON_OBJS
)) \
25 $(patsubst %,%D
%/dv-
%.o
,$(SIM_HW_DEVICES
)) \
26 $(patsubst %,%D
%/dv-
%.o
,$(%C
%_SIM_EXTRA_HW_DEVICES
)) \
34 $(%C
%_libsim_a_OBJECTS
) $(%C
%_libsim_a_LIBADD
): %D
%/hw-config.h
36 noinst_LIBRARIES
+= %D
%/libsim.a
39 $(AM_V_at
)$(MAKE
) $(AM_MAKEFLAGS
) -C
$(@D
) $(@F
)
47 noinst_PROGRAMS
+= %D
%/run
49 %C
%_SIM_EXTRA_HW_DEVICES
= \
81 AM_MAKEFLAGS
+= %C
%_SIM_EXTRA_HW_DEVICES
="$(%C%_SIM_EXTRA_HW_DEVICES)"
83 %D
%/linux-fixed-code.h
: @MAINT@
$(srcdir)/%D
%/linux-fixed-code.s
%D
%/local.mk
%D
%/$(am__dirstamp
)
84 $(AM_V_GEN
)$(AS_FOR_TARGET_BFIN
) $(srcdir)/%D
%/linux-fixed-code.s
-o
%D
%/linux-fixed-code.o
87 echo
"/* DO NOT EDIT: Autogenerated from linux-fixed-code.s. */"; \
88 echo
"static const unsigned char bfin_linux_fixed_code[] ="; \
90 $(OBJDUMP_FOR_TARGET_BFIN
) -d
-z
%D
%/linux-fixed-code.o
> $@.dis
; \
93 -e
'/^0x/{s: .*::;s: *$$:,:;s: :, 0x:g;p;}' \
98 $(AM_V_at
)$(SHELL
) $(srcroot
)/move-if-change
$@.tmp
$(srcdir)/%D
%/linux-fixed-code.h
99 $(AM_V_at
)touch
$(srcdir)/%D
%/linux-fixed-code.h