tonarchy

tonarchy

https://git.tonybtw.com/tonarchy.git git://git.tonybtw.com/tonarchy.git
533 bytes raw
1
CC = gcc
2
CFLAGS = -std=c23 -Wall -Wextra -O2
3
LDFLAGS =
4
STATIC_LDFLAGS = -static
5
6
TARGET = tonarchy
7
SRC = tonarchy.c
8
9
.PHONY: all clean install static
10
11
all: $(TARGET)
12
13
static: $(TARGET)-static
14
15
$(TARGET): $(SRC)
16
	$(CC) $(CFLAGS) $(SRC) -o $(TARGET) $(LDFLAGS)
17
18
$(TARGET)-static: $(SRC)
19
	$(CC) $(CFLAGS) $(SRC) -o $(TARGET)-static $(STATIC_LDFLAGS)
20
21
clean:
22
	rm -f $(TARGET) $(TARGET)-static
23
24
install: $(TARGET)
25
	install -Dm755 $(TARGET) /usr/local/bin/$(TARGET)
26
	cp -r packages /usr/share/tonarchy/
27
	cp -r configs /usr/share/tonarchy/