diff options
author | Andrew Duggan <aduggan@synaptics.com> | 2014-07-14 12:29:43 -0700 |
---|---|---|
committer | Andrew Duggan <aduggan@synaptics.com> | 2014-07-14 12:29:43 -0700 |
commit | c7d1643c4afb52575dba505866c3a601ae1d1092 (patch) | |
tree | 37484eaf5b2a272cacdc8d92a6140e81f5c8dd42 | |
parent | 6e63953362c4626342c1ee4467e39b68a05bd9f1 (diff) | |
download | platform_external_rmi4utils-c7d1643c4afb52575dba505866c3a601ae1d1092.tar.gz platform_external_rmi4utils-c7d1643c4afb52575dba505866c3a601ae1d1092.tar.bz2 platform_external_rmi4utils-c7d1643c4afb52575dba505866c3a601ae1d1092.zip |
Make -static build time configurable
-rw-r--r-- | rmi4update/Makefile | 6 | ||||
-rw-r--r-- | rmihidtool/Makefile | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/rmi4update/Makefile b/rmi4update/Makefile index 0cc3587..8770c20 100644 --- a/rmi4update/Makefile +++ b/rmi4update/Makefile @@ -1,13 +1,17 @@ CXX = g++ CPPFLAGS = -I../include -I./include -I../rmidevice CXXFLAGS = -g -Wall -LDFLAGS = -static -L. +LDFLAGS = -L. LIBS = -lrmidevice LIBDIR = ../rmidevice LIBNAME = librmidevice.a RMI4UPDATESRC = main.cpp firmware_image.cpp rmi4update.cpp updateutil.cpp RMI4UPDATEOBJ = $(RMI4UPDATESRC:.cpp=.o) PROGNAME = rmi4update +STATIC_BUILD ?= y +ifeq ($(STATIC_BUILD),y) +LDFLAGS += -static +endif all: $(PROGNAME) diff --git a/rmihidtool/Makefile b/rmihidtool/Makefile index 41b94f3..7d46900 100644 --- a/rmihidtool/Makefile +++ b/rmihidtool/Makefile @@ -1,13 +1,17 @@ CXX = g++ CPPFLAGS = -I../include -I./include -I../rmidevice CXXFLAGS = -g -Wall -LDFLAGS = -static -L. +LDFLAGS = -L. LIBS = -lrmidevice LIBDIR = ../rmidevice LIBNAME = librmidevice.a RMIHIDTOOLSRC = main.cpp RMIHIDTOOLOBJ = $(RMIHIDTOOLSRC:.cpp=.o) PROGNAME = rmihidtool +STATIC_BUILD ?= y +ifeq ($(STATIC_BUILD),y) +LDFLAGS += -static +endif all: $(PROGNAME) |