par_rast

diff Makefile @ 0:11f024648101

initial
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 22 Mar 2016 00:55:07 +0200
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/Makefile	Tue Mar 22 00:55:07 2016 +0200
     1.3 @@ -0,0 +1,20 @@
     1.4 +src = $(wildcard src/*.c)
     1.5 +obj = $(src:.c=.o)
     1.6 +bin = test
     1.7 +
     1.8 +CFLAGS = -pedantic -Wall -g
     1.9 +LDFLAGS = -lSDL -lm -lpthread
    1.10 +
    1.11 +.PHONY: all
    1.12 +all: .clang_complete $(bin)
    1.13 +
    1.14 +$(bin): $(obj)
    1.15 +	$(CC) -o $@ $(obj) $(LDFLAGS)
    1.16 +
    1.17 +.clang_complete:
    1.18 +	echo '-x c' >$@
    1.19 +	echo $(CFLAGS) >>$@
    1.20 +
    1.21 +.PHONY: clean
    1.22 +clean:
    1.23 +	rm -f $(obj) $(bin)