blob: abfae5ebe2bf0a99308591491509324e0f3e7d6a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# Makefile for the rcontrol program
# We set a setuid bit as this tools needs root privilleges to open the FT232 device.
BINARY=./rcontrol
install: all
ln -snf $$PWD/$(BINARY) ../bin/
all:$(BINARY)
chown root.root $(BINARY)
chmod +s $(BINARY)
$(BINARY): rcontrol.c
#punani install libftdi1 libftdi-dev
gcc -Wall -lusb -lftdi rcontrol.c -o $(BINARY)
clean:
rm -f $(BINARY)
|