Skip to content

Commit 86fee94

Browse files
committed
Make Makefile more friendly to packaging
1 parent 7732bfb commit 86fee94

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
CC = $(CROSS)$(TARGET)gcc
1+
CC? = $(CROSS)$(TARGET)gcc
22
STRIP = $(CROSS)$(TARGET)strip
33
BUILD_ID = $(shell date +%F_%R)
44
VERSION="v1.1"
55
GIT_VER = $(shell git describe --tags --dirty --always 2>/dev/null)
6-
CFLAGS = -ggdb -Wall -Wextra -Wshadow -Wformat-security -Wno-strict-aliasing -O2 -D_GNU_SOURCE -DBUILD_ID=\"$(BUILD_ID)\"
6+
CFLAGS ?= -ggdb -O2
7+
CFLAGS += -Wall -Wextra -Wshadow -Wformat-security -Wno-strict-aliasing -D_GNU_SOURCE -DBUILD_ID=\"$(BUILD_ID)\"
78
ifneq "$(GIT_VER)" ""
89
CFLAGS += -DGIT_VER=\"$(GIT_VER)\"
910
else

0 commit comments

Comments
 (0)