summaryrefslogtreecommitdiff
path: root/ghc/utils/heap-view/Makefile.original
blob: 1e35bc2e43e05d570ac49b78297e51bbd251e09f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
CC=gcc
GLHC18 = glhc18
GLHC19 = /users/fp/partain/bin/sun4/glhc
HC= ghc -hi-diffs -fglasgow-exts -fhaskell-1.3
HC_FLAGS = -O -prof -auto-all
#HC_FLAGS = -O
LIBS=-lX11
FILES2 = Life2.o HaskXLib.o
FILESS = LifeWithStability.o HaskXLib.o
FILES = Life.o HaskXLib.o

all : hpView hpView2

# ADR's heap profile viewer
hpView:	HpView.o Parse.o HaskXLib.o
	$(HC) -o hpView $(HC_FLAGS) HpView.o Parse.o HaskXLib.o $(LIBS) -L/usr/X11/lib
clean::
	rm -f hpView

# ADR's continuous heap profile viewer (handles output of -p)
hpView2:	HpView2.o Parse.o HaskXLib.o
	$(HC) -o hpView2 $(HC_FLAGS) HpView2.o Parse.o HaskXLib.o $(LIBS) -L/usr/X11/lib
clean::
	rm -f hpView2


# ADR's continuous graph program (handles output of -Sstderr)
graph:	Graph.o HaskXLib.o
	$(HC) -o graph $(HC_FLAGS) Graph.o HaskXLib.o $(LIBS) -L/usr/X11/lib
clean::
	rm -f graph

# ADR's continuous graph program (part of heap profile viewer) that
# crashes the compiler
bugGraph:	bugGraph.o HaskXLib.o
	$(HC) -o bugGraph $(HC_FLAGS) bugGraph.o HaskXLib.o $(LIBS) -L/usr/X11/lib
clean::
	rm -f bugGraph

%.o:%.c
	$(CC) -c -ansi -traditional -g -I/usr/X11/include/ $< $(INC)

%.o:%.lhs
	$(HC) $(HC_FLAGS) -c $< $(INC)
	
clean::
	rm -f core *.o *% #* 
	rm -f *.hc