aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
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