Makefile.in 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. # Makefile template for Configure for the erc32sim library.
  2. # Copyright (C) 1993-2015 Free Software Foundation, Inc.
  3. # Written by Cygnus Support
  4. # Modified by J.Gaisler ESA/ESTEC
  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. ## COMMON_PRE_CONFIG_FRAG
  19. TERMCAP_LIB = @TERMCAP@
  20. READLINE_LIB = @READLINE@
  21. SIM_OBJS = exec.o erc32.o func.o help.o float.o interf.o
  22. SIM_RUN_OBJS = sis.o
  23. SIM_EXTRA_LIBS = $(READLINE_LIB) $(TERMCAP_LIB) -lm
  24. SIM_EXTRA_ALL = sis
  25. SIM_EXTRA_INSTALL = install-sis
  26. SIM_EXTRA_CLEAN = clean-sis
  27. # UARTS run at about 115200 baud (simulator time). Add -DFAST_UART to
  28. # CFLAGS if faster (infinite) UART speed is desired. Might affect the
  29. # behaviour of UART interrupt routines ...
  30. SIM_EXTRA_CFLAGS = -DFAST_UART -I$(srcroot)
  31. ## COMMON_POST_CONFIG_FRAG
  32. # `sis' doesn't need interf.o.
  33. SIS_OFILES = exec.o erc32.o func.o help.o float.o
  34. sis: sis.o $(SIS_OFILES) $(COMMON_OBJS) $(LIBDEPS)
  35. $(CC) $(ALL_CFLAGS) -o sis \
  36. sis.o $(SIS_OFILES) $(COMMON_OBJS) $(EXTRA_LIBS)
  37. # Copy the files into directories where they will be run.
  38. install-sis: installdirs
  39. n=`echo sis | sed '$(program_transform_name)'`; \
  40. $(INSTALL_PROGRAM) sis$(EXEEXT) $(DESTDIR)$(bindir)/$$n$(EXEEXT)
  41. clean-sis:
  42. rm -f sis
  43. configure:
  44. @echo "Rebuilding configure..."
  45. if [ x"${srcdir}" = x"@srcdir@" ] ; then \
  46. srcdir=. ; export srcdir ; \
  47. else true ; fi ; \
  48. (cd $${srcdir}; autoconf --localdir=../common)