initial commit

This commit is contained in:
emmett1
2026-03-29 16:27:28 +08:00
commit aea011ef45
4 changed files with 2312 additions and 0 deletions
+21
View File
@@ -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