aboutsummaryrefslogtreecommitdiff
path: root/rmidevice
diff options
context:
space:
mode:
authorAndrew Duggan <aduggan@synaptics.com>2014-07-14 12:15:05 -0700
committerAndrew Duggan <aduggan@synaptics.com>2014-07-14 12:15:05 -0700
commit6e63953362c4626342c1ee4467e39b68a05bd9f1 (patch)
tree30793262b62920dfa79df05e60392efd76cffdf4 /rmidevice
parent9409ec7a14c654a496d73bd973bbd273e684e03c (diff)
downloadrmi4utils-6e63953362c4626342c1ee4467e39b68a05bd9f1.tar.gz
Make makefile linking rules more consistent remove the LD indirection.
Diffstat (limited to 'rmidevice')
-rw-r--r--rmidevice/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/rmidevice/Makefile b/rmidevice/Makefile
index 7ab2a40..e739392 100644
--- a/rmidevice/Makefile
+++ b/rmidevice/Makefile
@@ -1,5 +1,4 @@
CXX = g++
-LD = $(CXX)
AR = ar
RANLIB = ranlib
CPPFLAGS = -I../include -I./include
@@ -8,11 +7,12 @@ RMIDEVICESRC = rmifunction.cpp rmidevice.cpp hiddevice.cpp
RMIDEVICEOBJ = $(RMIDEVICESRC:.cpp=.o)
LIBNAME = librmidevice.so
STATIC_LIBNAME = librmidevice.a
+LDFLAGS = -shared -Wl,-soname,$(LIBNAME)
all: $(LIBNAME) $(STATIC_LIBNAME)
$(LIBNAME): $(RMIDEVICEOBJ)
- $(CXX) -shared -Wl,-soname,$(LIBNAME) $^ -o $@
+ $(CXX) $(CXXFLAGS) $(LDFLAGS) $^ -o $@
$(STATIC_LIBNAME): $(RMIDEVICEOBJ)
$(AR) crv $(STATIC_LIBNAME) $^