Permalink
Browse files

o Add submodule description.

  • Loading branch information...
hzeller committed Jun 3, 2016
1 parent 46a2429 commit 2ca2f7dfc418bb1ab8f9e6260c277e40b714ba5e
Showing with 23 additions and 5 deletions.
  1. +11 −0 README.md
  2. +12 −5 examples/Makefile
View
@@ -15,6 +15,17 @@ The C++ library can be found in [include/](./include) and
[lib/](./lib), with examples in the, you guessed it,
[examples/](./examples) directory.
If you want to use the library in your own projects, just add it as a
sub-module to your project:
```
git submodule add https://github.com/hzeller/spixels
```
You now have a subdirectory `spixels/` in your project. See
the [Makefile](./examples/Makefile) in the examples/ directory as a
template how to use it with your project.
You find the board in the [hardware/](./hardware) directory (including OshPark
link).
View
@@ -1,14 +1,21 @@
LIBRARY=../lib/libspixels.a
# The toplevel directory of the spixels project. In this case
# this is one directory up, so ../
# If you are using this as a template for your own project and
# have checked out the spixels/ project as a submodule under
# the spixels/ directory, then use SPIXELS_DIR=spixels
SPIXELS_DIR=..
LDFLAGS=-L../lib -lspixels
INCLUDE_FLAGS=-I../include
SPIXELS_LIBRARY=$(SPIXELS_DIR)/lib/libspixels.a
LDFLAGS=-L$(SPIXELS_DIR)/lib -lspixels
INCLUDE_FLAGS=-I$(SPIXELS_DIR)/include
CXXFLAGS=-Wall -O3 $(INCLUDE_FLAGS)
simple : simple.cc $(LIBRARY)
simple : simple.cc $(SPIXELS_LIBRARY)
$(CXX) $(CXXFLAGS) $^ -o $@ $(LDFLAGS)
$(LIBRARY):
$(SPIXELS_LIBRARY):
$(MAKE) -C ../lib
clean:

0 comments on commit 2ca2f7d

Please sign in to comment.