aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-05-22 21:36:04 +0200
committerMattias Andrée <maandree@operamail.com>2014-05-22 21:36:21 +0200
commitd783cc81db44cf09c635d5a4155fbba7fe64eae3 (patch)
tree78fe8ec2ac4c79050f61050307eda77c04fb1725 /Makefile
parentm (diff)
downloadlibgamma-d783cc81db44cf09c635d5a4155fbba7fe64eae3.tar.gz
libgamma-d783cc81db44cf09c635d5a4155fbba7fe64eae3.tar.bz2
libgamma-d783cc81db44cf09c635d5a4155fbba7fe64eae3.tar.xz
library linking and some of gamma-linux-drm
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index ae8db5f..540b219 100644
--- a/Makefile
+++ b/Makefile
@@ -60,6 +60,10 @@ C_FLAGS = $(OPTIMISE) $(WARN) -std=$(STD) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) \
-fstrict-overflow -funsafe-loop-optimizations -fno-builtin \
$(DEBUG_FLAGS) $(DEFINITIONS) -DLIBGAMMA_CONFIG_H
+# Library linking flags for the linker.
+LIBS_LD =
+# Library linking flags for the C compiler.
+LIBS_C =
# Object files for the library.
LIBOBJ = libgamma-facade libgamma-method gamma-helper
@@ -78,11 +82,11 @@ all: bin/libgamma.so
bin/libgamma.so: $(foreach O,$(LIBOBJ),obj/$(O).o)
mkdir -p $(shell dirname $@)
- $(CC) $(C_FLAGS) -shared -o $@ $^
+ $(CC) $(C_FLAGS) $(LIBS_LD) -shared -o $@ $^
obj/%.o: src/%.c src/*.h
mkdir -p $(shell dirname $@)
- $(CC) $(C_FLAGS) -fPIC -c -o $@ $<
+ $(CC) $(C_FLAGS) $(LIBS_C) -fPIC -c -o $@ $<
# Clean rules.