static build

This commit is contained in:
2025-08-25 22:17:20 +02:00
parent 65f3e923c1
commit 316f792927
2 changed files with 38 additions and 0 deletions

View File

@@ -24,6 +24,9 @@ PREFIX = /usr
# Default rule
all: $(TARGET) man
static: $(OBJS)
$(CC) $(CFLAGS) -static $(OBJS) -o $(TARGET) $(LIBS) -ldbus-1 -lsystemd -lcap
# Create executable
$(TARGET): $(OBJS)
$(CC) $(CFLAGS) $(OBJS) -o $(TARGET) $(LIBS)