summaryrefslogtreecommitdiff
path: root/Makefile
blob: 6d4ca8f8349d8938ad721ac78bf9777cc2f26576 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
BIN = main

hs_files = $(wildcard *.hs)

.PHONY: all clean remake

all: $(BIN)

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

remake: clean all


$(BIN): $(hs_files)
	ghc -O3 -o $(BIN) $^