Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] View of /sml/trunk/runtime/objs/mk.x86-darwin
ViewVC logotype

View of /sml/trunk/runtime/objs/mk.x86-darwin

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3432 - (download) (annotate)
Sun Sep 13 17:50:53 2009 UTC (11 years, 1 month ago) by jhr
File size: 1142 byte(s)
  Changes to support compiling the runtime system on Mac OS X 10.6.
# mk.x86-darwin
#
# COPYRIGHT (c) 2006 The SML/NJ Fellowship
#
# Makefile for MacOS X 10.4+ on Intel processors
#
# the -D_NONSTD_SOURCE flag is needed for Mac OS X 10.5, because the
# mcontext field names changed.
#

SHELL =		/bin/sh

MAKE =		make
AS =		/usr/bin/as -arch i386
CC =		cc -m32 -ansi
CFLAGS =	-g -O2 -D_DARWIN_C_SOURCE
CPP =           cc -x assembler-with-cpp -E -P -ansi
XOBJS =
XLIBS =         ../c-libs/dl/libunix-dynload.a
LD_LIBS =       -ldl
XDEFS =
BASE_DEFS =
DEFS		= $(XDEFS) $(BASE_DEFS) -DHOST_X86 -DTARGET_X86 -DOPSYS_UNIX -DOPSYS_DARWIN -DOPSYS_MACOS_10_2 -DGNU_ASSEMBLER -DDLOPEN -DINDIRECT_CFUNC
TARGET =	X86
VERSION =	v-x86-darwin
RUNTIME =	run.x86-darwin
RUNTIMEX =	runx.x86-darwin

all:
	($(MAKE) RUNTIME="$(RUNTIME)" VERSION="$(VERSION)" CC="$(CC)" CFLAGS="$(CFLAGS)" CPP="$(CPP)" AS="$(AS)" TARGET=$(TARGET) DEFS="$(DEFS)" XOBJS="$(XOBJS)" XLIBS="$(XLIBS)" LD_LIBS="$(LD_LIBS)" $(RUNTIME))
	($(MAKE) RUNTIME="$(RUNTIMEX)" VERSION="$(VERSION)" CC="$(CC)" CFLAGS="$(CFLAGS)" CPP="$(CPP)" TARGET=$(TARGET) DEFS="$(DEFS)" XOBJS="$(XOBJS)" XLIBS="$(XLIBS)" LD_LIBS="$(LD_LIBS)" LDFLAGS="-Xlinker -r" $(RUNTIMEX))

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0