summaryrefslogtreecommitdiff
path: root/Makefile
blob: 0c5bd87f363ebe2d444a758c7f700a520756b9ec (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 $@