eobish

view Makefile @ 0:465ca72c9657

initial commit
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 17 Jan 2015 18:37:28 +0200
parents
children cdbcae5b3b98
line source
1 csrc = $(wildcard src/*.c)
2 ccsrc = $(wildcard src/*.cc)
3 obj = $(csrc:.c=.o) $(ccsrc:.cc=.o)
4 bin = eobish
6 CFLAGS = -pedantic -Wall -g `pkg-config --cflags sdl`
7 CXXFLAGS = $(CFLAGS)
8 LDFLAGS = `pkg-config --libs sdl`
10 $(bin): $(obj)
11 $(CXX) -o $@ $(obj) $(LDFLAGS)
13 .PHONY: clean
14 clean:
15 rm -f $(obj) $(bin)
17 .PHONY: data
18 data:
19 $(MAKE) -C orig_data