1 # Makefile for core VM -*- makefile -*-
3 # Copyright (C) 1996-2002 Ian Piumarta and other authors/contributors
4 # as listed elsewhere in this file.
7 # This file is part of Unix Squeak.
9 # This file is distributed in the hope that it will be useful, but WITHOUT
10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 # FITNESS FOR A PARTICULAR PURPOSE.
13 # You may use and/or distribute this file ONLY as part of Squeak, under
14 # the terms of the Squeak License as described in `LICENSE' in the base of
15 # this distribution, subject to the following restrictions:
17 # 1. The origin of this software must not be misrepresented; you must not
18 # claim that you wrote the original software. If you use this software
19 # in a product, an acknowledgment to the original author(s) (and any
20 # other contributors mentioned herein) in the product documentation
21 # would be appreciated but is not required.
23 # 2. This notice must not be removed or altered in any source distribution.
25 # Using (or modifying this file for use) in any context other than Squeak
26 # changes these copyright conditions. Read the file `COPYING' in the
27 # directory `platforms/unix/doc' before proceeding with any such use.
29 # You are not allowed to distribute a modified version of this file
30 # under its original name without explicit permission to do so. If
31 # you change it, rename it.
33 # Author: ian.piumarta@inria.fr
35 # Last edited: 2002-12-01 10:20:57 by piumarta on calvin.inria.fr
40 MOC = $(QTDIR)/bin/moc
41 OBJS = $(INTERP)$o sqNamedPrims$o sqVirtualMachine$o \
42 aio$o osExports$o sqUnixExternalPrims$o sqQPEWindow$o moc_sqQPEWindow$o sqQPEGlue$o
45 XINCLUDES = [includes] -I$(topdir)/platforms/Cross/plugins/FilePlugin -I$(topdir)/platforms/Cross/plugins/JoystickTabletPlugin
46 XCPPINCLUDES = -I$(QTDIR)/include
47 CPPFLAGS = -fno-exceptions -DQT_QWS_EBX -DQT_QWS_CUSTOM -DQWS -fno-rtti -fno-exceptions -DNO_DEBUG
51 $(TARGET) : $(OBJS) Makefile
52 $(LINK) $(TARGET) $(OBJS)
55 # rebuild sqNamedPrims.o if sqNamedPrims.h changes
57 sqNamedPrims$o : $(srcdir)/vm/sqNamedPrims.h
59 # rebuild sqExtPrims (VM_LIBDIR) sqXWin (VM_VERSION) if config.h changes
61 sqUnixExternalPrims$o sqXWindow$o : ../config.h $(topdir)/platforms/unix/vm/dlfcn-dyld.c
63 # GNUify the interpreter if needed
65 gnu-interp$o : gnu-interp.c
66 $(COMPILE) $@ gnu-interp.c
68 gnu-interp.c : $(srcdir)/vm/interp.c
69 $(AWK) -f $(topdir)/platforms/unix/config/gnuify $(srcdir)/vm/interp.c > $@.out
72 moc_sqQPEWindow$o: moc_sqQPEWindow.cpp
73 arm-linux-g++ ${INCLUDES} ${XINCLUDES} ${CFLAGS} ${CPPFLAGS} ${XCPPINCLUDES} -c -o moc_sqQPEWindow$o moc_sqQPEWindow.cpp
75 moc_sqQPEWindow.cpp: $(topdir)/platforms/unix/vm/sqQPEWindow.h
76 $(MOC) $(topdir)/platforms/unix/vm/sqQPEWindow.h -o moc_sqQPEWindow.cpp
78 sqQPEWindow$o: $(topdir)/platforms/unix/vm/sqQPEWindow.cpp
79 arm-linux-g++ ${INCLUDES} ${XINCLUDES} ${CFLAGS} ${CPPFLAGS} ${XCPPINCLUDES} -DUSE_SL_FILESELECTOR -DUSE_CFXGA -UIPAQ -c -o sqQPEWindow$o $(topdir)/platforms/unix/vm/sqQPEWindow.cpp