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

« back to all changes in this revision

Viewing changes to base/syms/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 symbols modules
2
 
#
3
 
#  Author : Manuel M T Chakravarty
4
 
#  Created: 8 January 1998
5
 
#
6
 
#  Version $Revision: 1.9 $ from $Date: 2002/05/19 09:10:17 $
7
 
#
8
 
#  Copyright (c) [1998..2002] 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    = syms
33
 
SRCS    = Attributes.hs Idents.hs NameSpaces.hs
34
 
OBJS    = $(patsubst %.hs,%.o,$(SRCS))
35
 
 
36
 
include ../../mk/common.mk
37
 
include ../$(DEPEND)
38
 
 
39
 
# make all object files
40
 
#
41
 
objs: $(OBJS)
42
 
 
43
 
# make all
44
 
#
45
 
all: objs
46
 
 
47
 
# State modules test
48
 
#
49
 
.PHONY: test
50
 
test: syms
51
 
 
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 \
58
 
           ../general/Utils.o 
59
 
ifeq ($(SYS),$(findstring $(SYS),nhc1)) # not very nice
60
 
  SymsOBJS += ../sysdep/IOExtsNHC1.o
61
 
endif
62
 
 
63
 
syms: $(SymsOBJS) tests/Main.hs
64
 
        mkdir -p $(TMP)
65
 
        $(HC) -o $(TMP)/$@ $(HCFLAGS) $(SymsOBJS) tests/Main.hs
66
 
        @echo "*** call $(TMP)/$@"
67
 
 
68
 
# misc targets
69
 
#
70
 
.PHONY: clean cleanhi
71
 
 
72
 
clean:
73
 
        -$(RM) *.o $(TMP)/syms
74
 
cleanhi:
75
 
        -$(RM) *.hi