diff options
| author | emmett1 <emmett1.2miligrams@protonmail.com> | 2026-03-29 16:27:28 +0800 |
|---|---|---|
| committer | emmett1 <emmett1.2miligrams@protonmail.com> | 2026-03-29 16:27:28 +0800 |
| commit | aea011ef4542dae9998a4c00c9bb02730aaa690c (patch) | |
| tree | 87e949c6823e9fcbc852dedd4a22c36ecc314708 /makefile | |
| download | sirc-aea011ef4542dae9998a4c00c9bb02730aaa690c.tar.gz sirc-aea011ef4542dae9998a4c00c9bb02730aaa690c.zip | |
initial commit
Diffstat (limited to 'makefile')
| -rw-r--r-- | makefile | 21 |
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 |