X-Git-Url: https://git.rohieb.name/hackover2013-badge-firmware.git/blobdiff_plain/e63ef4561aaf187880dedebf9462bf72bcb0e9a4..ceb3c21bc69c96a3fef31d73fd8e312dd7481cd0:/mock/Makefile diff --git a/mock/Makefile b/mock/Makefile index 4414c13..a62a8e3 100644 --- a/mock/Makefile +++ b/mock/Makefile @@ -3,9 +3,11 @@ 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 @@ -43,7 +45,6 @@ CXXDEPS = $(BADGE_CXXSRCS:%.cc=%.dep) $(CONVERTER_SRCS:%.cc=%.dep) 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 @@ -83,8 +84,10 @@ distclean: clean $(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)