-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Lukáš Dršman edited this page May 17, 2022
·
8 revisions
- git
- make
- arm-linux-gnueabi-gcc
To install required packages on debian/ubuntu (apt) based systems, use:
sudo apt-get install git make libc6-armel-cross libc6-dev-armel-cross binutils-arm-linux-gnueabi libncurses5-dev build-essential bison flex libssl-dev bc gcc-arm-linux-gnueabi g++-arm-linux-gnueabi
Clone,
git clone https://github.com/TatranskiDravci/FLL-td.git
cd FLL-td
initialize build directory,
make init
and build all targets,
make
To create build instructions for runX.c
, use the template
runX: runX.c $(DRIVERS) $(INCLUDE)
$(CC) $^ -o build/runX
and (optionally) add runX
to the default all
build target
# build all targets
all: run1 run 2 ... runX
To clean build/
directory, use make clean
.
To include all higher-level functions and types, use
#include "base/base.h"
#include "base/move.h"
#include "base/pid.h"
#include "base/color.h"
#include "shifter/shifter.h"
#include "shifter/module.h"
if the directories base/
and shifter/
are in the same folder as the main file.