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

Last change on this file since 20563 was 20563, checked in by felix winkelmann, 10 years ago

added mandelbrot benchmark

File size: 718 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#CSCFLAGS += -k -v -debug oil
10
11
12.PHONY: all clean run
13
14all: mandelbrot-c mandelbrot-scheme-slow mandelbrot-scheme-fast
15
16clean:
17        rm -f mandelbrot-scheme-fast mandelbrot-scheme-slow mandelbrot-c *.o *.exe
18
19mandelbrot-c: mandelbrot-c.c
20        $(CC) $(CFLAGS) $< -o $@
21
22mandelbrot-scheme-fast: mandelbrot-scheme-fast.scm
23        $(CSC) $(CSCFLAGS) $< -o $@
24
25mandelbrot-scheme-slow: mandelbrot-scheme-slow.scm
26        $(CSC) $(CSCFLAGS) $< -o $@
27
28run: all
29        time ./mandelbrot-c 600 >c.ppm
30        time ./mandelbrot-scheme-slow 600 >scheme-slow.ppm
31        time ./mandelbrot-scheme-fast 600 >scheme-fast.ppm
Note: See TracBrowser for help on using the repository browser.