summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmir Hammad <amir.hammad@hotmail.com>2015-08-23 15:24:27 +0200
committerAmir Hammad <amir.hammad@hotmail.com>2015-08-26 07:46:00 +0200
commit9f0651caf96babe314cd73ccbbe6aee2aa0bfe36 (patch)
tree2356ad8c1b661d90c65b8ef367184869a1a4dab6
parentb45e10a391cd4079d50c184db95ce061c1405eda (diff)
downloadsecure-hid-9f0651caf96babe314cd73ccbbe6aee2aa0bfe36.tar.gz
secure-hid-9f0651caf96babe314cd73ccbbe6aee2aa0bfe36.tar.bz2
secure-hid-9f0651caf96babe314cd73ccbbe6aee2aa0bfe36.zip
Make: Compile also *.cpp files
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 9fe1c80..1052d3a 100644
--- a/Makefile
+++ b/Makefile
@@ -92,8 +92,10 @@ STYLECHECKFILES := $(shell find . -name '*.[ch]')
LDSCRIPT ?= $(BINARY).ld
-SRCS = $(sort $(notdir $(wildcard $(SRCDIR)/*.c)))
-OBJSDEMO = $(patsubst %.c, build/%.o ,$(SRCS))
+SRCS := $(sort $(notdir $(wildcard $(SRCDIR)/*.c)))
+OBJSDEMO := $(patsubst %.c, build/%.o ,$(SRCS))
+SRCS := $(sort $(notdir $(wildcard $(SRCDIR)/*.cpp)))
+OBJSDEMO += $(patsubst %.cpp, build/%.o ,$(SRCS))
OBJS = $(filter-out $(BINARY).o, $(OBJSDEMO))