[fix] add CXXFLAGS for arm-linux
This commit is contained in:
parent
027fbdd765
commit
f5278b6ae4
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue