pinosaur
/
smdp.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ecb0976
)
Respect CFLAGS, LDFLAGS and CPPFLAGS.
author
Dima Krasner
<dima@dimakrasner.com>
Thu, 20 Nov 2014 19:04:42 +0000
(21:04 +0200)
committer
Dima Krasner
<dima@dimakrasner.com>
Thu, 20 Nov 2014 19:04:42 +0000
(21:04 +0200)
Makefile
patch
|
blob
|
history
src/Makefile
patch
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index
9abc3c0
..
c1f8658
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-27,7
+27,7
@@
DESTDIR =
PREFIX = /usr/local
CURSES = ncursesw
-LDFLAGS = -s
+LDFLAGS
?
= -s
ifeq (Windows_NT,$(OS))
ifeq (,$(findstring CYGWIN,$(UNAME_S)))
diff --git
a/src/Makefile
b/src/Makefile
index
ac4888e
..
333ed8d
100644
(file)
--- a/
src/Makefile
+++ b/
src/Makefile
@@
-22,8
+22,9
@@
UNAME_S := $(shell uname -s 2>/dev/null || echo not)
SOURCES = $(wildcard *.c)
OBJECTS = $(SOURCES:.c=.o)
-CFLAGS = -O3 -Wall
-CPPFLAGS = -I../include
+CFLAGS ?= -O3
+CFLAGS += -Wall
+CPPFLAGS += -I../include
ifeq ($(DEBUG),1)
CFLAGS := -O0 -Wall -g