Make optimization level configurable via CFLAGS env variable

This commit is contained in:
LiviaMedeiros 2024-09-06 21:57:12 +08:00
parent 9e0bf35daf
commit 664e29a7fe
No known key found for this signature in database
GPG Key ID: 691C0F6AF4A67582
4 changed files with 8 additions and 4 deletions

View File

@ -1,5 +1,6 @@
CC ?= gcc CC ?= gcc
CFLAGS += -std=gnu99 -O3 CFLAGS ?= -O3
CFLAGS += -std=gnu99
CFLAGS_BSD = -Wno-address-of-packed-member CFLAGS_BSD = -Wno-address-of-packed-member
CFLAGS_WIN = -static CFLAGS_WIN = -static
LIBS = LIBS =

View File

@ -1,5 +1,6 @@
CC ?= gcc CC ?= gcc
CFLAGS += -std=gnu99 -O3 CFLAGS ?= -O3
CFLAGS += -std=gnu99
CFLAGS_BSD = -Wno-address-of-packed-member CFLAGS_BSD = -Wno-address-of-packed-member
CFLAGS_WIN = -static CFLAGS_WIN = -static
LIBS = -lpthread LIBS = -lpthread

View File

@ -1,5 +1,6 @@
CC ?= gcc CC ?= gcc
CFLAGS += -std=gnu99 -O3 CFLAGS ?= -O3
CFLAGS += -std=gnu99
CFLAGS_BSD = -Wno-address-of-packed-member CFLAGS_BSD = -Wno-address-of-packed-member
CFLAGS_MAC = -mmacosx-version-min=10.8 CFLAGS_MAC = -mmacosx-version-min=10.8
CFLAGS_CYGWIN = -Wno-address-of-packed-member -static CFLAGS_CYGWIN = -Wno-address-of-packed-member -static

View File

@ -1,5 +1,6 @@
CC ?= gcc CC ?= gcc
CFLAGS += -std=gnu99 -O3 CFLAGS ?= -O3
CFLAGS += -std=gnu99
CFLAGS_BSD = -Wno-address-of-packed-member CFLAGS_BSD = -Wno-address-of-packed-member
LIBS = -lz -lpthread LIBS = -lz -lpthread
SRC_FILES = *.c SRC_FILES = *.c