做到一个项目,需要编译arm到c++代码,因为需要用到其他到c++库,不知到makefile怎么写。请大家赐教。
arm-linux-gcc到makefile如下,但是我不知道c++的链接库在哪里?具体需要怎么写?
.SUFFIXES : .x .o .c .s
ROOT = /usr/local/arm_linux_4.2
INC = $(ROOT)/arm-linux/include
LIB = $(ROOT)/lib/gcc/arm-linux/4.2.1
LIB1 = $(ROOT)/arm-linux/lib
CC = arm-linux-gcc -O2 -I$(INC)
WEC_LDFLAGS = -L$(LIB) -L$(LIB1)
STRIP = arm-linux-strip
TARGET = vin_demo
SRCS = vin_demo.c JpegEnc.c dsc.c V4L.c exif.c
#LIBS = -lgcc
LIBS =
all:
$(CC) $(WEC_LDFLAGS) $(SRCS) -o $(TARGET) $(LIBS) -static
$(STRIP) $(TARGET)
clean:
rm -f *.o
rm -f *.x
rm -f *.flat
rm -f *.map
rm -f temp
rm -f *.img
rm -f $(TARGET)
rm -f *.gdb
rm -f *.bak |