You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
455 B
Makefile
20 lines
455 B
Makefile
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 threads
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -f approximate-pi linked-list mandelbrot threads *~
|
|
|
|
.PHONY: indent
|
|
indent:
|
|
indent $(INDENTOPTS) *.c
|
|
|
|
mandelbrot: mandelbrot.c
|
|
$(CC) $(CFLAGS) $(shell sdl-config --cflags) -o $@ $< $(shell sdl-config --libs) -lm
|
|
|
|
threads: threads.c
|
|
$(CC) $(CFLAGS) -o $@ $< -pthread
|