Browse Source

Merge pull request #15 from AMDmi3/makefile-fix

Make Makefile more friendly to packaging
Georgi Chorbadzhiyski 5 years ago
parent
commit
1f646be774
No account linked to committer's email address
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      Makefile

+ 3
- 2
Makefile View File

@@ -1,9 +1,10 @@
1
-CC = $(CROSS)$(TARGET)gcc
1
+CC? = $(CROSS)$(TARGET)gcc
2 2
 STRIP = $(CROSS)$(TARGET)strip
3 3
 BUILD_ID = $(shell date +%F_%R)
4 4
 VERSION="v1.1"
5 5
 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)\"
7 8
 ifneq "$(GIT_VER)" ""
8 9
 CFLAGS += -DGIT_VER=\"$(GIT_VER)\"
9 10
 else

Loading…
Cancel
Save