mirror of
https://bitbucket.org/myhomie/mycorerepository.git
synced 2025-12-06 09:41:19 +00:00
14 lines
390 B
Bash
14 lines
390 B
Bash
#!/bin/bash
|
|
#
|
|
# simBuild
|
|
# build a RadioHead example sketch for running as a simulated process
|
|
# on Linux.
|
|
#
|
|
# usage: simBuild sketchname.pde
|
|
# The executable will be saved in the current directory
|
|
|
|
INPUT=$1
|
|
OUTPUT=$(basename $INPUT ".pde")
|
|
|
|
g++ -g -I . -x c++ $INPUT tools/simMain.cpp RHGenericDriver.cpp RHMesh.cpp RHRouter.cpp RHReliableDatagram.cpp RHDatagram.cpp RH_TCP.cpp -o $OUTPUT
|