summaryrefslogtreecommitdiff
path: root/examples/Makefile
blob: c9413bf1f756b46572b4be66a943e33c57b63c12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
GHC = ghc
GHCFLAGS = -O2 -package haxr -XOverlappingInstances

TEST_PROGS = make-stubs parse_response \
             person_server person_client raw_call \
	     simple_client simple_server test_client \
             test_server time-xmlrpc-com validate \
             person_server person_client

.SUFFIXES: .hs .hi .o

.PHONY: all clean

default all: $(TEST_PROGS)

%: %.hs
	$(GHC) $(GHCFLAGS) --make -o $@ $<

clean:
	-rm -f *.hi *.o $(TEST_PROGS)