1 ## See sim/Makefile.am 2 ## 3 ## Copyright (C) 1993-2024 Free Software Foundation, Inc. 4 ## Written by Cygnus Support 5 ## Modified by J.Gaisler ESA/ESTEC 6 ## 7 ## This program is free software; you can redistribute it and/or modify 8 ## it under the terms of the GNU General Public License as published by 9 ## the Free Software Foundation; either version 3 of the License, or 10 ## (at your option) any later version. 11 ## 12 ## This program is distributed in the hope that it will be useful, 13 ## but WITHOUT ANY WARRANTY; without even the implied warranty of 14 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 ## GNU General Public License for more details. 16 ## 17 ## You should have received a copy of the GNU General Public License 18 ## along with this program. If not, see <http://www.gnu.org/licenses/>. 19 20 READLINE_SRC = $(srcroot)/readline/readline 21 AM_CPPFLAGS_%C% = $(READLINE_CFLAGS) 22 23 ## UARTS run at about 115200 baud (simulator time). Add -DFAST_UART to 24 ## CFLAGS if faster (infinite) UART speed is desired. Might affect the 25 ## behaviour of UART interrupt routines ... 26 AM_CPPFLAGS_%C% += -DFAST_UART 27 28 nodist_%C%_libsim_a_SOURCES = \ 29 %D%/modules.c 30 %C%_libsim_a_SOURCES = \ 31 $(common_libcommon_a_SOURCES) 32 %C%_libsim_a_LIBADD = \ 33 %D%/erc32.o \ 34 %D%/exec.o \ 35 %D%/float.o \ 36 %D%/func.o \ 37 %D%/help.o \ 38 %D%/interf.o 39 $(%C%_libsim_a_OBJECTS) $(%C%_libsim_a_LIBADD): %D%/hw-config.h 40 41 noinst_LIBRARIES += %D%/libsim.a 42 43 ## Override wildcards that trigger common/modules.c to be (incorrectly) used. 44 %D%/modules.o: %D%/modules.c 45 46 %D%/%.o: common/%.c ; $(SIM_COMPILE) 47 -@am__include@ %D%/$(DEPDIR)/*.Po 48 49 %C%_run_SOURCES = 50 %C%_run_LDADD = \ 51 %D%/sis.o \ 52 %D%/libsim.a \ 53 $(SIM_COMMON_LIBS) $(READLINE_LIB) $(TERMCAP_LIB) 54 55 %D%/sis$(EXEEXT): %D%/run$(EXEEXT) 56 $(AM_V_GEN)ln $< $@ 2>/dev/null || $(LN_S) $< $@ 2>/dev/null || cp -p $< $@ 57 58 noinst_PROGRAMS += %D%/run %D%/sis 59 60 %C%docdir = $(docdir)/%C% 61 %C%doc_DATA = %D%/README.erc32 %D%/README.gdb %D%/README.sis 62 63 SIM_INSTALL_EXEC_LOCAL_DEPS += sim-%D-install-exec-local 64 sim-%D-install-exec-local: installdirs 65 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(bindir) 66 n=`echo sis | sed '$(program_transform_name)'`; \ 67 $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) %D%/run$(EXEEXT) $(DESTDIR)$(bindir)/$$n$(EXEEXT) 68 69 SIM_UNINSTALL_LOCAL_DEPS += sim-%D%-uninstall-local 70 sim-%D%-uninstall-local: 71 rm -f $(DESTDIR)$(bindir)/sis 72