summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 2 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 8472075..8e71154 100644
--- a/Makefile
+++ b/Makefile
@@ -41,8 +41,7 @@ OBJS += \
src/MTS_IO_SerialConnection.o
CC := $(CXX)
-#-Werror
-CXXFLAGS += -Wall -std=c++0x -fmessage-length=0 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden
+CXXFLAGS += -Wall -Werror -std=c++0x -fmessage-length=0 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden
CPPFLAGS += -I=/usr/include/jsoncpp -Iinclude
LDFLAGS += -s -shared -Wl,-soname,$(APPNAME).so.0
@@ -54,7 +53,7 @@ $(APPNAME).a: $(OBJS)
$(AR) -rs $@ $?
$(SONAME): $(OBJS)
- $(CC) $(LDFLAGS) -o $@ $? $(LDLIBS)
+ $(CC) $(LDFLAGS) -o $@ $+ $(LDLIBS)
# Handle header dependencies
DEPS = $(OBJS:.o=.d)