summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorverdant <im@verdant.ee>2026-06-05 19:59:21 +0800
committerverdant <im@verdant.ee>2026-06-05 19:59:21 +0800
commite1ce29ff70940bea94db41025dd10fa102a2d8e4 (patch)
tree25ba96f64cda21bdb9b5d8dbfb4e863a1bdad92c /Makefile
downloadfkw-master.tar.gz
fkw-master.zip
Add "add" optionHEADmaster
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 22 insertions, 0 deletions
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