1
# Compiler Toolkit: makefile for the general modules
3
# Author : Manuel M. T. Chakravarty
4
# Created: 22 October 1997
6
# Version $Revision: 1.15 $ from $Date: 2002/05/19 09:10:16 $
8
# Copyright (C) [1997..1999] 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 = DLists.hs FiniteMaps.hs FNameOps.hs FileOps.hs GetOpt.hs Sets.hs\
35
OBJS = $(patsubst %.hs,%.o,$(SRCS))
37
include ../../mk/common.mk
39
# make all object files
50
test: fm doubles unordered
52
fm: FiniteMaps.o tests/Main.hs
54
$(HC) -o $(TMP)/$@ $(HCFLAGS) tests/Main.hs FiniteMaps.o
55
@echo "*** call $(TMP)/$@"
57
doubles: FiniteMaps.o tests/doubles.hs
59
$(HC) -o $(TMP)/$@ $(HCFLAGS) tests/doubles.hs FiniteMaps.o
60
@echo "*** call $(TMP)/$@"
62
unordered: FiniteMaps.o tests/unordered.hs
64
$(HC) -o $(TMP)/$@ $(HCFLAGS) tests/unordered.hs FiniteMaps.o
65
@echo "*** call $(TMP)/$@"
72
-$(RM) *.o $(TMP)/fm $(TMP)/doubles $(TMP)/unordered