eobish

annotate Makefile @ 3:e32bdd5fb622

foo
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 18 Jan 2015 05:51:51 +0200
parents 465ca72c9657
children c02579c0a6c6
rev   line source
nuclear@0 1 csrc = $(wildcard src/*.c)
nuclear@0 2 ccsrc = $(wildcard src/*.cc)
nuclear@0 3 obj = $(csrc:.c=.o) $(ccsrc:.cc=.o)
nuclear@0 4 bin = eobish
nuclear@0 5
nuclear@2 6 warn = -pedantic -Wall
nuclear@2 7 opt = -O0
nuclear@2 8 dbg = -g
nuclear@2 9 def = -DFBLIB_SDL
nuclear@2 10
nuclear@2 11 CFLAGS = $(warn) $(opt) $(dbg) $(def) `pkg-config --cflags sdl`
nuclear@0 12 CXXFLAGS = $(CFLAGS)
nuclear@0 13 LDFLAGS = `pkg-config --libs sdl`
nuclear@0 14
nuclear@0 15 $(bin): $(obj)
nuclear@0 16 $(CXX) -o $@ $(obj) $(LDFLAGS)
nuclear@0 17
nuclear@0 18 .PHONY: clean
nuclear@0 19 clean:
nuclear@0 20 rm -f $(obj) $(bin)
nuclear@0 21
nuclear@0 22 .PHONY: data
nuclear@0 23 data:
nuclear@0 24 $(MAKE) -C orig_data