Commits

Sven Eckelmann  committed 22a215b

Use separate CXXFLAGS environment variable when calling CXX

  • Participants
  • Parent commits 6b7fa2c

Comments (0)

Files changed (1)

File projects/unix/Makefile

 CFLAGS += -MD
 -include $(OBJECTS:.o=.d)
 
+CXXFLAGS += $(CFLAGS)
+
 # build rules
 $(TARGET): $(OBJECTS)
 	$(CXX) $(SHARED) $^ $(LDFLAGS) -o $@
 	$(CC) -o $@ $(CFLAGS) -c $<
 
 $(OBJDIR)/%.o: $(SRCDIR)/%.cpp
-	$(CXX) -o $@ $(CFLAGS) -c $<
-
-
+	$(CXX) -o $@ $(CXXFLAGS) -c $<