From e1ce29ff70940bea94db41025dd10fa102a2d8e4 Mon Sep 17 00:00:00 2001 From: verdant Date: Fri, 5 Jun 2026 19:59:21 +0800 Subject: Add "add" option --- Makefile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..bd8248d --- /dev/null +++ b/Makefile @@ -0,0 +1,22 @@ +$(TARGET): $(SRCS) + $(CC) $(CFLAGS) -o $(TARGET) $(SRCS) + +TARGET = fkw +SRCS = main.c +CFLAGS = -g + + +vmp: *.c + gcc *.c $(CFLAGS) -o fkw + +clean: + rm -rf *.o vmp + +all: $(TARGET) + +install: + install -d $(DESTDIR)$(PREFIX)/bin + install -m 755 $(TARGET) $(DESTDIR)$(PREFIX)/bin/$(TARGET) + +format: + clang-format -i *.c *.h -- cgit v1.2.3