Help me to parse this ldd2 Makefile-general Linux technology-Linux technology and application information. The following is a detailed description. [I = s] This post was last edited by forch at, January 26 ,.
The Makefile source code of ldd2 misc-modules is as follows:
# Comment/uncomment the following line to enable/disable debugging
# DEBUG = y
# This Makefile has been simplified as much as possible, by putting all
# Generic material, independent of this specific directory,
# ../Rules. make. Read that file for details
TOPDIR: = $ (shell cd...; pwd)
Include $ (TOPDIR)/Rules. make
# Add your debugging flag (or not) to CFLAGS
Ifeq ($ (DEBUG), y)
DEBFLAGS =-O-g-DJIT_DEBUG-DJIQ_DEBUG-DALL_DEBUG
Else
DEBFLAGS =-O2
Endif
OBJS = faulty. o sleepy. o silly. o slave. o slaveD. o slaveH. o import. o \
Master. o export. o hello. o \
Jit. o jiq. o inter. o \
Kdatasize. o kdataalign. o
SRC = $ (OBJS:. o:. c)
# If compiling a partial list, use a different list of objects
Ifdef LDD_PARTIAL
OBJS = hello. o faulty. o sleepy. o jit. o jiq. o kdatasize. o kdataalign. o
Endif
All: $ (OBJS)
Clean:
Rm-f *. o *. ver *~
# Don't use-Wall here: the code is silly by design
Hello. o: hello. c
$ (CC)-d1_kernel _-I $ (INCLUDEDIR)-c $ ^-o $ @
# FIXME: the 2.4.0 below is plain wrong :)
Ifdef CONFIG_MODVERSIONS
Export. o import. o: export. ver
Endif
Prompt for loading driver insmod hello. o
Hello. o: kernel-module version mismatch
Hello. o was compiled for kernel version 2.4.20
While this kernel is version 2.4.20-8.
If you want to check whether the version can be loaded successfully, how can this problem be changed?
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.