mirror of
https://github.com/team2059/Dent
synced 2024-12-18 20:52:29 -05:00
Removed src folder
This commit is contained in:
parent
743d6af115
commit
9dce18dc08
27
src/Makefile
27
src/Makefile
@ -1,27 +0,0 @@
|
|||||||
REMOTEIP=10.20.59.2
|
|
||||||
CC=arm-frc-linux-gnueabi-g++
|
|
||||||
CFLAGS=-std=c++11 -O0 -g3 -Wall -c -fmessage-length=0
|
|
||||||
LDFLAGS=-Wl,-rpath,/opt/GenICam_v2_3/bin/Linux_armv7-a
|
|
||||||
SOURCES=$(shell find -type f -name "*.cpp")
|
|
||||||
OBJECTS=$(SOURCES:.cpp=.o)
|
|
||||||
WPILIB=/var/frc/wpilib
|
|
||||||
EXEC=bin/FRCUserProgram
|
|
||||||
CLEANSER=rm -r
|
|
||||||
|
|
||||||
all : $(OBJECTS)
|
|
||||||
$(CC) -L$(WPILIB)/lib $(LDFLAGS) -o $(EXEC) $(OBJECTS) -lwpi
|
|
||||||
|
|
||||||
%.o : %.cpp
|
|
||||||
$(CC) $(CFLAGS) -I$(WPILIB)/include $^ -o $@
|
|
||||||
|
|
||||||
clean:
|
|
||||||
$(CLEANSER) $(OBJECTS) bin/FRCUserProgram
|
|
||||||
|
|
||||||
deploy:
|
|
||||||
@cat bin/FRCUserProgram | ssh admin@$(REMOTEIP) 'cat > /home/lvuser/FRCUserProgram2&&rm /home/lvuser/FRCUserProgram;mv /home/lvuser/FRCUserProgram2 /home/lvuser/FRCUserProgram&&. /etc/profile.d/natinst-path.sh;chmod a+x /home/lvuser/FRCUserProgram;/usr/local/frc/bin/frcKillRobot.sh -t -r'
|
|
||||||
|
|
||||||
putkey:
|
|
||||||
@test -d ~/.ssh||mkdir ~/.ssh;test -f ~/.ssh/id_rsa||ssh-keygen -t rsa -f ~/.ssh/id_rsa -b 4096 -q -N '';cat ~/.ssh/id_rsa.pub|ssh -v admin@$(REMOTEIP) 'cat >> /tmp/key;mkdir -p ~/.ssh;cat /tmp/key >> ~/.ssh/authorized_keys;rm /tmp/key'
|
|
||||||
|
|
||||||
updatemakefile:
|
|
||||||
@curl -s https://raw.githubusercontent.com/int0x191f2/nameless/master/configure.sh | sh
|
|
@ -1,27 +0,0 @@
|
|||||||
REMOTEIP=10.20.59.2
|
|
||||||
CC=arm-frc-linux-gnueabi-g++
|
|
||||||
CFLAGS=-std=c++11 -O0 -g3 -Wall -c -fmessage-length=0
|
|
||||||
LDFLAGS=-Wl,-rpath,/opt/GenICam_v2_3/bin/Linux_armv7-a
|
|
||||||
SOURCES=$(shell find -type f -name "*.cpp")
|
|
||||||
OBJECTS=$(SOURCES:.cpp=.o)
|
|
||||||
WPILIB=/var/frc/wpilib
|
|
||||||
EXEC=bin/FRCUserProgram
|
|
||||||
CLEANSER=rm -r
|
|
||||||
|
|
||||||
all : $(OBJECTS)
|
|
||||||
$(CC) -L$(WPILIB)/lib $(LDFLAGS) -o $(EXEC) $(OBJECTS) -lwpi
|
|
||||||
|
|
||||||
%.o : %.cpp
|
|
||||||
$(CC) $(CFLAGS) -I$(WPILIB)/include $^ -o $@
|
|
||||||
|
|
||||||
clean:
|
|
||||||
$(CLEANSER) $(OBJECTS) bin/FRCUserProgram
|
|
||||||
|
|
||||||
deploy:
|
|
||||||
@cat bin/FRCUserProgram | ssh admin@$(REMOTEIP) 'cat > /home/lvuser/FRCUserProgram2&&rm /home/lvuser/FRCUserProgram;mv /home/lvuser/FRCUserProgram2 /home/lvuser/FRCUserProgram&&. /etc/profile.d/natinst-path.sh;chmod a+x /home/lvuser/FRCUserProgram;/usr/local/frc/bin/frcKillRobot.sh -t -r'
|
|
||||||
|
|
||||||
putkey:
|
|
||||||
@test -d ~/.ssh||mkdir ~/.ssh;test -f ~/.ssh/id_rsa||ssh-keygen -t rsa -f ~/.ssh/id_rsa -b 4096 -q -N '';cat ~/.ssh/id_rsa.pub|ssh -v admin@$(REMOTEIP) 'cat >> /tmp/key;mkdir -p ~/.ssh;cat /tmp/key >> ~/.ssh/authorized_keys;rm /tmp/key'
|
|
||||||
|
|
||||||
updatemakefile:
|
|
||||||
@curl -s https://raw.githubusercontent.com/int0x191f2/nameless/master/configure.sh | sh
|
|
@ -1 +0,0 @@
|
|||||||
Subproject commit 181fb1556d4cc96daa430bfce0fb6ce26c7c90c9
|
|
Loading…
Reference in New Issue
Block a user