source: project/demonstrations/numerical-performance/Makefile @ 20569

Last change on this file since 20569 was 20569, checked in by felix winkelmann, 11 years ago

added READMEs

File size: 738 bytes
Line 
1#### Makefile for mandelbrot benchmark
2
3
4CC = gcc
5CFLAGS = -O3 -fomit-frame-pointer
6
7CSC = csc
8CSCFLAGS = -C -O3 -O5 -d0 -disable-interrupts -unboxing
9
10ifdef VERBOSE
11CSCFLAGS += -k -v -debug oil
12endif
13
14
15.PHONY: all clean run
16
17all: mandelbrot-c mandelbrot-scheme-slow mandelbrot-scheme-fast
18
19clean:
20        rm -f mandelbrot-scheme-fast mandelbrot-scheme-slow mandelbrot-c *.o *.exe
21
22mandelbrot-c: mandelbrot-c.c
23        $(CC) $(CFLAGS) $< -o $@
24
25mandelbrot-scheme-fast: mandelbrot-scheme-fast.scm
26        $(CSC) $(CSCFLAGS) $< -o $@
27
28mandelbrot-scheme-slow: mandelbrot-scheme-slow.scm
29        $(CSC) $(CSCFLAGS) $< -o $@
30
31run: all
32        time ./mandelbrot-c 600 >c.ppm
33        time ./mandelbrot-scheme-slow 600 >scheme-slow.ppm
34        time ./mandelbrot-scheme-fast 600 >scheme-fast.ppm
Note: See TracBrowser for help on using the repository browser.