relay-switch: Initial commit
Signed-off-by: Thomas Klaehn <tkl@blackfinn.de>
This commit is contained in:
21
Makefile
Normal file
21
Makefile
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
DEPENDENCIES := -lpthread -lrt
|
||||
CFLAGS := -Wall -Wextra -Iftdi
|
||||
|
||||
CC ?= gcc
|
||||
|
||||
BUILDDIR := build
|
||||
APP = $(BUILDDIR)/relay-switch
|
||||
|
||||
all: $(APP)
|
||||
|
||||
$(APP): src/main.c
|
||||
@mkdir -p $(BUILDDIR)
|
||||
$(CC) src/main.c -o $(APP) $(CFLAGS) -lftdi $(DEPENDENCIES)
|
||||
|
||||
clean:
|
||||
-rm -f $(APP)
|
||||
|
||||
install: all
|
||||
install -m 755 $(APP) /usr/local/bin/
|
||||
install -m 644 udev/* /etc/udev/rules.d/
|
Reference in New Issue
Block a user