From d783cc81db44cf09c635d5a4155fbba7fe64eae3 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 22 May 2014 21:36:04 +0200 Subject: library linking and some of gamma-linux-drm MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Makefile') 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. -- cgit v1.2.3-70-g09d2