1# Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 2# 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 3# 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 4# Massachusetts Institute of Technology 5# 6# This file is part of MIT/GNU Scheme. 7# 8# MIT/GNU Scheme is free software; you can redistribute it and/or 9# modify it under the terms of the GNU General Public License as 10# published by the Free Software Foundation; either version 2 of the 11# License, or (at your option) any later version. 12# 13# MIT/GNU Scheme is distributed in the hope that it will be useful, 14# but WITHOUT ANY WARRANTY; without even the implied warranty of 15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16# General Public License for more details. 17# 18# You should have received a copy of the GNU General Public License 19# along with MIT/GNU Scheme; if not, write to the Free Software 20# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 21# 02110-1301, USA. 22 23# Standard Makefile for Scheme subsystem directories. 24# This makefile supports some utilities for Scheme subsystems. 25# Tools to rebuild these subsystems are written in Scheme and do not 26# use `make'. 27 28# **** BEGIN BOILERPLATE **** 29 30SHELL = /bin/sh 31 32 33 34srcdir = . 35top_srcdir = .. 36 37prefix = /usr/local 38exec_prefix = ${prefix} 39 40bindir = ${exec_prefix}/bin 41sbindir = ${exec_prefix}/sbin 42libexecdir = ${exec_prefix}/libexec 43datarootdir = ${prefix}/share 44datadir = ${datarootdir} 45sysconfdir = ${prefix}/etc 46sharedstatedir = ${prefix}/com 47localstatedir = ${prefix}/var 48libdir = ${exec_prefix}/lib 49infodir = ${datarootdir}/info 50mandir = ${datarootdir}/man 51includedir = ${prefix}/include 52oldincludedir = /usr/include 53 54DESTDIR = 55top_builddir = .. 56 57INSTALL = /usr/bin/install -c 58INSTALL_PROGRAM = ${INSTALL} 59INSTALL_DATA = ${INSTALL} -m 644 60INSTALL_SCRIPT = ${INSTALL} 61INSTALL_COM = $(INSTALL_DATA) 62 63LN_S = ln -s 64ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 65mkinstalldirs = $(SHELL) $(top_srcdir)/microcode/mkinstalldirs 66 67# **** END BOILERPLATE **** 68 69CC = gcc 70CCLD = @CCLD@ 71 72DEFS = -DPACKAGE_NAME=\"MIT/GNU\ Scheme\" -DPACKAGE_TARNAME=\"mit-scheme\" -DPACKAGE_VERSION=\"9.2\" -DPACKAGE_STRING=\"MIT/GNU\ Scheme\ 9.2\" -DPACKAGE_BUGREPORT=\"bug-mit-scheme@gnu.org\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 73CFLAGS = -g -O2 74CPPFLAGS = -I../lib 75LDFLAGS = 76 77COMPILE = $(CC) $(DEFS) $(CPPFLAGS) $(CFLAGS) 78LINK = $(CCLD) $(LDFLAGS) -o $@ 79 80AUXDIR = $(libdir)/mit-scheme-x86-64 81 82all: 83 echo "No ALL action" 84 85mostlyclean clean distclean maintainer-clean: 86 ./Clean.sh $@ 87 88tags TAGS: 89 ./Tags.sh 90 91stage1: 92 ./Stage.sh make 1 93 94unstage1: 95 ./Stage.sh unmake 1 96 97stage2: 98 ./Stage.sh make 2 99 100unstage2: 101 ./Stage.sh unmake 2 102 103stage3: 104 ./Stage.sh make 3 105 106unstage3: 107 ./Stage.sh unmake 3 108 109#-*-Makefile-*- 110# ffi/Makefile-fragment 111 112TARGET_DIR = $(AUXDIR)/ffi 113 114# Install the FFI option. 115install: 116 rm -rf $(DESTDIR)$(TARGET_DIR) 117 $(mkinstalldirs) $(DESTDIR)$(TARGET_DIR) 118 $(INSTALL_COM) *.com $(DESTDIR)$(TARGET_DIR)/. 119 $(INSTALL_DATA) *.bci $(DESTDIR)$(TARGET_DIR)/. 120 $(INSTALL_DATA) ffi-*.pkd $(DESTDIR)$(TARGET_DIR)/. 121 $(INSTALL_DATA) make.scm $(DESTDIR)$(TARGET_DIR)/. 122 123.PHONY: all mostlyclean clean distclean maintainer-clean tags TAGS 124.PHONY: stage1 unstage1 stage2 unstage2 stage3 unstage3 install 125