⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile

📁 mpc8xx driver(led), based on tqm8
💻
字号:
######################################################################### (C) Copyright 2000# Jean-Jacques Germond, Fr閐閞ic Soulier, Christian Batt; Alcatel# C/O jjg@sxb.bsf.alcatel.fr## All rights reserved.## This code is free software; you can redistribute it and/or# modify it under the terms of the GNU *Library* General Public License# as published by the Free Software Foundation; either version 2 of# the License, or (at your option) any later version.## This code is distributed in the hope that it will be useful, but# WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU# *Library* General Public License for more details.## You should have received a copy of the GNU *Library* General Public# License along with this program (see file COPYING.LIB); if not,# write to the Free Software Foundation, Inc., 675 Mass Ave,# Cambridge, MA 02139, USA.## Makefile to manage the "trivial interrupt driver" project.#  (see AR (Allesandro Rubini pg: 19)######################################################################### Makefile to manage the "trivial module" project.#  (see AR (Allesandro Rubini pg: 19)# Where my cross dev environment is rootedROOT_DIR=/LinuxPPCCROSS_DEV_DIR=$(ROOT_DIR)/CDK# This macro if for overiding default kernel include files from the# Cross development tree when we are working with a specifically# configured kernel.SRCLINUXINCL = $(ROOT_DIR)/usr/src/linux/includeINCLDIR = $(CROSS_DEV_DIR)/usr/include# Add in path to std unix tools (make, rm, and makedepend in X11)PATH=$(CROSS_DEV_DIR)/bin:$(CROSS_DEV_DIR)/lib:/bin:/usr/local/bin:/usr/X11R6/binexport PATHCC	= $(CROSS_DEV_DIR)/bin/powerpc-linux-gccLD	= $(CROSS_DEV_DIR)/bin/powerpc-linux-ldDBGFLAGS= -gOPTFLAGS= -OCFLAGS	= -DCONFIG_8xx -D__KERNEL__ -DMODULE -DMODVERSIONS \	-D__powerpc__ -mcpu=860 \	-Wall -Wstrict-prototypes -Wno-uninitialized \	-fomit-frame-pointer \	-fsigned-char -msoft-float -fno-builtin -ffixed-r2 \	-pipe -mmultiple -mstring \	-I$(SRCLINUXINCL) \	-I$(SRCLINUXINCL)/../arch/ppc/8xx_io \	-include $(SRCLINUXINCL)/linux/modversions.h \	$(OPTFLAGS) $(DBG_FLAGS) -I$(INCLDIR)# Extract version number from headersVER = $(shell awk -F\" '/REL/ {print $$2}' $(SRCLINUXINCL)/linux/version.h)MODULE_NAME = trv.o.SUFFIXES:.SUFFIXES: .o .c.c.o:	$(CC) $(CFLAGS) -c $<SRCS = trv_main.c trv_copy.c trv_proc.cOBJS = $(SRCS:.c=.o)all module: $(OBJS)	@echo "MAKING MODULE: $(MODULE_NAME) FOR KERNEL: $(VER)"	$(LD) -r $(OBJS) -o $(MODULE_NAME)depend dep:	makedepend -- $(CFLAGS) -- $(SRCS) $(DBG_SRCS)# trv test from a Unix processutst: trv_dbg3.c	$(CC) -g trv_dbg3.c -o utstclean:	/bin/rm -f *.o core *~ $(MODULE_NAME) trv XX* TAGS utstxxref:	doXXREF . ../scull $(SRCLINUXINCL)/linux $(SRCLINUXINCL)/asm# DO NOT DELETE

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -