[project @ 1996-11-21 16:45:53 by simonm]
[ghc.git] / ghc / utils / heap-view / Makefile
1 #-----------------------------------------------------------------------------
2 # $Id: Makefile,v 1.2 1996/11/21 16:48:45 simonm Exp $
3
4 # Todo: generalise this to use HSprog.mk or something.
5
6 TOP=../../..
7 HaskellSuffixRules = YES
8 include $(TOP)/ghc/mk/ghc.mk
9
10 PROGRAMS = graph hpView hpView2
11
12 HC_OPTS = -hi-diffs -fglasgow-exts -fhaskell-1.3 -O -L/usr/X11/lib -cpp
13 CC_OPTS = -ansi -I/usr/X11/include
14
15 # ToDo: use AC_PATH_X in configure to get lib/include dirs for X.
16
17 OBJS_graph = Graph.o HaskXLib.o
18 OBJS_hpView = HpView.o Parse.o HaskXLib.o
19 OBJS_hpView2 = HpView2.o Parse.o HaskXLib.o
20
21 all :: $(PROGRAMS)
22
23 graph : $(OBJS_graph)
24 $(HC) -o $@ $(HCFLAGS) $(LDOPTIONS) $(OBJS_graph) -lX11
25
26 hpView : $(OBJS_hpView)
27 $(HC) -o $@ $(HCFLAGS) $(LDOPTIONS) $(OBJS_hpView) -lX11
28
29 hpView2 : $(OBJS_hpView2)
30 $(HC) -o $@ $(HCFLAGS) $(LDOPTIONS) $(OBJS_hpView2) -lX11
31
32 HaskXLib.o : HaskXLib.c
33 $(CC) -c $(CFLAGS) HaskXLib.c
34
35 install :: $(PROGRAMS)
36 $(INSTALL) $(INSTBINFLAGS) graph $(DESTDIR)
37 $(INSTALL) $(INSTBINFLAGS) hpView $(DESTDIR)
38 $(INSTALL) $(INSTBINFLAGS) hpView2 $(DESTDIR)
39
40 clean ::
41 $(RM) $(PROGRAMS)
42
43 HS_DEP_SRCS = Graph.lhs HpView.lhs HpView2.lhs Parse.lhs
44 include $(TOP)/mk/hsdepend.mk
45
46 tags :: $(HS_DEP_SRCS)
47 $(HSTAGS) $(HSTAGSFLAGS) $(HS_DEP_SRCS)
48
49 # DO NOT DELETE: Beginning of Haskell dependencies
50 Graph.o : Graph.lhs
51 HpView.o : HpView.lhs
52 HpView.o : ./Parse.hi
53 HpView2.o : HpView2.lhs
54 HpView2.o : ./Parse.hi
55 Parse.o : Parse.lhs
56 # DO NOT DELETE: End of Haskell dependencies