par_rast

view Makefile @ 0:11f024648101

initial
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 22 Mar 2016 00:55:07 +0200
parents
children
line source
1 src = $(wildcard src/*.c)
2 obj = $(src:.c=.o)
3 bin = test
5 CFLAGS = -pedantic -Wall -g
6 LDFLAGS = -lSDL -lm -lpthread
8 .PHONY: all
9 all: .clang_complete $(bin)
11 $(bin): $(obj)
12 $(CC) -o $@ $(obj) $(LDFLAGS)
14 .clang_complete:
15 echo '-x c' >$@
16 echo $(CFLAGS) >>$@
18 .PHONY: clean
19 clean:
20 rm -f $(obj) $(bin)