diff options
author | peter <peter@FreeBSD.org> | 2000-05-01 18:06:49 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2000-05-01 18:06:49 +0000 |
commit | 7dcf1792a6e9cd2efde7f54700a5cdef50fbca95 (patch) | |
tree | 4e99afb5793766ed2e5e29aee504236000c50bd8 /share/mk | |
parent | 24253dd4511e9cb8054d9b5beb352dfbc50f4e6a (diff) | |
download | FreeBSD-src-7dcf1792a6e9cd2efde7f54700a5cdef50fbca95.zip FreeBSD-src-7dcf1792a6e9cd2efde7f54700a5cdef50fbca95.tar.gz |
Remove KMODDEPS support. All our existing dependencies are specified
via the MODULE_VERSION() and MODULE_DEPEND() macros that both the loader
and kld system know how to deal with. The old DT_NEEDED tag is still
supported by the loader (and will remain supported for a while) - but the
kernel side presently doesn't know how to deal with DT_NEEDED.
Diffstat (limited to 'share/mk')
-rw-r--r-- | share/mk/bsd.kmod.mk | 24 |
1 files changed, 6 insertions, 18 deletions
diff --git a/share/mk/bsd.kmod.mk b/share/mk/bsd.kmod.mk index 11269c8..589590f 100644 --- a/share/mk/bsd.kmod.mk +++ b/share/mk/bsd.kmod.mk @@ -39,8 +39,6 @@ # # SRCS List of source files # -# KMODDEPS List of modules which this one is dependant on -# # SUBDIR A list of subdirectories that should be built as well. # Each of the targets will execute the same target in the # subdirectories. @@ -131,28 +129,18 @@ OBJS+= ${SRCS:N*.h:R:S/$/.o/g} PROG= ${KMOD}.ko .endif -${PROG}: ${KMOD}.kld ${KMODDEPS} - ${LD} -Bshareable ${LDFLAGS} -o ${.TARGET} ${KMOD}.kld ${KMODDEPS} - -${KMOD}.kld: ${OBJS} +${PROG}: ${KMOD}.kld .if ${OBJFORMAT} == elf - gensetdefs ${OBJS} + gensetdefs ${KMOD}.kld ${CC} ${CFLAGS} -c setdef0.c ${CC} ${CFLAGS} -c setdef1.c - ${LD} ${LDFLAGS} -r -o ${.TARGET} setdef0.o ${OBJS} setdef1.o + ${LD} -Bshareable ${LDFLAGS} -o ${.TARGET} setdef0.o ${KMOD}.kld setdef1.o .else - ${LD} ${LDFLAGS} -r -o ${.TARGET} ${OBJS} + ${LD} -Bshareable ${LDFLAGS} -o ${.TARGET} ${KMOD}.kld .endif -.if defined(KMODDEPS) -.for dep in ${KMODDEPS} -CLEANFILES+= ${dep} __${dep}_hack_dep.c - -${dep}: - touch __${dep}_hack_dep.c - ${CC} -shared ${CFLAGS} -o ${dep} __${dep}_hack_dep.c -.endfor -.endif +${KMOD}.kld: ${OBJS} + ${LD} ${LDFLAGS} -r -o ${.TARGET} ${OBJS} .if !defined(NOMAN) .include <bsd.man.mk> |