Work
This commit is contained in:
parent
ef54b50d5b
commit
272fb88bca
5 changed files with 62 additions and 32 deletions
21
Makefile
21
Makefile
|
|
@ -1,13 +1,20 @@
|
|||
# SPDX-License-Identifier: MIT
|
||||
|
||||
CC = gcc
|
||||
CFLAGS = -Wall -Wextra -Werror -Wno-unused-parameter
|
||||
CFLAGS += -Wno-unused-variable -Wno-unused-function
|
||||
CFLAGS += -Wno-unused-but-set-variable -Wno-unused-value -Wno-unused-label
|
||||
CFLAGS += -Wno-unused-result -Wno-unused-const-variable
|
||||
CFLAGS += -fno-exceptions -fno-asynchronous-unwind-tables -fno-ident
|
||||
CFLAGS += -fno-unwind-tables -fno-stack-protector -fno-plt -fno-pic
|
||||
CFLAGS += -O3 -std=c99 -march=native -mtune=native -fomit-frame-pointer
|
||||
# CFLAGS = -Wall -Wextra -Werror -Wno-unused-parameter
|
||||
# CFLAGS += -Wno-unused-variable -Wno-unused-function
|
||||
# CFLAGS += -Wno-unused-but-set-variable -Wno-unused-value -Wno-unused-label
|
||||
# CFLAGS += -Wno-unused-result -Wno-unused-const-variable
|
||||
|
||||
# ifeq ($(RELEASE), 1)
|
||||
# CFLAGS += -fno-exceptions -fno-asynchronous-unwind-tables -fno-ident
|
||||
# CFLAGS += -fno-unwind-tables -fno-stack-protector -fno-plt -fno-pic
|
||||
# CFLAGS += -O3 -std=c99 -march=native -mtune=native -fomit-frame-pointer
|
||||
# endif
|
||||
|
||||
# Include debug flags
|
||||
CFLAGS += -g -O0 -std=c99 -march=native -mtune=native
|
||||
|
||||
|
||||
C_SOURCES = $(wildcard *.c)
|
||||
C_HEADERS = $(wildcard *.h)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue