# makefile for Gambit-C interpreter. # Copyright (C) 1994-2006 by Marc Feeley, All Rights Reserved. herefromroot = gsi rootfromhere = .. escrootfromhere = ".." SUBDIRS = PACKAGE_SHORTNAME = gambc PACKAGE_NAME = Gambit-C PACKAGE_VERSION = 4.0b20 PACKAGE_STRING = Gambit-C 4.0b20 PACKAGE_BUGREPORT = gambit@iro.umontreal.ca PACKAGE_TARNAME = gambc-4.0b20 PACKAGE_SUBDIR = /4.0b20 srcdir = . srcdirpfx = C_COMPILER = arm-eabi-gcc C_PREPROC = arm-eabi-gcc -E FLAGS_OBJ = -DNDS -DUSE_DSWIFI -Wall -W -Wno-unused -O1 -fno-math-errno -fschedule-insns2 -fno-trapping-math -fno-strict-aliasing -fwrapv -fexpensive-optimizations -fforce-addr -fpeephole2 -falign-jumps -falign-functions -fno-function-cse -ftree-copyrename -ftree-fre -ftree-dce -fregmove -fgcse-las -freorder-functions -fcaller-saves -fno-if-conversion2 -foptimize-sibling-calls -fcse-skip-blocks -funit-at-a-time -finline-functions -fmodulo-sched -freschedule-modulo-scheduled-loops -fomit-frame-pointer -fPIC -fno-common FLAGS_DYN = -specs=ds_arm7.specs -Wall -W -Wno-unused -O1 -fno-math-errno -fschedule-insns2 -fno-trapping-math -fno-strict-aliasing -fwrapv -fexpensive-optimizations -fforce-addr -fpeephole2 -falign-jumps -falign-functions -fno-function-cse -ftree-copyrename -ftree-fre -ftree-dce -fregmove -fgcse-las -freorder-functions -fcaller-saves -fno-if-conversion2 -foptimize-sibling-calls -fcse-skip-blocks -funit-at-a-time -finline-functions -fmodulo-sched -freschedule-modulo-scheduled-loops -fomit-frame-pointer -fPIC -fno-common -rdynamic FLAGS_LIB = -specs=ds_arm7.specs -rdynamic FLAGS_EXE = -specs=ds_arm7.specs -rdynamic DEFS = -DHAVE_CONFIG_H LIBS = -lm -lc -lsysbase GAMBCLIB = libgambc.a INSTALL = $(rootfromhere)/install-sh -c INSTALL_DATA = $(rootfromhere)/install-sh -c -m 644 INSTALL_LIB = $(rootfromhere)/install-sh -c -m 644 INSTALL_PROGRAM = $(rootfromhere)/install-sh -c -m 755 LN_S = ln -s RANLIB = arm-eabi-ranlib prefix = /usr/local/Gambit-DS exec_prefix = /usr/local/Gambit-DS includedir = $(prefix)$(PACKAGE_SUBDIR)/include libdir = $(prefix)$(PACKAGE_SUBDIR)/lib bindir = $(prefix)$(PACKAGE_SUBDIR)/bin docdir = $(prefix)$(PACKAGE_SUBDIR)/doc infodir = $(prefix)$(PACKAGE_SUBDIR)/info emacsdir = $(prefix)$(PACKAGE_SUBDIR)/share/emacs/site-lisp .SUFFIXES: .SUFFIXES: .scm .c .o .c.o: $(C_COMPILER) $(INCLUDES) $(FLAGS_OBJ) $(DEFS) -c $(srcdirpfx)$*.c .scm.c: $(rootfromhere)/gsc/gsc -:=$(srcdirpfx)$(escrootfromhere) -f -c -check $(srcdirpfx)$*.scm INCLUDES = -I$(srcdirpfx)$(rootfromhere)/include MODULES = _gsi MODULES_SCM = _gsi.scm MODULES_C = _gsi.c MODULES_O = _gsi.o MODULES_O_PLUS = +_gsi.o MODULES_O_COMMA = _gsi.o MODULES_O_IN_COMPILE_ORDER = _gsi.o SOURCES = $(MODULES_C) _gsi_.c $(MODULES_SCM) EXECUTABLE = gsi OBJECTS = $(MODULES_O) _gsi_.o OBJECTS_PLUS = $(MODULES_O_PLUS) +_gsi_.o OBJECTS_COMMA = $(MODULES_O_COMMA),_gsi_.o OBJECTS_IN_COMPILE_ORDER = $(MODULES_O_IN_COMPILE_ORDER) _gsi_.o DISTFILES = makefile.in $(SOURCES) all: all-recursive all-local all-local: gsi gsi: $(OBJECTS_IN_COMPILE_ORDER) $(srcdirpfx)$(rootfromhere)/lib/$(GAMBCLIB) $(C_COMPILER) $(FLAGS_EXE) $(OBJECTS) $(rootfromhere)/lib/$(GAMBCLIB) $(LIBS) -o $(EXECUTABLE) _gsi_.c: $(MODULES_C) $(srcdirpfx)$(rootfromhere)/lib/_gambc.c $(rootfromhere)/gsc/gsc -:=$(srcdirpfx)$(escrootfromhere) -f -link $(MODULES_C) $(MODULES_C): $(srcdirpfx)$(rootfromhere)/lib/header.scm install-local: all $(srcdirpfx)$(rootfromhere)/mkidirs $(bindir) : $(INSTALL_PROGRAM) gsi $(bindir)/gsi uninstall-local: rm -f $(bindir)/gsi mostlyclean-local: rm -f $(OBJECTS) clean-local: mostlyclean-local rm -f $(MODULES_C) _gsi_.c *.da *.bb *.bbg *.gcov distclean-local: clean-local rm -f makefile realclean-local: distclean-local rm -f gsi all-recursive install-recursive uninstall-recursive mostlyclean-recursive clean-recursive distclean-recursive realclean-recursive: @if test -n "$(SUBDIRS)"; then \ for subdir in ""$(SUBDIRS); do \ target=`echo $@ | sed 's/-recursive//'`; \ echo making $$target in $$subdir; \ (cd $$subdir && $(MAKE) $$target) || exit 1; \ done \ fi install: install-recursive install-local uninstall: uninstall-recursive uninstall-local mostlyclean: mostlyclean-recursive mostlyclean-local clean: clean-recursive clean-local distclean: distclean-recursive distclean-local realclean: realclean-recursive realclean-local dist: @if test -n "$(SUBDIRS)"; then \ for subdir in ""$(SUBDIRS); do \ echo making $@ in $$subdir; \ mkdir $(rootfromhere)/$(PACKAGE_TARNAME)/$(herefromroot)/$$subdir; \ chmod 777 $(rootfromhere)/$(PACKAGE_TARNAME)/$(herefromroot)/$$subdir; \ (cd $$subdir && $(MAKE) $(MDEFINES) $@) || exit 1; \ done \ fi @echo "Copying distribution files" @for file in $(DISTFILES); do \ ln $(srcdirpfx)$$file $(rootfromhere)/$(PACKAGE_TARNAME)/$(herefromroot) 2> /dev/null \ || cp -p $(srcdirpfx)$$file $(rootfromhere)/$(PACKAGE_TARNAME)/$(herefromroot); \ done makefile: makefile.in $(rootfromhere)/config.status cd $(rootfromhere) && CONFIG_FILES=$(herefromroot)/$@ CONFIG_HEADERS= ./config.status # Tell versions [3.59,3.63) of GNU make not to export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: