summaryrefslogtreecommitdiff
path: root/GNUmakefile
blob: 851c7fa908b13104b46c5161ee1c88b535ad6052 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
## Étoilisp, a Common Lisp subset for Étoilé.
## Copyright (C) 2008  Matthias Andreas Benkard.
##
## This program is free software: you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation, either version 3 of the License, or (at
## your option) any later version.
##
## This program is distributed in the hope that it will be useful, but
## WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
## General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with this program.  If not, see <http://www.gnu.org/licenses/>.


include $(GNUSTEP_MAKEFILES)/common.make

#all:: ToiletKit etshell Test

ADDITIONAL_OBJCFLAGS = -Wall

FRAMEWORK_NAME = ToiletKit
ToiletKit_OBJC_FILES = MLKCharacter.m MLKCons.m MLKDoubleFloat.m	\
                       MLKDynamicContext.m MLKEndOfFileError.m		\
                       MLKEnvironment.m MLKError.m MLKFloat.m		\
                       MLKInteger.m MLKLinkedList.m MLKLispValue.m	\
                       MLKPackage.m MLKParenReader.m MLKRatio.m		\
                       MLKReader.m MLKReadtable.m MLKReaderError.m	\
                       MLKSingleFloat.m MLKStream.m			\
                       MLKStringInputStream.m MLKSymbol.m		\
                       MLKThrowException.m				\
                       MLKUndefinedVariableException.m			\
                       NSObject-MLKPrinting.m
ToiletKit_LDFLAGS = -lgmp

#TOOL_NAME = etoilet
#etoilet_OBJC_FILES = main.m
#etoilet_OBJC_LIBS = -lToiletKit -LToiletKit.framework

TOOL_NAME = etshell
etshell_OBJC_FILES = StepTalkShell/STShell.m		\
                     StepTalkShell/STShell+output.m	\
                     StepTalkShell/stshell_tool.m
etshell_OBJC_LIBS += -lStepTalk -lreadline -lncurses -lToiletKit	\
                     -LToiletKit.framework
etshell_OBJCFLAGS = -w

BUNDLE_NAME = Test
Test_OBJC_FILES = $(ToiletKit_OBJC_FILES) MLKLowLevelTests.m
Test_OBJC_LIBS = -lUnitKit

-include GNUmakefile.preamble
include $(GNUSTEP_MAKEFILES)/bundle.make
include $(GNUSTEP_MAKEFILES)/framework.make
include $(GNUSTEP_MAKEFILES)/tool.make
-include GNUmakefile.postamble

before-all::
	mkdir -p $(GNUSTEP_OBJ_DIR)/StepTalkShell

#after-clean::
#	-rmdir $(GNUSTEP_OBJ_DIR)/StepTalkShell

test: Test
	ukrun Test.bundle

run: ToiletKit etshell
	env LD_LIBRARY_PATH=`pwd`/ToiletKit.framework/Versions/Current:/usr/local/lib obj/etshell