mirror of
https://codeberg.org/scip/diceware.git
synced 2025-12-18 03:10:57 +01:00
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:
8
Makefile
8
Makefile
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user