diff options
author | Amir Hammad <amir.hammad@hotmail.com> | 2015-08-23 15:24:27 +0200 |
---|---|---|
committer | Amir Hammad <amir.hammad@hotmail.com> | 2015-08-26 07:46:00 +0200 |
commit | 9f0651caf96babe314cd73ccbbe6aee2aa0bfe36 (patch) | |
tree | 2356ad8c1b661d90c65b8ef367184869a1a4dab6 | |
parent | b45e10a391cd4079d50c184db95ce061c1405eda (diff) | |
download | secure-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-- | Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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)) |