|
2 | 2 | # Specify project name and default compilers |
3 | 3 | PROJECTNAME = minbasecli_basicusage |
4 | 4 |
|
5 | | -# UART Driver path |
| 5 | +# CLI library path |
6 | 6 | MINBASECLIPATH = $(WORKSPACE)/../../../src |
7 | 7 |
|
8 | 8 | # Project root WorkSpace |
@@ -48,26 +48,28 @@ RELEASEDIR = $(WORKSPACE)/bin/$(DATE) |
48 | 48 | # Specify Sources files (Automatic search in specific directories) |
49 | 49 | SRCS = $(shell find $(WORKSPACE)/src -type f -name *.c) |
50 | 50 | SRCS += $(shell find $(WORKSPACE)/src -type f -name *.cpp) |
51 | | -SRCS += $(shell find $(WORKSPACE)/lib -type f -name *.c) |
52 | | -SRCS += $(shell find $(WORKSPACE)/lib -type f -name *.cpp) |
| 51 | + |
| 52 | +# Libraries Sources |
| 53 | +SRCS += $(shell find $(WORKSPACE)/lib/avr-uart-driver/src -type f -name *.c) |
| 54 | +SRCS += $(shell find $(WORKSPACE)/lib/avr-uart-driver/src -type f -name *.cpp) |
53 | 55 |
|
54 | 56 | # MinBaseCLI Sources |
55 | 57 | SRCS += $(MINBASECLIPATH)/minbasecli.cpp |
56 | 58 | SRCS += $(MINBASECLIPATH)/hal/avr/minbasecli_avr.cpp |
57 | | -SRCS += $(shell find $(MINBASECLIPATH)/hal/avr/avr-uart-driver/src -type f -name *.cpp) |
58 | 59 |
|
59 | 60 | # Specify Headers files (Automatic search in specific directories) |
60 | 61 | HEADS = $(shell find $(WORKSPACE)/inc -type f -name *.h) |
61 | 62 | HEADS += $(shell find $(WORKSPACE)/inc -type f -name *.hpp) |
62 | 63 | HEADS += $(shell find $(WORKSPACE)/src -type f -name *.h) |
63 | 64 | HEADS += $(shell find $(WORKSPACE)/src -type f -name *.hpp) |
64 | | -HEADS += $(shell find $(WORKSPACE)/lib -type f -name *.h) |
65 | | -HEADS += $(shell find $(WORKSPACE)/lib -type f -name *.hpp) |
| 65 | + |
| 66 | +# Libraries Headers |
| 67 | +HEADS += $(shell find $(WORKSPACE)/lib/avr-uart-driver/src -type f -name *.h) |
| 68 | +HEADS += $(shell find $(WORKSPACE)/lib/avr-uart-driver/src -type f -name *.hpp) |
66 | 69 |
|
67 | 70 | # MinBaseCLI Headers |
68 | 71 | HEADS += $(MINBASECLIPATH)/minbasecli.h |
69 | 72 | HEADS += $(MINBASECLIPATH)/hal/avr/minbasecli_avr.h |
70 | | -HEADS += $(shell find $(MINBASECLIPATH)/hal/avr/avr-uart-driver/src -type f -name *.h) |
71 | 73 |
|
72 | 74 | # Get Headers directories from headers paths |
73 | 75 | HEADERSDIR = $(shell echo $(HEADS) | xargs -n1 dirname | sort -u | xargs -n1 -i echo "-I{}") |
@@ -137,6 +139,7 @@ build: $(PRJ).bin |
137 | 139 | cp -a $(PRJ).bin $(RELEASEDIR) |
138 | 140 | @echo "ADDRESS SIZE FUNCTION FILE:LINE\n" > memory_program.txt |
139 | 141 | @$(NM) $(PRJ).elf >> memory_program.txt |
| 142 | + @chmod +x ../tools/* |
140 | 143 | @../tools/memusageram $(BUILDDIR)/memory_ram.txt >/dev/null 2>&1 |
141 | 144 | @rm -f $(BUILDDIR)/*.su |
142 | 145 | @mkdir -p $(BUILDDIR)/obj |
|
0 commit comments