X-Git-Url: https://git.rohieb.name/hackover2013-badge-firmware.git/blobdiff_plain/f71b7a038ec2ba5eea22b2647b841239eaf93aa8..4292be14c78b8f30075c9e4837dd026f6fec532e:/mock/Makefile?ds=sidebyside diff --git a/mock/Makefile b/mock/Makefile index 969b2b4..a62a8e3 100644 --- a/mock/Makefile +++ b/mock/Makefile @@ -1,11 +1,13 @@ #!/usr/bin/make -f CPPFLAGS = $$(pkg-config --cflags gtkmm-3.0) -I. -I ../badge -CFLAGS = -Wall -Wextra -pedantic -std=c99 -Werror -O0 -g -CXXFLAGS = -Wall -Wextra -pedantic -std=c++0x -Werror -O0 -g +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 @@ -17,6 +19,7 @@ BADGE_CXXSRCS = mock-main.cc \ BADGE_CSRCS = badge_main_loop.c BADGE_FAROBJS = ui/font.o \ + ui/menu.o \ ui/sprite.o \ jumpnrun/collision.o \ jumpnrun/enemies.o \ @@ -42,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 @@ -82,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)