Makefile: some changes
This commit is contained in:
parent
a4163f0df6
commit
dc03845148
1 changed files with 3 additions and 3 deletions
|
|
@ -13,13 +13,13 @@ SRCS := utils.c magic_mount.c main.c
|
|||
OUTDIR := bin
|
||||
|
||||
# common flags
|
||||
CFLAGS_COMMON := -D_POSIX_C_SOURCE=200809L -std=c23 -Wall -Wextra -pedantic
|
||||
CFLAGS_COMMON := -Wl,--gc-sections -static
|
||||
CFLAGS_COMMON += -DVERSION=\"$(VERSION)\"
|
||||
|
||||
LDFLAGS_COMMON := -static
|
||||
|
||||
# build mode specific flags
|
||||
CFLAGS_RELEASE := -O2 -DNDEBUG
|
||||
CFLAGS_RELEASE := -Oz -s -DNDEBUG
|
||||
CFLAGS_DEBUG := -O0 -g -DDEBUG
|
||||
|
||||
# zig target triples
|
||||
|
|
@ -84,4 +84,4 @@ $(BIN_ARMV7): $(SRCS)
|
|||
$(CC) -target $(TARGET_ARMV7) $(CFLAGS) $^ -o $@ $(LDFLAGS_COMMON)
|
||||
|
||||
clean:
|
||||
rm -rf $(OUTDIR)
|
||||
rm -rf $(OUTDIR)
|
||||
|
|
|
|||
Loading…
Reference in a new issue