par_rast

annotate Makefile @ 0:11f024648101

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