eobish
view Makefile @ 8:c0e8bbf96849
merged
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Mon, 19 Jan 2015 15:49:36 +0200 |
parents | cdbcae5b3b98 |
children |
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 ifeq ($(shell uname -s), Darwin)
12 def += -Dmain=SDL_main
13 endif
15 CFLAGS = $(warn) $(opt) $(dbg) $(def) `pkg-config --cflags sdl`
16 CXXFLAGS = $(CFLAGS)
17 LDFLAGS = `pkg-config --libs sdl`
19 $(bin): $(obj)
20 $(CXX) -o $@ $(obj) $(LDFLAGS)
22 .PHONY: clean
23 clean:
24 rm -f $(obj) $(bin)
26 .PHONY: data
27 data:
28 $(MAKE) -C orig_data