File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 27
27
# along with simavr. If not, see <http://www.gnu.org/licenses/>.
28
28
29
29
# simavr directory
30
+ ifndef SIMAVR
30
31
SIMAVR := ${shell for p in . .. ../.. ../../..;do test -d $$p/simavr/sim && echo $$p/simavr; done}
32
+ endif
33
+
34
+ # check if it is found
35
+ ifeq ("$(wildcard $(SIMAVR)/sim/)","")
36
+ $(warning Simavr path not found. SIMAVR=$(SIMAVR))
37
+ endif
31
38
32
39
# You can override the build settings with local changes in this file
33
40
# for example:
@@ -179,7 +186,7 @@ endif
179
186
-ffunction-sections -fdata-sections \
180
187
-Wl,--relax,--gc-sections \
181
188
-Wl,--undefined=_mmcu,--section-start=.mmcu=0x910000 \
182
- -I../simavr/sim/avr -I../../simavr/sim/avr \
189
+ -I$(SIMAVR)/sim/avr -I ../simavr/sim/avr -I../../simavr/sim/avr \
183
190
${^} -o ${@}
184
191
@${AVR}size ${@}|sed '1d'
185
192
You can’t perform that action at this time.
0 commit comments