summaryrefslogtreecommitdiff
path: root/Makefile
blob: cb0067e5533302cb3796decacf8b1321abd358a5 (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
GHC = ghc
GHCFLAGS = -Wall -Wno-type-defaults
ifneq ($(DEBUG),)
	GHCFLAGS += -prof -fprof-auto -fprof-cafs
endif
ifneq ($(OPT),)
	GHCFLAGS += -O3
endif

TARGET = main

.PHONY: all clean remake

all: $(TARGET)

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

remake: clean
	make all


$(TARGET): *.hs
	$(GHC) $(GHCFLAGS) $^ -o $@