1 Star 0 Fork 0

almpazel/fbtest

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Makefile-cross 1.07 KB
一键复制 编辑 原始数据 按行查看 历史
Scott Ellis 提交于 2014-04-27 12:26 . Add support for args
# Makefile for cross-compiling the fbtest program
#
# Export an OETMP environment variable that points to the
# same location as TMPDIR in build/conf/local.conf
#
### cross-build defs ###
ifeq ($(strip $(OETMP)),)
# make things fail if OETMP not defined by pointing OETMP
# at an invalid location
OETMP=/tmp
endif
TOOLDIR = $(OETMP)/sysroots/`uname -m`-linux/usr/bin
STAGEDIR = ${OETMP}/sysroots/overo/usr
# soft-floating point
#CC = ${TOOLDIR}/armv7a-vfp-neon-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc
# hard-floating point
CC = ${TOOLDIR}/cortexa8hf-vfp-neon-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc
CFLAGS = -O2 -Wall
LIBDIR = $(STAGEDIR)/lib
INCDIR = $(STAGEDIR)/include
### end cross-build defs ###
OBJS = main.o
TARGET = fbtest
$(TARGET): $(OBJS)
$(CC) $(CFLAGS) -L $(LIBDIR) $(OBJS) -o $(TARGET)
%.o: %.c
$(CC) $(CFLAGS) -I $(INCDIR) -c -o $@ $<
# purely for my convenience ;-)
install: $(TARGET)
scp -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no $(TARGET) [email protected]:/home/root
.PHONY: clean
clean:
rm -f $(OBJS) $(TARGET)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/almpazel/fbtest.git
[email protected]:almpazel/fbtest.git
almpazel
fbtest
fbtest
master

搜索帮助