Skip to content

Commit

Permalink
o Make compiler flags as well part of the dependencies which
Browse files Browse the repository at this point in the history
  allows easier playing around with flags.
  • Loading branch information
hzeller committed Aug 27, 2015
1 parent b0e4d07 commit b102ca6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,4 @@ install-python: build-python
$(MAKE) -C $(PYTHON_LIB_DIR) install

FORCE:
.PHONY: FORCE
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ For GPIO slow-down, uncomment the following line in [lib/Makefile](lib/Makefile)

#DEFINES+=-DRGB_SLOWDOWN_GPIO # remove '#' in the beginning

Then `make clean` and `make` again.
Then `make` again.

Inverted Colors ?
-----------------
Expand All @@ -412,7 +412,6 @@ at the beginning of the line.

Then, recompile

make clean
make

A word about power
Expand Down
7 changes: 6 additions & 1 deletion lib/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,13 @@ thread.o : thread.cc $(INCDIR)/thread.h
framebuffer.o: framebuffer.cc framebuffer-internal.h
graphics.o: graphics.cc utf8-internal.h

%.o : %.cc
%.o : %.cc compiler-flags
$(CXX) -I$(INCDIR) $(CXXFLAGS) -c -o $@ $<

clean:
rm -f $(OBJECTS) $(TARGET)

compiler-flags: FORCE
@echo '$(CXXFLAGS)' | cmp -s - $@ || echo '$(CXXFLAGS)' > $@

.PHONY: FORCE

0 comments on commit b102ca6

Please sign in to comment.