eobish

diff 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 diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/Makefile	Sat Jan 17 18:37:28 2015 +0200
     1.3 @@ -0,0 +1,19 @@
     1.4 +csrc = $(wildcard src/*.c)
     1.5 +ccsrc = $(wildcard src/*.cc)
     1.6 +obj = $(csrc:.c=.o) $(ccsrc:.cc=.o)
     1.7 +bin = eobish
     1.8 +
     1.9 +CFLAGS = -pedantic -Wall -g `pkg-config --cflags sdl`
    1.10 +CXXFLAGS = $(CFLAGS)
    1.11 +LDFLAGS = `pkg-config --libs sdl`
    1.12 +
    1.13 +$(bin): $(obj)
    1.14 +	$(CXX) -o $@ $(obj) $(LDFLAGS)
    1.15 +
    1.16 +.PHONY: clean
    1.17 +clean:
    1.18 +	rm -f $(obj) $(bin)
    1.19 +
    1.20 +.PHONY: data
    1.21 +data:
    1.22 +	$(MAKE) -C orig_data