CPPFLAGS = $$(pkg-config --cflags gtkmm-3.0) -I. -I ../badge
CFLAGS = -Wall -Wextra -pedantic -std=c99 -Werror -O0 -g -fstack-protector-all
CXXFLAGS = -Wall -Wextra -pedantic -std=c++0x -Werror -O0 -g -fstack-protector-all
+LDLIBS = $$(pkg-config --libs gtkmm-3.0)
BADGE = badge
CONVERTER = level-converter
+LEVELLIST = levels.txt
GLADEFILES = lcd-display.glade
FARDEPS = $(BADGE_FAROBJS:%.o=%.dep)
DEPS = $(CDEPS) $(CXXDEPS) $(FARDEPS)
-LDLIBS = $$(pkg-config --libs gtkmm-3.0)
RM = rm -f
.PHONY: all dep clean distclean play
$(RM) $(DEPS) $(wildcard *~)
$(CONVERTER): $(CONVERTER_OBJS)
- $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) $(LDLIBS) -o $@ $+
+ $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@ $+ $(LDLIBS)
play: all
+ echo > $(LEVELLIST)
+ ls ../badge/jumpnrun/levels/*.lv | xargs -n1 basename | cut -d . -f 1 > $(LEVELLIST)
./$(CONVERTER)
./$(BADGE)