summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorSamuel Lidén Borell <samuel@slbdata.se>2009-10-30 16:43:04 +0100
committerSamuel Lidén Borell <samuel@slbdata.se>2010-01-02 22:30:14 +0100
commit715d659d9e0cc9ebb85087b577d03e2f2d2af11a (patch)
tree67f23728b579493738f87a7807579fb18cac09f5 /plugin
parentc7462234ada697295bcebe442f0fed0bcd2c9766 (diff)
downloadfribid-715d659d9e0cc9ebb85087b577d03e2f2d2af11a.tar.gz
fribid-715d659d9e0cc9ebb85087b577d03e2f2d2af11a.tar.bz2
fribid-715d659d9e0cc9ebb85087b577d03e2f2d2af11a.zip
Respect CFLAGS and LDFLAGS in the makefiles
Diffstat (limited to 'plugin')
-rw-r--r--plugin/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugin/Makefile b/plugin/Makefile
index 95670a3..f829a7b 100644
--- a/plugin/Makefile
+++ b/plugin/Makefile
@@ -20,9 +20,10 @@
# THE SOFTWARE.
#
-COMMONCFLAGS=-O2 -g -Wall -Wextra -std=c99 -pedantic -Wno-unused-parameter
+CFLAGS ?= -O2 -g
+COMMONCFLAGS=$(CFLAGS) -Wall -Wextra -std=c99 -pedantic -Wno-unused-parameter
CCFLAGS=$(COMMONCFLAGS) -I../npapi -fPIC -fvisibility=hidden `pkg-config --cflags glib-2.0` -DG_DISABLE_DEPRECATED=1
-LINKFLAGS=-Wl,-z,defs,-soname,libplugins.so
+LINKFLAGS=$(CFLAGS) $(LDFLAGS) -Wl,-z,defs,-soname,libplugins.so
LIBS=-lc `pkg-config --libs glib-2.0`
# Files to be installed