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