Browse Source

Make Makefile more friendly to packaging

Dmitry Marakasov 5 years ago
parent
commit
73b18eda11
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      Makefile

+ 3
- 3
Makefile View File

@@ -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
 

Loading…
Cancel
Save