Simplify Makefile and correct for new file name

This commit is contained in:
Adam Goldsmith 2016-03-05 01:26:54 -05:00
parent 1ade41bf50
commit b7a28ce29c
1 changed files with 5 additions and 3 deletions

View File

@ -1,5 +1,7 @@
LIBS=wpi
override CFLAGS +=-l$(LIBS) -std=c++14
CXX=arm-frc-linux-gnueabi-g++
override CPPFLAGS +=-std=c++14
LDFLAGS=-l$(LIBS)
TEAM=1786
SSH_OPTIONS=-q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no
SSH_SSHPASS=$(shell command -v sshpass >/dev/null 2>&1 && echo -n "sshpass -p ''")
@ -8,9 +10,9 @@ all: deploy
build: FRCUserProgram
FRCUserProgram: robot.cpp
FRCUserProgram: src/Robot.cpp
@echo "Building FRCUserProgram"
arm-frc-linux-gnueabi-g++ robot.cpp -o FRCUserProgram $(CFLAGS)
$(CXX) $(CPPFLAGS) $< -o $@ $(LDFLAGS)
clean:
rm FRCUserProgram