|
Revision 4, 0.7 kB
(checked in by thesz, 3 years ago)
|
Added script for conducting experiments. Added some experiments parameters. Less debug info (faster execution). Fixed 'send back in time' bug in heat1d.
|
| 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 |
|---|
| 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 |
experiment: all |
|---|
| 25 |
$(TOP)/scripts/runexperiment $(MAIN) $(EXPERIMENT_FILE) >asd |
|---|
| 26 |
tail -2 asd |
|---|
| 27 |
|
|---|
| 28 |
interp: |
|---|
| 29 |
$(ghci) $(MAIN).hs |
|---|
| 30 |
|
|---|
| 31 |
clean: |
|---|
| 32 |
rm -f *.hi *.o *.exe asd $(MAIN) $(MAIN)-debug *.manifest |
|---|