nuclear@0: csrc = $(wildcard src/*.c) nuclear@0: ccsrc = $(wildcard src/*.cc) nuclear@0: obj = $(csrc:.c=.o) $(ccsrc:.cc=.o) nuclear@0: bin = eobish nuclear@0: nuclear@2: warn = -pedantic -Wall nuclear@2: opt = -O0 nuclear@2: dbg = -g nuclear@2: def = -DFBLIB_SDL nuclear@2: nuclear@6: ifeq ($(shell uname -s), Darwin) nuclear@6: def += -Dmain=SDL_main nuclear@6: endif nuclear@6: nuclear@2: CFLAGS = $(warn) $(opt) $(dbg) $(def) `pkg-config --cflags sdl` nuclear@0: CXXFLAGS = $(CFLAGS) nuclear@0: LDFLAGS = `pkg-config --libs sdl` nuclear@0: nuclear@0: $(bin): $(obj) nuclear@0: $(CXX) -o $@ $(obj) $(LDFLAGS) nuclear@0: nuclear@0: .PHONY: clean nuclear@0: clean: nuclear@0: rm -f $(obj) $(bin) nuclear@0: nuclear@0: .PHONY: data nuclear@0: data: nuclear@0: $(MAKE) -C orig_data