summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorHarsh Sharma <harsh.sharma@multitech.com>2022-03-03 14:44:44 -0600
committerJohn Klug <john.klug@multitech.com>2022-03-03 14:53:34 -0600
commit54f86b83b60192f8b33dad90b33b47246165ac51 (patch)
treec7183f8ff02d3090989530740d36164db3630620 /Makefile
parent964e90992d6ac73cf287722a3dc136dda86c3ac2 (diff)
downloadmts-io-sysfs-54f86b83b60192f8b33dad90b33b47246165ac51.tar.gz
mts-io-sysfs-54f86b83b60192f8b33dad90b33b47246165ac51.tar.bz2
mts-io-sysfs-54f86b83b60192f8b33dad90b33b47246165ac51.zip
LoRa updates with MTAC-003
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 6 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index b0c1996..16aa846 100644
--- a/Makefile
+++ b/Makefile
@@ -33,11 +33,11 @@ SOURCEDIR=src
CFLAGS += -Werror -Wno-unused-function
-CXXFLAGS += -std=c++11 -Wno-unused-function
+CXXFLAGS += -std=c++14 -Wno-unused-function
-LIBS := -lmts -lrt
+LIBS := -lmts -lrt -lssl -lcrypto
-INC=-Iinclude -Iinclude/Utility -Iinclude/AccessoryCards -Iinclude/Device
+INC=-Iinclude -Iinclude/Utility -Iinclude/AccessoryCards -Iinclude/Device -Iinclude/Fpga
INCLUDES = $(wildcard include/*.h)
SOURCES = $(wildcard $(SOURCEDIR)/**/*.cpp)
SOURCES += $(SOURCEDIR)/Version.cpp
@@ -46,7 +46,7 @@ OBJS = $(patsubst $(SOURCEDIR)/%.c,$(BUILDDIR)/%.o,$(OBJS1))
CPP_DEPPS = $(patsubst $(SOURCEDIR)/%.cpp,$(BUILDDIR)/**/%.d,$(SOURCES))
CPP_DEPPS += $(BUILDDIR)/*.o $(BUILDDIR)/*.d $(BUILDDIR)/**/*.o $(BUILDDIR)/**/*.d
JS_OBJS = $(BUILDDIR)/Version.o
-OUT_DIRS=build/AccessoryCards build/Device
+OUT_DIRS=build/AccessoryCards build/Device build/Fpga
MKDIR_P = mkdir -p
ifndef MTS_CHECK
@@ -85,7 +85,7 @@ mts-io-sysfs: $(OBJS) $(BUILDDIR)/MtsIoSysfs.o
$(BUILDDIR)/%.o: $(SOURCEDIR)/%.cpp
@echo 'Building file: $<'
- $(CXX) $(CFLAGS) $(INC) -Wall -std=c++11 -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o "$@" "$<"
+ $(CXX) $(CFLAGS) $(INC) -Wall -std=c++14 -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o "$@" "$<"
@echo 'Finished building: $<'
@echo ' '
@@ -103,13 +103,10 @@ $(SOURCEDIR)/Version.cpp:
$(BUILDDIR)/MtsIo.o: $(SOURCEDIR)/MtsIo.cpp
@echo 'Building file: $<'
- $(CXX) $(CFLAGS) $(INC) -Wall -std=c++11 -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o "$@" "$<" -DENABLE_MTS_CHECK=${MTS_CHECK}
+ $(CXX) $(CFLAGS) $(INC) -Wall -std=c++14 -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o "$@" "$<" -DENABLE_MTS_CHECK=${MTS_CHECK}
@echo 'Finished building: $<'
@echo ' '
-install:
- mkdir -p $(DESTDIR)/opt/lora
-
strip:
$(STRIP) -S --strip-unneeded --remove-section=.note.gnu.gold-version --remove-section=.comment --remove-section=.note --remove-section=.note.gnu.build-id --remove-section=.note.ABI-tag $(BUILDDIR)/mts-io-sysfs