Skip to content
This repository has been archived by the owner on Apr 13, 2021. It is now read-only.

Commit

Permalink
Add libopencm3 as a submodule.
Browse files Browse the repository at this point in the history
  • Loading branch information
gsmcmullin committed Jan 25, 2014
1 parent b8d1654 commit def6cd1
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "libopencm3"]
path = libopencm3
url = https://github.com/libopencm3/libopencm3.git
14 changes: 10 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ else
MAKEFLAGS += PRN=$(PRN)
endif

.PHONY: all tests firmware bootloader docs
.PHONY: all tests firmware bootloader docs libopencm3

all: firmware bootloader tests

firmware:
firmware: libopencm3
@printf "BUILD src\n"; \
$(MAKE) -C src $(MAKEFLAGS)

Expand All @@ -34,11 +34,17 @@ tests:
fi; \
done

libopencm3:
@printf "BUILD libopencm3\n"; \
$(MAKE) -C libopencm3 $(MAKEFLAGS)

clean:
@printf "CLEAN src\n"; \
$(MAKE) -C bootloader $(MAKEFLAGS) clean
@printf "CLEAN bootloader\n"; \
$(MAKE) -C src $(MAKEFLAGS) clean
@printf "CLEAN bootloader\n"; \
$(MAKE) -C bootloader $(MAKEFLAGS) clean
@printf "CLEAN libopencm3\n"; \
$(MAKE) -C libopencm3 $(MAKEFLAGS) clean
$(Q)for i in tests/*; do \
if [ -d $$i ]; then \
printf "CLEAN $$i\n"; \
Expand Down
1 change: 1 addition & 0 deletions libopencm3
Submodule libopencm3 added at 5830a1

0 comments on commit def6cd1

Please sign in to comment.