[fix] add CXXFLAGS for arm-linux

This commit is contained in:
wuhanstudio 2021-10-04 23:03:48 +01:00
parent 027fbdd765
commit f5278b6ae4
4 changed files with 8 additions and 4 deletions

View File

@ -26,6 +26,7 @@ LDIR= -L ../../../lib
LIBS= -lm
CFLAGS= $(IDIR) -W -Wall
CXXFLAGS= -D __ARM_LINUX__
OBJ+=u8g2_4wire_hw_spi.cpp.o\
../../../port/u8g2port.o\
@ -159,7 +160,7 @@ u8g2_4wire_hw_spi.cpp.o: u8g2_4wire_hw_spi.cpp
$(CXX) -c -o $@ $< $(CFLAGS) $(LDIR) $(LIBS)
$(OBJDIR)/%.cpp.o: $(CXXSRCDIR)/%.cpp
$(CXX) -c -o $@ $< $(CFLAGS) $(LDIR) $(LIBS)
$(CXX) -c -o $@ $< $(CFLAGS) $(CXXFLAGS) $(LDIR) $(LIBS)
$(OBJDIR)/%.o: $(CSRCDIR)/%.c
$(CC) -c -o $@ $< $(CFLAGS) $(LDIR) $(LIBS)

View File

@ -26,6 +26,7 @@ LDIR= -L ../../../lib
LIBS= -lm
CFLAGS= $(IDIR) -W -Wall
CXXFLAGS= -D __ARM_LINUX__
OBJ+=u8g2_4wire_sw_spi.cpp.o\
../../../port/u8g2port.o\
@ -159,7 +160,7 @@ u8g2_4wire_sw_spi.cpp.o: u8g2_4wire_sw_spi.cpp
$(CXX) -c -o $@ $< $(CFLAGS) $(LDIR) $(LIBS)
$(OBJDIR)/%.cpp.o: $(CXXSRCDIR)/%.cpp
$(CXX) -c -o $@ $< $(CFLAGS) $(LDIR) $(LIBS)
$(CXX) -c -o $@ $< $(CFLAGS) $(CXXFLAGS) $(LDIR) $(LIBS)
$(OBJDIR)/%.o: $(CSRCDIR)/%.c
$(CC) -c -o $@ $< $(CFLAGS) $(LDIR) $(LIBS)

View File

@ -26,6 +26,7 @@ LDIR= -L ../../../lib
LIBS= -lm
CFLAGS= $(IDIR) -W -Wall
CXXFLAGS= -D __ARM_LINUX__
OBJ+=u8g2_hw_i2c.cpp.o\
../../../port/u8g2port.o\
@ -159,7 +160,7 @@ u8g2_hw_i2c.cpp.o: u8g2_hw_i2c.cpp
$(CXX) -c -o $@ $< $(CFLAGS) $(LDIR) $(LIBS)
$(OBJDIR)/%.cpp.o: $(CXXSRCDIR)/%.cpp
$(CXX) -c -o $@ $< $(CFLAGS) $(LDIR) $(LIBS)
$(CXX) -c -o $@ $< $(CFLAGS) $(CXXFLAGS) $(LDIR) $(LIBS)
$(OBJDIR)/%.o: $(CSRCDIR)/%.c
$(CC) -c -o $@ $< $(CFLAGS) $(LDIR) $(LIBS)

View File

@ -26,6 +26,7 @@ LDIR= -L ../../../lib
LIBS= -lm
CFLAGS= $(IDIR) -W -Wall
CXXFLAGS= -D __ARM_LINUX__
OBJ+=u8g2_sw_i2c.cpp.o\
../../../port/u8g2port.o\
@ -159,7 +160,7 @@ u8g2_sw_i2c.cpp.o: u8g2_sw_i2c.cpp
$(CXX) -c -o $@ $< $(CFLAGS) $(LDIR) $(LIBS)
$(OBJDIR)/%.cpp.o: $(CXXSRCDIR)/%.cpp
$(CXX) -c -o $@ $< $(CFLAGS) $(LDIR) $(LIBS)
$(CXX) -c -o $@ $< $(CFLAGS) $(CXXFLAGS) $(LDIR) $(LIBS)
$(OBJDIR)/%.o: $(CSRCDIR)/%.c
$(CC) -c -o $@ $< $(CFLAGS) $(LDIR) $(LIBS)