aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorczjstmax <jstmaxlol@disroot.org>2026-05-14 14:44:57 +0200
committerczjstmax <jstmaxlol@disroot.org>2026-05-14 14:44:57 +0200
commitd5be1b2375c4adcf4840ac379fe88aa2fae45771 (patch)
tree27a5f6b500450f4e23b3818b82c942370663eb7b /Makefile
parent15264922e75422865eb23eb2b471f1289ebdb549 (diff)
rf ver 1.1.20
Signed-off-by: czjstmax <jstmaxlol@disroot.org>
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..4d7f511
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,22 @@
+CC = gcc
+OPTS = -Wall -Wextra -pedantic -std=c99
+FIN = rf.c
+FOUT = rf
+PREFIX ?= /usr
+DESTDIR ?=
+
+.PHONY: all run install clean
+
+all:
+ $(CC) $(OPTS) $(FIN) -o $(FOUT)
+
+run: all
+ ./$(FOUT)
+
+install: all
+ sudo install -Dm755 $(FOUT) $(DESTDIR)$(PREFIX)/bin/$(FOUT)
+ $(MAKE) clean
+
+clean:
+ rm -v $(FOUT)
+