play around with threads
This commit is contained in:
parent
b12b4ff429
commit
1b131108dd
2 changed files with 52 additions and 2 deletions
7
Makefile
7
Makefile
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue