c-exercises/Makefile

17 lines
384 B
Makefile
Raw Normal View History

2013-05-11 21:01:39 +02:00
CFLAGS=-std=c99 -Wall -g -O2
2013-05-09 19:32:02 +02:00
INDENTOPTS=-kr --no-tabs --braces-on-func-def-line --indent-level2
2013-05-09 19:18:10 +02:00
2013-05-11 13:10:00 +02:00
.PHONY: all
all: approximate-pi linked-list mandelbrot
2013-05-10 14:32:21 +02:00
2013-05-11 13:10:00 +02:00
.PHONY: clean
2013-05-10 14:32:21 +02:00
clean:
2013-05-11 13:10:00 +02:00
rm -f approximate-pi linked-list mandelbrot *~
2013-05-09 19:32:02 +02:00
.PHONY: indent
indent:
indent $(INDENTOPTS) *.c
2013-05-11 13:10:00 +02:00
mandelbrot: mandelbrot.c
$(CC) $(CFLAGS) $(shell sdl-config --cflags) -o $@ $< $(shell sdl-config --libs) -lm