root/hiersort/config/config.mk

Revision 1, 0.7 kB (checked in by thesz, 3 years ago)

Initial commit

Line 
1 # Configuration file for all our Makefile's.
2
3 ghcoptions = -fglasgow-exts -i$(TOP)/sim -i$(TOP)/core -cpp -odir $(TOP)/objs -hidir $(TOP)/objs -L/usr/lib -lSystemStubs
4 ghc = ghc --make -O3 $(ghcoptions)
5 ghci = ghci $(ghcoptions)
6 debugopts = -DDEBUG -osuf debug.o -hisuf debug.hi
7
8 ghcdebug = $(ghc) $(debugopts)
9
10 all: executable debugexecutable
11
12 # Faster one.
13 executable:
14         $(ghc) $(MAIN).hs -o $(MAIN)
15
16 # With trace output
17 debugexecutable:
18         $(ghc) $(debugopts) $(MAIN).hs -o $(MAIN)-debug
19
20 run:    all
21         ./$(MAIN) --file=$(TOP)/tests/common_parameters $(TASK_PARAMETERS) >asd
22         tail -2 asd
23
24 interp:
25         $(ghci) $(MAIN).hs
26
27 clean:
28         rm -f *.hi *.o *.exe asd $(MAIN) $(MAIN)-debug *.manifest
Note: See TracBrowser for help on using the browser.