mirror of
https://github.com/opnsense/src.git
synced 2026-04-28 09:37:08 -04:00
Sync with sys/conf/Makefile.i386 revision 1.184, 1.185 and 1.186.
This commit is contained in:
parent
40f251bc6d
commit
a5b52892d8
1 changed files with 28 additions and 0 deletions
|
|
@ -105,6 +105,8 @@ SYSTEM_DEP+= $S/conf/ldscript.$M
|
|||
|
||||
%CLEAN
|
||||
|
||||
.PHONY: all modules
|
||||
|
||||
all: ${KERNEL}
|
||||
|
||||
.if !defined(DEBUG)
|
||||
|
|
@ -121,6 +123,15 @@ ${FULLKERNEL}: ${SYSTEM_DEP} vers.o
|
|||
${SYSTEM_LD}
|
||||
${SYSTEM_LD_TAIL}
|
||||
|
||||
.if !defined(NO_MODULES) && exists(${.CURDIR}/../../modules)
|
||||
all: modules
|
||||
|
||||
modules:
|
||||
@mkdir -p ${.CURDIR}/modules
|
||||
cd ${.CURDIR}/../../modules && env MAKEOBJDIRPREFIX=${.CURDIR}/modules ${MAKE} obj
|
||||
cd ${.CURDIR}/../../modules && env MAKEOBJDIRPREFIX=${.CURDIR}/modules ${MAKE} all
|
||||
.endif
|
||||
|
||||
.if !exists(.depend)
|
||||
${SYSTEM_OBJS}: vnode_if.h ${BEFORE_DEPEND:M*.h} ${MFILES:T:S/.m$/.h/}
|
||||
.endif
|
||||
|
|
@ -137,6 +148,9 @@ clean:
|
|||
vers.c vnode_if.c vnode_if.h \
|
||||
${MFILES:T:S/.m$/.c/} ${MFILES:T:S/.m$/.h/} \
|
||||
${CLEAN}
|
||||
.if !defined(NO_MODULES) && exists(${.CURDIR}/../../modules)
|
||||
cd ${.CURDIR}/../../modules && env MAKEOBJDIRPREFIX=${.CURDIR}/modules ${MAKE} clean
|
||||
.endif
|
||||
|
||||
#lint: /tmp param.c
|
||||
# @lint -hbxn -DGENERIC -Dvolatile= ${COPTS} \
|
||||
|
|
@ -187,9 +201,17 @@ depend: assym.s param.c vnode_if.h ${BEFORE_DEPEND} \
|
|||
mkdep -a -f .newdep ${ASM_CFLAGS} ${SFILES} ${SYSTEM_SFILES}
|
||||
rm -f .depend
|
||||
mv -f .newdep .depend
|
||||
.if !defined(NO_MODULES) && exists(${.CURDIR}/../../modules)
|
||||
@mkdir -p ${.CURDIR}/modules
|
||||
cd ${.CURDIR}/../../modules && env MAKEOBJDIRPREFIX=${.CURDIR}/modules ${MAKE} obj
|
||||
cd ${.CURDIR}/../../modules && env MAKEOBJDIRPREFIX=${.CURDIR}/modules ${MAKE} depend
|
||||
.endif
|
||||
|
||||
cleandepend:
|
||||
rm -f .depend
|
||||
.if !defined(NO_MODULES) && exists(${.CURDIR}/../../modules)
|
||||
cd ${.CURDIR}/../../modules && env MAKEOBJDIRPREFIX=${.CURDIR}/modules ${MAKE} cleandepend
|
||||
.endif
|
||||
|
||||
links:
|
||||
egrep '#if' ${CFILES} | sed -f $S/conf/defines | \
|
||||
|
|
@ -216,10 +238,16 @@ install install.debug:
|
|||
.endif
|
||||
install -c -m 555 -o root -g wheel -fschg \
|
||||
${KERNEL}${.TARGET:S/install//} ${DESTDIR}/${KERNEL}
|
||||
.if !defined(NO_MODULES) && exists(${.CURDIR}/../../modules)
|
||||
cd ${.CURDIR}/../../modules && env MAKEOBJDIRPREFIX=${.CURDIR}/modules ${MAKE} install
|
||||
.endif
|
||||
|
||||
reinstall reinstall.debug:
|
||||
install -c -m 555 -o root -g wheel -fschg \
|
||||
${KERNEL}${.TARGET:S/reinstall//} ${DESTDIR}/${KERNEL}
|
||||
.if !defined(NO_MODULES) && exists(${.CURDIR}/../../modules)
|
||||
cd ${.CURDIR}/../../modules && env MAKEOBJDIRPREFIX=${.CURDIR}/modules ${MAKE} install
|
||||
.endif
|
||||
|
||||
config.o:
|
||||
${NORMAL_C}
|
||||
|
|
|
|||
Loading…
Reference in a new issue