summaryrefslogtreecommitdiff
path: root/include.mk
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2015-07-06 22:12:44 +0200
committerChristian Pointner <equinox@spreadspace.org>2015-07-06 22:12:44 +0200
commitbcacadf79266b4e6d1081fc73a8e1168500d6556 (patch)
treee8e264fcf620d52700dae092df79c3d6ff5f93d2 /include.mk
parentfirst working fastled example (diff)
CXXFLAGS vs CFLAGS for lib C++ targets
Diffstat (limited to 'include.mk')
-rw-r--r--include.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/include.mk b/include.mk
index dbd1833..e24bbad 100644
--- a/include.mk
+++ b/include.mk
@@ -149,7 +149,7 @@ lib-%.o: $(LIB_DIR)/%.c Makefile
$(CC) $(CFLAGS) -c $< -o $@
lib-%.o: $(LIB_DIR)/%.cpp Makefile
- $(CXX) $(CFLAGS) -c $< -o $@
+ $(CXX) $(CXXFLAGS) -c $< -o $@
$(ELFFILE): $(OBJ) $(CXX_OBJ) $(OBJ_LIB) $(CXX_OBJ_LIB) $(EXTERNAL_LIBS:%=lib%.a)
$(CC) $(LDFLAGS) $(OBJ) $(CXX_OBJ) $(OBJ_LIB) $(CXX_OBJ_LIB) $(EXTERNAL_LIBS:%=-l%) -o $@