~ubuntu-branches/debian/sid/c2hs/sid

« back to all changes in this revision

Viewing changes to base/general/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Arjan Oosting
  • Date: 2006-12-14 00:06:12 UTC
  • mfrom: (3.1.5 feisty)
  • Revision ID: james.westby@ubuntu.com-20061214000612-s7mds83cxqkgv1bj
Tags: 0.14.5-6
* debian/patches/09_replace-deprecated-withObject: Replace all
  occurrences of 'withObject' with 'with' as the deprecated 'withObject'
  was removed with GHC 6.6. (Closes: #402979)
* Set the urgency to medium as the above bug decreases c2hs usefulness
  with GHC 6.6 dramatically. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#  Compiler Toolkit: makefile for the general modules
2
 
#
3
 
#  Author : Manuel M. T. Chakravarty
4
 
#  Created: 22 October 1997
5
 
#
6
 
#  Version $Revision: 1.15 $ from $Date: 2002/05/19 09:10:16 $
7
 
#
8
 
#  Copyright (C) [1997..1999] Manuel M. T. Chakravarty
9
 
#
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.
14
 
#
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.
19
 
#
20
 
#  = DOCU =====================================================================
21
 
#
22
 
 
23
 
#  ***************************************
24
 
#  !!! This makefile requires GNU make !!!
25
 
#  ***************************************
26
 
 
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')
29
 
#
30
 
PACKAGE = base
31
 
PCKNAME = ctk
32
 
PART    = general
33
 
SRCS    = DLists.hs FiniteMaps.hs FNameOps.hs FileOps.hs GetOpt.hs Sets.hs\
34
 
          UNames.hs Utils.hs
35
 
OBJS    = $(patsubst %.hs,%.o,$(SRCS))
36
 
 
37
 
include ../../mk/common.mk
38
 
 
39
 
# make all object files
40
 
#
41
 
objs: $(OBJS)
42
 
 
43
 
# make all
44
 
#
45
 
all: objs
46
 
 
47
 
# FiniteMap tests
48
 
#
49
 
.PHONY: test
50
 
test: fm doubles unordered
51
 
 
52
 
fm: FiniteMaps.o tests/Main.hs
53
 
        mkdir -p $(TMP)
54
 
        $(HC) -o $(TMP)/$@ $(HCFLAGS) tests/Main.hs FiniteMaps.o
55
 
        @echo "*** call $(TMP)/$@"
56
 
 
57
 
doubles: FiniteMaps.o tests/doubles.hs
58
 
        mkdir -p $(TMP)
59
 
        $(HC) -o $(TMP)/$@ $(HCFLAGS) tests/doubles.hs FiniteMaps.o
60
 
        @echo "*** call $(TMP)/$@"
61
 
 
62
 
unordered: FiniteMaps.o tests/unordered.hs
63
 
        mkdir -p $(TMP)
64
 
        $(HC) -o $(TMP)/$@ $(HCFLAGS) tests/unordered.hs FiniteMaps.o
65
 
        @echo "*** call $(TMP)/$@"
66
 
 
67
 
# misc targets
68
 
#
69
 
.PHONY: clean cleanhi
70
 
 
71
 
clean:
72
 
        -$(RM) *.o $(TMP)/fm $(TMP)/doubles $(TMP)/unordered
73
 
cleanhi:
74
 
        -$(RM) *.hi