aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authoremmett1 <emmett1.2miligrams@protonmail.com>2026-03-29 16:27:28 +0800
committeremmett1 <emmett1.2miligrams@protonmail.com>2026-03-29 16:27:28 +0800
commitaea011ef4542dae9998a4c00c9bb02730aaa690c (patch)
tree87e949c6823e9fcbc852dedd4a22c36ecc314708 /makefile
downloadsirc-aea011ef4542dae9998a4c00c9bb02730aaa690c.tar.gz
sirc-aea011ef4542dae9998a4c00c9bb02730aaa690c.zip
initial commit
Diffstat (limited to 'makefile')
-rw-r--r--makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/makefile b/makefile
new file mode 100644
index 0000000..e812067
--- /dev/null
+++ b/makefile
@@ -0,0 +1,21 @@
+CC = cc
+CFLAGS = -std=c99 -Wall -Wextra -Wpedantic -O2
+LDFLAGS = -lncurses -lpthread -lssl -lcrypto
+
+TARGET = sirc
+SRC = sirc.c
+
+.PHONY: all clean install
+
+all: $(TARGET)
+
+$(TARGET): $(SRC)
+ $(CC) $(CFLAGS) -std=gnu99 -o $@ $^ $(LDFLAGS)
+
+clean:
+ rm -f $(TARGET)
+
+install: $(TARGET)
+ install -Dm755 $(TARGET) $(DESTDIR)$(PREFIX)/bin/$(TARGET)
+
+PREFIX ?= $(HOME)/.local