1
# Makefile for core VM -*- makefile -*-
3
# Copyright (C) 1996-2004 by Ian Piumarta and other authors/contributors
4
# listed elsewhere in this file.
7
# This file is part of Unix Squeak.
9
# Permission is hereby granted, free of charge, to any person obtaining a copy
10
# of this software and associated documentation files (the "Software"), to deal
11
# in the Software without restriction, including without limitation the rights
12
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13
# copies of the Software, and to permit persons to whom the Software is
14
# furnished to do so, subject to the following conditions:
16
# The above copyright notice and this permission notice shall be included in
17
# all copies or substantial portions of the Software.
19
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27
# Author: ian.piumarta@inria.fr
29
# Last edited: 2008-04-10 13:51:39 by piumarta on emilia.local
35
OBJS = $(INTERP)$o sqNamedPrims$o sqVirtualMachine$o aio$o debug$o osExports$o \
36
sqUnixExternalPrims$o sqUnixMemory$o sqUnixCharConv$o sqUnixMain$o
38
XINCLUDES = [includes] \
39
-I$(topdir)/platforms/Cross/plugins/FilePlugin \
40
-I$(topdir)/platforms/unix/plugins/B3DAcceleratorPlugin \
43
$(TARGET) : $(OBJS) Makefile
44
$(LINK) $(TARGET) $(OBJS)
47
# rebuild sqNamedPrims.o if sqNamedPrims.h changes
49
sqNamedPrims$o : $(srcdir)/vm/sqNamedPrims.h
51
# rebuild sqExtPrims (VM_LIBDIR) sqUnixMain (VM_VERSION) if config.h changes
53
sqUnixExternalPrims$o sqUnixMain$o : ../config.h $(topdir)/platforms/unix/vm/dlfcn-dyld.c
55
# GNUify the interpreter if needed
57
gnu-interp$o : gnu-interp.c
58
$(COMPILE) $@ gnu-interp.c
60
gnu-interp.c : $(srcdir)/vm/interp.c
61
tr '\015' '\012' < $(srcdir)/vm/interp.c > interp.c
62
$(AWK) -f $(topdir)/platforms/unix/config/gnuify interp.c > $@.out