From 9f0651caf96babe314cd73ccbbe6aee2aa0bfe36 Mon Sep 17 00:00:00 2001 From: Amir Hammad Date: Sun, 23 Aug 2015 15:24:27 +0200 Subject: Make: Compile also *.cpp files Signed-off-by: Amir Hammad --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Makefile') 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)) -- cgit