build release with static binary and release custom builder (#2)

Co-authored-by: scip <scip@noreply.codeberg.org>
Co-committed-by: scip <scip@noreply.codeberg.org>
This commit is contained in:
scip
2025-11-06 23:09:56 +01:00
committed by T. von Dein
parent 1ef2e34511
commit 6221e7ae74
4 changed files with 144 additions and 0 deletions

View File

@@ -22,6 +22,7 @@ CFLAGS = -Wall -Wextra -Werror -O1 -g
LDFLAGS =
OBJS = dicepwgen.o dictfile.o tossing.o debug.o
DST = dicepwgen
STATIC = dicepwgen_static
PREFIX = /usr/local
UID = root
GID = 0
@@ -35,6 +36,13 @@ all: $(DST)
$(DST): $(OBJS)
gcc -DDICTFILE=$(DICTFILE) $(OBJS) -o $(DST)
static: $(STATIC)
$(STATIC): $(OBJS)
gcc -DDICTFILE=$(DICTFILE) -static $(OBJS) -o $(STATIC)
%.o: %.c
gcc -c $(CFLAGS) -DDICTFILE=$(DICTFILE) $*.c -o $*.o