summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorverdant <i@glowisle.me>2026-05-24 13:55:39 +0800
committerverdant <i@glowisle.me>2026-05-24 13:55:39 +0800
commitb6fe9fc6a4f31d4fa0ddad7fdfd3324cd1c88d3e (patch)
treebe10b7b732e8358a0fa1bb0b407903fae1fa91c6 /Makefile
downloadvmp-b6fe9fc6a4f31d4fa0ddad7fdfd3324cd1c88d3e.tar.gz
vmp-b6fe9fc6a4f31d4fa0ddad7fdfd3324cd1c88d3e.zip
Initial commit
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..64c0860
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,22 @@
+$(TARGET): $(SRCS)
+ $(CC) $(CFLAGS) -o $(TARGET) $(SRCS)
+
+TARGET = vmp
+SRCS = main.c
+CFLAGS = -g
+
+
+vmp: *.c
+ gcc *.c $(CFLAGS) -o vmp
+
+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