Skip to content

Commit 73b18ed

Browse files
committed
Make Makefile more friendly to packaging
1 parent 56f4728 commit 73b18ed

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
CC = cc
1+
CC? = cc
22
LINK = ld -o
33
CROSS := $(TARGET)
44
MKDEP = $(CROSS)$(CC) -M -o $*.d $<
55

66
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
99
RM = /bin/rm -f
1010
Q=@
1111

0 commit comments

Comments
 (0)