eobish

view Makefile @ 4:ce0548d24918

mostly works
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 18 Jan 2015 13:30:30 +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