blob: 3e598ae9f1ec3b1f28133d9c3185756fdeeaf015 (
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
|
TOP=../../..
include $(TOP)/mk/boilerplate.mk
include $(TOP)/mk/test.mk
Main.o : B.hi
B.o : A.hi
%.o : %.hs
'$(TEST_HC)' $(TEST_HC_OPTS) -O -c $< -o $@
# magic .hi rule: see rules/hi-rule.mk in the GHC source tree
%.hi : %.o ;
prog : A.o B.o Main.o
'$(TEST_HC)' $(TEST_HC_OPTS) -o prog A.o B.o Main.o
clean :
$(RM) *.hi *.o prog
recomp008 :
$(MAKE) clean
cp A1.hs A.hs
$(MAKE) prog
./prog
sleep 1
cp A2.hs A.hs
$(MAKE) prog
./prog
|