From 782252e0bd75cc0eece9522a991617d911f7835b Mon Sep 17 00:00:00 2001 From: Daniel Meiburg Date: Fri, 3 May 2024 12:16:02 +0200 Subject: [PATCH] Add Makefile --- Makefile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..7c4bb4c --- /dev/null +++ b/Makefile @@ -0,0 +1,15 @@ +CC=gcc +CFLAGS=-lgpiod +TARGET=io + +all: $(TARGET) + +$(TARGET): io.c + $(CC) -o $(TARGET) io.c $(CFLAGS) + +run: + ./$(TARGET) + +clean: + rm -f $(TARGET) +