# makefile for Gambit-C library, Time-stamp: <2006-09-29 09:50:59 feeley> # Copyright (C) 1994-2006 by Marc Feeley, All Rights Reserved. herefromroot = lib rootfromhere = .. escrootfromhere = ".." SUBDIRS = guide 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 -D___DEBUG -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 = -libfat -libnds -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 /devkitPro/libnds/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) -D___PRIMAL -D___LIBRARY -D___GAMBCDIR=\"$(prefix)$(PACKAGE_SUBDIR)\" -c $(srcdirpfx)$*.c .scm.c: $(rootfromhere)/gsc/gsc -:=$(srcdirpfx)$(escrootfromhere) -f -c -check $(srcdirpfx)$*.scm INCLUDES = -I$(srcdirpfx)$(rootfromhere)/include -I$(srcdir) -I/devkitPro/libnds/include NORMAL_C = main.c setup.c mem.c os.c os_base.c os_time.c os_shell.c os_files.c os_dyn.c os_tty.c os_io.c c_intf.c os_tcp.c os_debug.c NORMAL_CPP = NORMAL_H = setup.h mem.h os.h os_base.h os_time.h os_shell.h os_files.h os_dyn.h os_tty.h os_io.h c_intf.h os_tcp.h os_debug.h NORMAL_O = main.o setup.o mem.o c_intf.o os.o os_base.o os_time.o os_shell.o os_files.o os_dyn.o os_tty.o os_io.o os_tcp.o os_debug.o NORMAL_O_PLUS = +main.o +setup.o +mem.o +c_intf.o +os.o +os_base.o +os_time.o +os_shell.o +os_files.o +os_dyn.o +os_tty.o +os_io.o +os_tcp.o +os_debug.o NORMAL_O_COMMA = main.o,setup.o,mem.o,c_intf.o,os.o,os_base.o,os_time.o,os_shell.o,os_files.o,os_dyn.o,os_tty.o,os_io.o,os_tcp.o,os_debug.o NORMAL_SOURCES = $(NORMAL_C) $(NORMAL_CPP) $(NORMAL_H) HEADERS_SCM = "_kernel\#.scm" "_system\#.scm" "_num\#.scm" "_std\#.scm" \ "_eval\#.scm" "_io\#.scm" "_nonstd\#.scm" "_thread\#.scm" "_repl\#.scm" MODULES = _kernel _system _num _std \ _eval _io _nonstd _thread _repl MODULES_SCM = _kernel.scm _system.scm _num.scm _std.scm \ _eval.scm _io.scm _nonstd.scm _thread.scm _repl.scm MODULES_C = _kernel.c _system.c _num.c _std.c \ _eval.c _io.c _nonstd.c _thread.c _repl.c MODULES_O = _kernel.o _system.o _num.o _std.o \ _eval.o _io.o _nonstd.o _thread.o _repl.o MODULES_O_PLUS = +_kernel.o +_system.o +_num.o +_std.o \ +_eval.o +_io.o +_nonstd.o +_thread.o +_repl.o MODULES_O_COMMA = _kernel.o,_system.o,_num.o,_std.o,\ +_eval.o,_io.o,_nonstd.o,_thread.o,_repl.o NORMAL_O_IN_COMPILE_ORDER = main.o os_tty.o c_intf.o \ os_io.o setup.o mem.o os_files.o os.o os_base.o \ os_time.o os_shell.o os_dyn.o os_tcp.o os_debug.o MODULES_O_IN_COMPILE_ORDER = _io.o _num.o _std.o \ _kernel.o _nonstd.o _repl.o _eval.o _thread.o _system.o LIBRARIES_SCM = "gambit\#.scm" "r5rs\#.scm" "r4rs\#.scm" "digest\#.scm" digest.scm SOURCES = $(NORMAL_SOURCES) $(MODULES_C) _gambc.c $(MODULES_SCM) \ $(HEADERS_SCM) $(LIBRARIES_SCM) sys.scm OBJECTS = $(NORMAL_O) $(MODULES_O) _gambc.o OBJECTS_PLUS = $(NORMAL_O_PLUS) $(MODULES_O_PLUS) +_gambc.o OBJECTS_COMMA = $(NORMAL_O_COMMA),$(MODULES_O_COMMA),_gambc.o OBJECTS_IN_COMPILE_ORDER = $(MODULES_O_IN_COMPILE_ORDER) \ $(NORMAL_O_IN_COMPILE_ORDER) _gambc.o DISTFILES = makefile.in header.scm $(SOURCES) all: all-recursive all-local /devkitPro/devkitARM/bin/arm-eabi-strip.exe -oelf32-littlearm libgambc.a rm /devkitPro/libnds/lib/libgambc.a cp libgambc.a /devkitPro/libnds/lib all-local: $(GAMBCLIB) _gambc.c $(GAMBCLIB): $(OBJECTS_IN_COMPILE_ORDER) rm -f $(GAMBCLIB) ar rc $(GAMBCLIB) $(OBJECTS) && $(RANLIB) $(GAMBCLIB) _gambc.c: $(MODULES_C) $(rootfromhere)/gsc/gsc -:=$(srcdirpfx)$(escrootfromhere) -f -link -flat -o _gambc.c $(MODULES_C) main.o: main.c $(srcdirpfx)$(rootfromhere)/include/gambit.h setup.o: setup.c $(srcdirpfx)$(rootfromhere)/include/gambit.h os.h setup.h mem.h c_intf.h mem.o: mem.c $(srcdirpfx)$(rootfromhere)/include/gambit.h os.h setup.h mem.h c_intf.h c_intf.o: c_intf.c $(srcdirpfx)$(rootfromhere)/include/gambit.h os.h setup.h mem.h c_intf.h os.o: os.c $(srcdirpfx)$(rootfromhere)/include/gambit.h os.h os_base.h os_time.h os_shell.h os_files.h os_dyn.h os_tty.h os_io.h os_tcp.h os_debug.h setup.h mem.h c_intf.h os_base.o: os_base.c $(srcdirpfx)$(rootfromhere)/include/gambit.h os_base.h os_time.o: os_time.c $(srcdirpfx)$(rootfromhere)/include/gambit.h os_time.h os_shell.o: os_shell.c $(srcdirpfx)$(rootfromhere)/include/gambit.h os_shell.h os_files.o: os_files.c $(srcdirpfx)$(rootfromhere)/include/gambit.h os_files.h os_dyn.o: os_dyn.c $(srcdirpfx)$(rootfromhere)/include/gambit.h os_dyn.h os_tty.o: os_tty.c $(srcdirpfx)$(rootfromhere)/include/gambit.h os_tty.h os_io.o: os_io.c $(srcdirpfx)$(rootfromhere)/include/gambit.h os_io.h os_tcp.o: os_tcp.c $(srcdirpfx)$(rootfromhere)/include/gambit.h os_tcp.h os_debug.o: os_debug.c $(srcdirpfx)$(rootfromhere)/include/gambit.h os_debug.h $(MODULES_C): $(srcdirpfx)$(rootfromhere)/lib/header.scm install-local: all $(srcdirpfx)$(rootfromhere)/mkidirs $(libdir) $(INSTALL_DATA) $(srcdirpfx)_gambc.c $(libdir)/_gambc.c $(INSTALL_LIB) $(GAMBCLIB) $(libdir)/$(GAMBCLIB) $(RANLIB) $(libdir)/$(GAMBCLIB) for library in $(LIBRARIES_SCM); do \ $(INSTALL_DATA) $$library $(libdir)/$$library; \ done uninstall-local: rm -f $(libdir)/_gambc.c rm -f $(libdir)/$(GAMBCLIB) @for library in $(LIBRARIES_SCM); do \ rm -f $(libdir)/$$library; \ done mostlyclean-local: rm -f $(OBJECTS) clean-local: mostlyclean-local rm -f $(MODULES_C) $(GAMBCLIB) $(GAMBCLIB_SH) _gambc.c *.da *.bb *.bbg *.gcov distclean-local: clean-local rm -f makefile realclean-local: distclean-local all-recursive: @if test -n ""; then \ for subdir in ""; do \ (cd $$subdir && $(MAKE) all) || exit 1; \ done \ fi 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: