Make: Compile also *.cpp files
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
This commit is contained in:
parent
b45e10a391
commit
9f0651caf9
1 changed files with 4 additions and 2 deletions
6
Makefile
6
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))
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue