summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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))