play around with threads

This commit is contained in:
orange 2013-05-16 20:44:46 +02:00
parent b12b4ff429
commit 1b131108dd
2 changed files with 52 additions and 2 deletions

View file

@ -2,11 +2,11 @@ CFLAGS=-std=c99 -Wall -g -O2
INDENTOPTS=-kr --no-tabs --braces-on-func-def-line --indent-level2
.PHONY: all
all: approximate-pi linked-list mandelbrot
all: approximate-pi linked-list mandelbrot threads
.PHONY: clean
clean:
rm -f approximate-pi linked-list mandelbrot *~
rm -f approximate-pi linked-list mandelbrot threads *~
.PHONY: indent
indent:
@ -14,3 +14,6 @@ indent:
mandelbrot: mandelbrot.c
$(CC) $(CFLAGS) $(shell sdl-config --cflags) -o $@ $< $(shell sdl-config --libs) -lm
threads: threads.c
$(CC) $(CFLAGS) -o $@ $< -pthread