Makefile.txt
资源名称:driver.rar [点击查看]
上传用户:plenty2008
上传日期:2022-08-02
资源大小:11k
文件大小:1k
源码类别:
驱动编程
开发平台:
Unix_Linux
- PWD :=$(shell pwd)
- WARN :=-Wall -Wstrict-prototypes -Wno-trigraphs -Wmissing-prototypes
- INCLUDE :=-I/home/cvtech/jx2410/linux/include -I../include
- TEMP :=-isystem /lib/modules/`uname -r`/build/include
- EXEC :=candrv.o
- #CFLAGS :=-O2 -DMODULE -D__KERNEL__ ${WARN} ${INCLUDE}
- CFLAGS :=-O2 -DMODULE -D__KERNEL__ ${INCLUDE}
- LDFLAGS +=-r
- #LIBS :=./port2.a
- CC :=/usr/local/arm/2.95.3/bin/arm-linux-gcc
- LD :=/usr/local/arm/2.95.3/bin/arm-linux-ld
- OBJS :=${patsubst %.c, %.o, ${wildcard *.c}}
- all :${EXEC}
- $(EXEC) :$(OBJS)
- $(LD) $(LDFLAGS) -o $@ $(OBJS)
- cp $(EXEC) /tftpboot/exercise/
- .PHONY :clean
- clean :
- rm -rf *.o