1
# Compiler Toolkit: makefile for the symbols modules
3
# Author : Manuel M T Chakravarty
4
# Created: 8 January 1998
6
# Version $Revision: 1.9 $ from $Date: 2002/05/19 09:10:17 $
8
# Copyright (c) [1998..2002] Manuel M T Chakravarty
10
# This file is free software; you can redistribute it and/or modify
11
# it under the terms of the GNU General Public License as published by
12
# the Free Software Foundation; either version 2 of the License, or
13
# (at your option) any later version.
15
# This file is distributed in the hope that it will be useful,
16
# but WITHOUT ANY WARRANTY; without even the implied warranty of
17
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
# GNU General Public License for more details.
20
# = DOCU =====================================================================
23
# ***************************************
24
# !!! This makefile requires GNU make !!!
25
# ***************************************
27
# info for this part: its package, name, sources and objects files (must be
28
# before the include due to conditionals etc in `common.mk')
33
SRCS = Attributes.hs Idents.hs NameSpaces.hs
34
OBJS = $(patsubst %.hs,%.o,$(SRCS))
36
include ../../mk/common.mk
39
# make all object files
52
SymsOBJS = Attributes.o ../admin/Common.o ../admin/BaseVersion.o \
53
../state/CIO.o ../admin/Config.o \
54
../errors/Errors.o ../general/FiniteMaps.o Idents.o \
55
../state/State.o ../state/StateBase.o ../state/StateTrans.o \
56
../sysdep/SysDep.o NameSpaces.o \
57
../general/FileOps.o ../general/FNameOps.o ../general/UNames.o \
59
ifeq ($(SYS),$(findstring $(SYS),nhc1)) # not very nice
60
SymsOBJS += ../sysdep/IOExtsNHC1.o
63
syms: $(SymsOBJS) tests/Main.hs
65
$(HC) -o $(TMP)/$@ $(HCFLAGS) $(SymsOBJS) tests/Main.hs
66
@echo "*** call $(TMP)/$@"
73
-$(RM) *.o $(TMP)/syms