Skip to content

Commit

Permalink
Rearrange
Browse files Browse the repository at this point in the history
  • Loading branch information
alkaza committed Nov 27, 2017
1 parent 3725afe commit 38ac199
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 10 deletions.
6 changes: 0 additions & 6 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,6 @@ CFLAGS = -I. -Wall
LDFLAGS = -L.
LDLIBS = -lrobot
LIBS = -lwiringPi
EXE = sensor motor synch avoid

all : $(EXE)

% : %.c
$(CC) $(CFLAGS) $< -o $@ $(LDFLAGS) $(LDLIBS) $(LIBS)

clean :
$(RM) $(EXE)
2 changes: 0 additions & 2 deletions src/cplib.sh

This file was deleted.

14 changes: 14 additions & 0 deletions src/examples/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
CC = gcc
CFLAGS = -I. -Wall
LDFLAGS = -L.
LDLIBS = -lrobot
LIBS = -lwiringPi
EXE = sensor motor synch avoid

all : $(EXE)

% : %.c
$(CC) $(CFLAGS) $< -o $@ $(LDFLAGS) $(LDLIBS) $(LIBS)

clean :
$(RM) $(EXE)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 0 additions & 2 deletions src/rmlib.sh

This file was deleted.

6 changes: 6 additions & 0 deletions src/scripts/cplib.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh
LIBD="/home/pi/RPiRobot/src/lib"
echo -en "Copy lib to... "
read SRCD
echo $SRCD
cp $LIBD/robot.h $LIBD/librobot.a $SRCD
5 changes: 5 additions & 0 deletions src/scripts/rmlib.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh
echo -en "Remove lib from... "
read SRCD
echo $SRCD
rm $SRCD/robot.h #SRCD/librobot.a

0 comments on commit 38ac199

Please sign in to comment.