Commit 2215adb 1 parent bb4699b commit 2215adb Copy full SHA for 2215adb
File tree 13 files changed +17
-34
lines changed
13 files changed +17
-34
lines changed Original file line number Diff line number Diff line change 1
- all : make -simavr make -tests make -examples
1
+ all : $( MAKE ) -simavr $( MAKE ) -tests $( MAKE ) -examples
2
2
3
- make -simavr :
4
- make -C simavr
3
+ $( MAKE ) -simavr :
4
+ $( MAKE ) -C simavr
5
5
6
- make -tests : make -simavr
7
- make -C tests
6
+ $( MAKE ) -tests : $( MAKE ) -simavr
7
+ $( MAKE ) -C tests
8
8
9
- make -examples : make -simavr
10
- make -C examples
9
+ $( MAKE ) -examples : $( MAKE ) -simavr
10
+ $( MAKE ) -C examples
11
11
12
12
clean :
13
- make -C simavr clean
14
- make -C tests clean
15
- make -C examples clean
13
+ $( MAKE ) -C simavr clean
14
+ $( MAKE ) -C tests clean
15
+ $( MAKE ) -C examples clean
Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ AR ?= ar
57
57
RANLIB ?= ranlib
58
58
MKDIR ?= mkdir -p
59
59
INSTALL ?= install
60
+ SHELL := ${shell which bash}
60
61
61
62
# simavr directory
62
63
SIMAVR ?= ${shell for p in . .. ../.. ../../..;do test -d $$p/simavr/sim && echo $$p/simavr; done}
Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ boards=$(boards_base)
8
8
endif
9
9
10
10
all :
11
- for bi in ${boards} ; do make -C $$ bi; done
11
+ for bi in ${boards} ; do $( MAKE ) -C $$ bi; done
12
12
13
13
clean :
14
- for bi in ${boards} ; do make -C $$ bi clean; done
14
+ for bi in ${boards} ; do $( MAKE ) -C $$ bi clean; done
15
15
Original file line number Diff line number Diff line change @@ -21,8 +21,6 @@ firm_src = ${wildcard at*${board}.c}
21
21
firmware = ${firm_src:.c=.axf}
22
22
simavr = ../../
23
23
24
- SHELL = /bin/bash
25
-
26
24
IPATH = .
27
25
IPATH += ../parts
28
26
IPATH += ${simavr}/include
Original file line number Diff line number Diff line change @@ -21,8 +21,6 @@ firm_src = ${wildcard at*${board}.c}
21
21
firmware = ${firm_src:.c=.axf}
22
22
simavr = ../..
23
23
24
- SHELL = /bin/bash
25
-
26
24
IPATH = .
27
25
IPATH += ${simavr}/examples/shared
28
26
IPATH += ${simavr}/examples/parts
Original file line number Diff line number Diff line change @@ -21,8 +21,6 @@ firm_src = ${wildcard at*${board}.c}
21
21
firmware = ${firm_src:.c=.axf}
22
22
simavr = ../../
23
23
24
- SHELL = /bin/bash
25
-
26
24
IPATH = .
27
25
IPATH += ../parts
28
26
IPATH += ${simavr}/include
Original file line number Diff line number Diff line change @@ -21,8 +21,6 @@ firm_src = ${wildcard atmega*.c}
21
21
firmware = ${firm_src:.c=.hex}
22
22
simavr = ../../
23
23
24
- SHELL = /bin/bash
25
-
26
24
IPATH = .
27
25
IPATH += src
28
26
IPATH += ../parts
Original file line number Diff line number Diff line change @@ -21,8 +21,6 @@ firm_src = ${wildcard atmega*.c}
21
21
firmware = ${firm_src:.c=.hex}
22
22
simavr = ../../
23
23
24
- SHELL = /bin/bash
25
-
26
24
IPATH = .
27
25
IPATH += ../parts
28
26
IPATH += ${simavr}/include
Original file line number Diff line number Diff line change @@ -21,8 +21,6 @@ firm_src = ${wildcard at*${target}.c}
21
21
firmware = ${firm_src:.c=.axf}
22
22
simavr = ../../
23
23
24
- SHELL = /bin/bash
25
-
26
24
IPATH = .
27
25
IPATH += ../parts
28
26
IPATH += ${simavr}/include
Original file line number Diff line number Diff line change @@ -21,8 +21,6 @@ firm_src = at90usb162_cdc_loopback.c
21
21
firmware = ${firm_src:.c=.hex}
22
22
simavr = ../../
23
23
24
- SHELL = /bin/bash
25
-
26
24
IPATH = .
27
25
IPATH += ../parts
28
26
IPATH += ../vhci/include
@@ -47,14 +45,14 @@ ${board} : ${OBJ}/${target}.o
47
45
48
46
../vhci/lib/libusb_vhci.a :
49
47
@echo -n " BUILDIN $@ "
50
- @{ make -j -C ../vhci > /tmp/vhci.build.log 2>&1 || \
48
+ @{ $( MAKE ) -j -C ../vhci > /tmp/vhci.build.log 2>&1 || \
51
49
{ echo " ERROR check /tmp/vhci.build.log" ; exit 1; }; } && \
52
50
echo " Done"
53
51
54
52
vhci : ../vhci/lib/libusb_vhci.a
55
53
56
54
clean-vhci :
57
- make -C ../vhci clean
55
+ $( MAKE ) -C ../vhci clean
58
56
59
57
${target} : vhci ${board}
60
58
@echo $@ done
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ all: library
18
18
module : vhci-hcd-$(HCD_V ) /usb-vhci-hcd.ko
19
19
20
20
vhci-hcd-$(HCD_V ) /usb-vhci-hcd.ko : vhci-hcd-$(HCD_V )
21
- make -C vhci-hcd-$(HCD_V ) \
21
+ $( MAKE ) -C vhci-hcd-$(HCD_V ) \
22
22
KDIR=/lib/modules/${shell uname -r} /build \
23
23
CORE_INCLUDE_DIR=$(PWD ) /vhci-hcd-$(HCD_V ) /linux/2.6.32/drivers/usb/core
24
24
@@ -37,7 +37,7 @@ lib/libusb_vhci.a: module libusb_vhci-$(VHCI_V)
37
37
ln -snf vhci-hcd-$(HCD_V ) linux && \
38
38
cd libusb_vhci-$(VHCI_V ) && \
39
39
./configure --prefix=$(PWD ) CPPFLAGS=" -I$( PWD) " --enable-static --disable-shared && \
40
- make -j && make install
40
+ $( MAKE ) -j && $( MAKE ) install
41
41
42
42
libusb_vhci-$(VHCI_V ) .tar.bz2 :
43
43
wget $(BASE_URL ) /native%20libraries/libusb_vhci-$(VHCI_V ) .tar.bz2
Original file line number Diff line number Diff line change 18
18
19
19
SIMAVR_VERSION = 1.0a10
20
20
SIMAVR_REVISION = 1
21
- SHELL =/bin/bash
22
21
23
22
target = run_avr
24
23
Original file line number Diff line number Diff line change 20
20
# You should have received a copy of the GNU General Public License
21
21
# along with simavr. If not, see <http://www.gnu.org/licenses/>.
22
22
23
-
24
- SHELL = /bin/bash
25
-
26
23
sources := $(wildcard at* .c)
27
24
simavr = ..
28
25
You can’t perform that action at this time.
0 commit comments