Browse Source
Merge pull request #8 from AMDmi3/patch-2
Make Makefile more friendly to packaging
Georgi Chorbadzhiyski
6 years ago
No account linked to committer's email address
1 changed files with
3 additions and
3 deletions
-
Makefile
|
@@ -1,11 +1,11 @@
|
1
|
|
-CC = cc
|
|
1
|
+CC? = cc
|
2
|
2
|
LINK = ld -o
|
3
|
3
|
CROSS := $(TARGET)
|
4
|
4
|
MKDEP = $(CROSS)$(CC) -M -o $*.d $<
|
5
|
5
|
|
6
|
6
|
LIBRARY_LINK_OPTS = -L. -r
|
7
|
|
-CFLAGS = -O2 -ggdb -std=c99 -D_GNU_SOURCE
|
8
|
|
-CFLAGS += -Wall -Wextra -Wshadow -Wformat-security -Wstrict-prototypes
|
|
7
|
+CFLAGS ?= -O2 -ggdb
|
|
8
|
+CFLAGS += -std=c99 -D_GNU_SOURCE -Wall -Wextra -Wshadow -Wformat-security -Wstrict-prototypes
|
9
|
9
|
RM = /bin/rm -f
|
10
|
10
|
Q=@
|
11
|
11
|
|