eobish

view Makefile @ 5:0baf4e98315e

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