2012-10-26 15:22:39 +02:00
|
|
|
# $NetBSD: sys.mk,v 1.110 2012/10/06 20:54:58 christos Exp $
|
2010-02-04 17:52:54 +01:00
|
|
|
# @(#)sys.mk 8.2 (Berkeley) 3/21/94
|
|
|
|
|
2011-03-03 17:41:19 +01:00
|
|
|
# This variable should be used to differentiate Minix builds in Makefiles.
|
|
|
|
__MINIX= yes
|
|
|
|
|
2012-11-01 22:55:12 +01:00
|
|
|
.if defined(__MINIX)
|
|
|
|
.if ${MKSMALL:U} == "yes"
|
2013-02-27 17:53:12 +01:00
|
|
|
CPPFLAGS+= -DNDEBUG
|
Upgrading build system to new NetBSD revision
The tested targets are the followgin ones:
* tools
* distribution
* sets
* release
The remaining NetBSD targets have not been disabled nor tested
*at all*. Try them at your own risk, they may reboot the earth.
For all compliant Makefiles, objects and generated files are put in
MAKEOBJDIR, which means you can now keep objects between two branch
switching. Same for DESTDIR, please refer to build.sh options.
Regarding new or modifications of Makefiles a few things:
* Read share/mk/bsd.README
* If you add a subdirectory, add a Makefile in it, and have it called
by the parent through the SUBDIR variable.
* Do not add arbitrary inclusion which crosses to another branch of
the hierarchy; If you can't do without it, put a comment on why.
If possible, do not use inclusion at all.
* Use as much as possible the infrastructure, it is here to make
life easier, do not fight it.
Sets and package are now used to track files.
We have one set called "minix", composed of one package called "minix-sys"
2012-09-12 09:37:05 +02:00
|
|
|
DBG= -Os
|
|
|
|
.endif
|
|
|
|
|
2012-11-01 22:55:12 +01:00
|
|
|
unix?= We run MINIX.
|
|
|
|
|
|
|
|
CPP?= /usr/lib/cpp
|
|
|
|
.endif # defined(__MINIX)
|
|
|
|
unix?= We run NetBSD.
|
|
|
|
|
2013-06-17 16:51:49 +02:00
|
|
|
.SUFFIXES: .a .o .bc .ln .s .S .c .cc .cpp .cxx .C .f .F .r .p .l .y .sh
|
2010-02-04 17:52:54 +01:00
|
|
|
|
|
|
|
.LIBS: .a
|
|
|
|
|
Upgrading build system to new NetBSD revision
The tested targets are the followgin ones:
* tools
* distribution
* sets
* release
The remaining NetBSD targets have not been disabled nor tested
*at all*. Try them at your own risk, they may reboot the earth.
For all compliant Makefiles, objects and generated files are put in
MAKEOBJDIR, which means you can now keep objects between two branch
switching. Same for DESTDIR, please refer to build.sh options.
Regarding new or modifications of Makefiles a few things:
* Read share/mk/bsd.README
* If you add a subdirectory, add a Makefile in it, and have it called
by the parent through the SUBDIR variable.
* Do not add arbitrary inclusion which crosses to another branch of
the hierarchy; If you can't do without it, put a comment on why.
If possible, do not use inclusion at all.
* Use as much as possible the infrastructure, it is here to make
life easier, do not fight it.
Sets and package are now used to track files.
We have one set called "minix", composed of one package called "minix-sys"
2012-09-12 09:37:05 +02:00
|
|
|
AR?= ar
|
2010-02-04 17:52:54 +01:00
|
|
|
ARFLAGS?= rl
|
|
|
|
RANLIB?= ranlib
|
|
|
|
|
|
|
|
AS?= as
|
|
|
|
AFLAGS?=
|
Upgrading build system to new NetBSD revision
The tested targets are the followgin ones:
* tools
* distribution
* sets
* release
The remaining NetBSD targets have not been disabled nor tested
*at all*. Try them at your own risk, they may reboot the earth.
For all compliant Makefiles, objects and generated files are put in
MAKEOBJDIR, which means you can now keep objects between two branch
switching. Same for DESTDIR, please refer to build.sh options.
Regarding new or modifications of Makefiles a few things:
* Read share/mk/bsd.README
* If you add a subdirectory, add a Makefile in it, and have it called
by the parent through the SUBDIR variable.
* Do not add arbitrary inclusion which crosses to another branch of
the hierarchy; If you can't do without it, put a comment on why.
If possible, do not use inclusion at all.
* Use as much as possible the infrastructure, it is here to make
life easier, do not fight it.
Sets and package are now used to track files.
We have one set called "minix", composed of one package called "minix-sys"
2012-09-12 09:37:05 +02:00
|
|
|
COMPILE.s?= ${CC} ${AFLAGS} ${AFLAGS.${<:T}} -c
|
|
|
|
LINK.s?= ${CC} ${AFLAGS} ${AFLAGS.${<:T}} ${LDFLAGS}
|
|
|
|
_ASM_TRADITIONAL_CPP= -x assembler-with-cpp
|
|
|
|
COMPILE.S?= ${CC} ${AFLAGS} ${AFLAGS.${<:T}} ${CPPFLAGS} ${_ASM_TRADITIONAL_CPP} -c
|
|
|
|
LINK.S?= ${CC} ${AFLAGS} ${AFLAGS.${<:T}} ${CPPFLAGS} ${LDFLAGS}
|
2010-02-04 17:52:54 +01:00
|
|
|
|
2012-11-01 22:55:12 +01:00
|
|
|
CC?= cc
|
Upgrading build system to new NetBSD revision
The tested targets are the followgin ones:
* tools
* distribution
* sets
* release
The remaining NetBSD targets have not been disabled nor tested
*at all*. Try them at your own risk, they may reboot the earth.
For all compliant Makefiles, objects and generated files are put in
MAKEOBJDIR, which means you can now keep objects between two branch
switching. Same for DESTDIR, please refer to build.sh options.
Regarding new or modifications of Makefiles a few things:
* Read share/mk/bsd.README
* If you add a subdirectory, add a Makefile in it, and have it called
by the parent through the SUBDIR variable.
* Do not add arbitrary inclusion which crosses to another branch of
the hierarchy; If you can't do without it, put a comment on why.
If possible, do not use inclusion at all.
* Use as much as possible the infrastructure, it is here to make
life easier, do not fight it.
Sets and package are now used to track files.
We have one set called "minix", composed of one package called "minix-sys"
2012-09-12 09:37:05 +02:00
|
|
|
.if ${MACHINE_ARCH} == "sh3el" || ${MACHINE_ARCH} == "sh3eb"
|
2010-02-04 17:52:54 +01:00
|
|
|
# -O2 is too -falign-* zealous for low-memory sh3 machines
|
|
|
|
DBG?= -Os -freorder-blocks
|
Upgrading build system to new NetBSD revision
The tested targets are the followgin ones:
* tools
* distribution
* sets
* release
The remaining NetBSD targets have not been disabled nor tested
*at all*. Try them at your own risk, they may reboot the earth.
For all compliant Makefiles, objects and generated files are put in
MAKEOBJDIR, which means you can now keep objects between two branch
switching. Same for DESTDIR, please refer to build.sh options.
Regarding new or modifications of Makefiles a few things:
* Read share/mk/bsd.README
* If you add a subdirectory, add a Makefile in it, and have it called
by the parent through the SUBDIR variable.
* Do not add arbitrary inclusion which crosses to another branch of
the hierarchy; If you can't do without it, put a comment on why.
If possible, do not use inclusion at all.
* Use as much as possible the infrastructure, it is here to make
life easier, do not fight it.
Sets and package are now used to track files.
We have one set called "minix", composed of one package called "minix-sys"
2012-09-12 09:37:05 +02:00
|
|
|
.elif ${MACHINE_ARCH} == "m68k" || ${MACHINE_ARCH} == "m68000"
|
|
|
|
# see src/doc/HACKS for details
|
|
|
|
DBG?= -Os
|
2010-02-04 17:52:54 +01:00
|
|
|
.elif ${MACHINE_ARCH} == "vax"
|
|
|
|
DBG?= -O1 -fgcse -fstrength-reduce -fgcse-after-reload
|
|
|
|
.else
|
2012-11-01 22:55:12 +01:00
|
|
|
DBG?= -O2
|
2010-02-04 17:52:54 +01:00
|
|
|
.endif
|
|
|
|
CFLAGS?= ${DBG}
|
|
|
|
LDFLAGS?=
|
|
|
|
COMPILE.c?= ${CC} ${CFLAGS} ${CPPFLAGS} -c
|
|
|
|
LINK.c?= ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}
|
|
|
|
|
Upgrading build system to new NetBSD revision
The tested targets are the followgin ones:
* tools
* distribution
* sets
* release
The remaining NetBSD targets have not been disabled nor tested
*at all*. Try them at your own risk, they may reboot the earth.
For all compliant Makefiles, objects and generated files are put in
MAKEOBJDIR, which means you can now keep objects between two branch
switching. Same for DESTDIR, please refer to build.sh options.
Regarding new or modifications of Makefiles a few things:
* Read share/mk/bsd.README
* If you add a subdirectory, add a Makefile in it, and have it called
by the parent through the SUBDIR variable.
* Do not add arbitrary inclusion which crosses to another branch of
the hierarchy; If you can't do without it, put a comment on why.
If possible, do not use inclusion at all.
* Use as much as possible the infrastructure, it is here to make
life easier, do not fight it.
Sets and package are now used to track files.
We have one set called "minix", composed of one package called "minix-sys"
2012-09-12 09:37:05 +02:00
|
|
|
# C Type Format data is required for DTrace
|
|
|
|
# XXX TBD VERSION is not defined
|
|
|
|
CTFFLAGS ?= -L VERSION
|
|
|
|
CTFMFLAGS ?= -t -L VERSION
|
|
|
|
|
|
|
|
.if defined(MKDTRACE) && ${MKDTRACE} != "no"
|
|
|
|
CTFCONVERT ?= ${TOOL_CTFCONVERT}
|
|
|
|
CTFMERGE ?= ${TOOL_CTFMERGE}
|
|
|
|
.if defined(CFLAGS) && (${CFLAGS:M-g} != "")
|
|
|
|
CTFFLAGS += -g
|
|
|
|
CTFMFLAGS += -g
|
|
|
|
.else
|
|
|
|
CFLAGS += -g
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
2010-02-04 17:52:54 +01:00
|
|
|
CXX?= c++
|
2012-10-26 15:22:39 +02:00
|
|
|
CXXFLAGS?= ${CFLAGS:N-Wno-traditional:N-Wstrict-prototypes:N-Wmissing-prototypes:N-Wno-pointer-sign:N-ffreestanding:N-std=gnu99:N-Wold-style-definition:N-Wno-format-zero-length}
|
2010-02-04 17:52:54 +01:00
|
|
|
|
|
|
|
__ALLSRC1= ${empty(DESTDIR):?${.ALLSRC}:${.ALLSRC:S|^${DESTDIR}|^destdir|}}
|
|
|
|
__ALLSRC2= ${empty(MAKEOBJDIR):?${__ALLSRC1}:${__ALLSRC1:S|^${MAKEOBJDIR}|^obj|}}
|
|
|
|
__ALLSRC3= ${empty(NETBSDSRCDIR):?${__ALLSRC2}:${__ALLSRC2:S|^${NETBSDSRCDIR}|^src|}}
|
Upgrading build system to new NetBSD revision
The tested targets are the followgin ones:
* tools
* distribution
* sets
* release
The remaining NetBSD targets have not been disabled nor tested
*at all*. Try them at your own risk, they may reboot the earth.
For all compliant Makefiles, objects and generated files are put in
MAKEOBJDIR, which means you can now keep objects between two branch
switching. Same for DESTDIR, please refer to build.sh options.
Regarding new or modifications of Makefiles a few things:
* Read share/mk/bsd.README
* If you add a subdirectory, add a Makefile in it, and have it called
by the parent through the SUBDIR variable.
* Do not add arbitrary inclusion which crosses to another branch of
the hierarchy; If you can't do without it, put a comment on why.
If possible, do not use inclusion at all.
* Use as much as possible the infrastructure, it is here to make
life easier, do not fight it.
Sets and package are now used to track files.
We have one set called "minix", composed of one package called "minix-sys"
2012-09-12 09:37:05 +02:00
|
|
|
__BUILDSEED= ${BUILDSEED}/${__ALLSRC3:O}/${.TARGET}
|
|
|
|
_CXXSEED?= ${BUILDSEED:D-frandom-seed=${__BUILDSEED:hash}}
|
2010-02-04 17:52:54 +01:00
|
|
|
|
|
|
|
COMPILE.cc?= ${CXX} ${_CXXSEED} ${CXXFLAGS} ${CPPFLAGS} -c
|
|
|
|
LINK.cc?= ${CXX} ${CXXFLAGS} ${CPPFLAGS} ${LDFLAGS}
|
|
|
|
|
|
|
|
OBJC?= ${CC}
|
|
|
|
OBJCFLAGS?= ${CFLAGS}
|
|
|
|
COMPILE.m?= ${OBJC} ${OBJCFLAGS} ${CPPFLAGS} -c
|
|
|
|
LINK.m?= ${OBJC} ${OBJCFLAGS} ${CPPFLAGS} ${LDFLAGS}
|
|
|
|
|
|
|
|
CPP?= cpp
|
|
|
|
CPPFLAGS?=
|
|
|
|
|
|
|
|
FC?= f77
|
|
|
|
FFLAGS?= -O
|
|
|
|
RFLAGS?=
|
|
|
|
COMPILE.f?= ${FC} ${FFLAGS} -c
|
|
|
|
LINK.f?= ${FC} ${FFLAGS} ${LDFLAGS}
|
|
|
|
COMPILE.F?= ${FC} ${FFLAGS} ${CPPFLAGS} -c
|
|
|
|
LINK.F?= ${FC} ${FFLAGS} ${CPPFLAGS} ${LDFLAGS}
|
|
|
|
COMPILE.r?= ${FC} ${FFLAGS} ${RFLAGS} -c
|
|
|
|
LINK.r?= ${FC} ${FFLAGS} ${RFLAGS} ${LDFLAGS}
|
|
|
|
|
|
|
|
INSTALL?= install
|
|
|
|
|
|
|
|
LD?= ld
|
|
|
|
|
|
|
|
LEX?= lex
|
|
|
|
LFLAGS?=
|
|
|
|
LEX.l?= ${LEX} ${LFLAGS}
|
|
|
|
|
|
|
|
LINT?= lint
|
|
|
|
LINTFLAGS?= -chapbxzFS
|
|
|
|
|
|
|
|
LORDER?= lorder
|
|
|
|
|
|
|
|
MAKE?= make
|
|
|
|
|
|
|
|
NM?= nm
|
|
|
|
|
|
|
|
PC?= pc
|
|
|
|
PFLAGS?=
|
|
|
|
COMPILE.p?= ${PC} ${PFLAGS} ${CPPFLAGS} -c
|
|
|
|
LINK.p?= ${PC} ${PFLAGS} ${CPPFLAGS} ${LDFLAGS}
|
|
|
|
|
|
|
|
SHELL?= sh
|
|
|
|
|
|
|
|
SIZE?= size
|
|
|
|
|
|
|
|
TSORT?= tsort -q
|
|
|
|
|
|
|
|
YACC?= yacc
|
|
|
|
YFLAGS?=
|
|
|
|
YACC.y?= ${YACC} ${YFLAGS}
|
|
|
|
|
|
|
|
# C
|
|
|
|
.c:
|
|
|
|
${LINK.c} -o ${.TARGET} ${.IMPSRC} ${LDLIBS}
|
Upgrading build system to new NetBSD revision
The tested targets are the followgin ones:
* tools
* distribution
* sets
* release
The remaining NetBSD targets have not been disabled nor tested
*at all*. Try them at your own risk, they may reboot the earth.
For all compliant Makefiles, objects and generated files are put in
MAKEOBJDIR, which means you can now keep objects between two branch
switching. Same for DESTDIR, please refer to build.sh options.
Regarding new or modifications of Makefiles a few things:
* Read share/mk/bsd.README
* If you add a subdirectory, add a Makefile in it, and have it called
by the parent through the SUBDIR variable.
* Do not add arbitrary inclusion which crosses to another branch of
the hierarchy; If you can't do without it, put a comment on why.
If possible, do not use inclusion at all.
* Use as much as possible the infrastructure, it is here to make
life easier, do not fight it.
Sets and package are now used to track files.
We have one set called "minix", composed of one package called "minix-sys"
2012-09-12 09:37:05 +02:00
|
|
|
.if defined(CTFCONVERT)
|
|
|
|
${CTFCONVERT} ${CTFFLAGS} ${.TARGET}
|
|
|
|
.endif
|
2010-02-04 17:52:54 +01:00
|
|
|
.c.o:
|
|
|
|
${COMPILE.c} ${.IMPSRC}
|
Upgrading build system to new NetBSD revision
The tested targets are the followgin ones:
* tools
* distribution
* sets
* release
The remaining NetBSD targets have not been disabled nor tested
*at all*. Try them at your own risk, they may reboot the earth.
For all compliant Makefiles, objects and generated files are put in
MAKEOBJDIR, which means you can now keep objects between two branch
switching. Same for DESTDIR, please refer to build.sh options.
Regarding new or modifications of Makefiles a few things:
* Read share/mk/bsd.README
* If you add a subdirectory, add a Makefile in it, and have it called
by the parent through the SUBDIR variable.
* Do not add arbitrary inclusion which crosses to another branch of
the hierarchy; If you can't do without it, put a comment on why.
If possible, do not use inclusion at all.
* Use as much as possible the infrastructure, it is here to make
life easier, do not fight it.
Sets and package are now used to track files.
We have one set called "minix", composed of one package called "minix-sys"
2012-09-12 09:37:05 +02:00
|
|
|
.if defined(CTFCONVERT)
|
|
|
|
${CTFCONVERT} ${CTFFLAGS} ${.TARGET}
|
|
|
|
.endif
|
2010-02-04 17:52:54 +01:00
|
|
|
.c.a:
|
|
|
|
${COMPILE.c} ${.IMPSRC}
|
|
|
|
${AR} ${ARFLAGS} ${.TARGET} ${.PREFIX}.o
|
|
|
|
rm -f ${.PREFIX}.o
|
|
|
|
.c.ln:
|
|
|
|
${LINT} ${LINTFLAGS} \
|
|
|
|
${CPPFLAGS:C/-([IDU])[ ]*/-\1/Wg:M-[IDU]*} \
|
|
|
|
-i ${.IMPSRC}
|
|
|
|
|
|
|
|
# C++
|
|
|
|
.cc .cpp .cxx .C:
|
|
|
|
${LINK.cc} -o ${.TARGET} ${.IMPSRC} ${LDLIBS}
|
|
|
|
.cc.o .cpp.o .cxx.o .C.o:
|
|
|
|
${COMPILE.cc} ${.IMPSRC}
|
|
|
|
.cc.a .cpp.a .cxx.a .C.a:
|
|
|
|
${COMPILE.cc} ${.IMPSRC}
|
|
|
|
${AR} ${ARFLAGS} ${.TARGET} ${.PREFIX}.o
|
|
|
|
rm -f ${.PREFIX}.o
|
|
|
|
|
|
|
|
# Fortran/Ratfor
|
|
|
|
.f:
|
|
|
|
${LINK.f} -o ${.TARGET} ${.IMPSRC} ${LDLIBS}
|
|
|
|
.f.o:
|
|
|
|
${COMPILE.f} ${.IMPSRC}
|
|
|
|
.f.a:
|
|
|
|
${COMPILE.f} ${.IMPSRC}
|
|
|
|
${AR} ${ARFLAGS} ${.TARGET} ${.PREFIX}.o
|
|
|
|
rm -f ${.PREFIX}.o
|
|
|
|
|
|
|
|
.F:
|
|
|
|
${LINK.F} -o ${.TARGET} ${.IMPSRC} ${LDLIBS}
|
Upgrading build system to new NetBSD revision
The tested targets are the followgin ones:
* tools
* distribution
* sets
* release
The remaining NetBSD targets have not been disabled nor tested
*at all*. Try them at your own risk, they may reboot the earth.
For all compliant Makefiles, objects and generated files are put in
MAKEOBJDIR, which means you can now keep objects between two branch
switching. Same for DESTDIR, please refer to build.sh options.
Regarding new or modifications of Makefiles a few things:
* Read share/mk/bsd.README
* If you add a subdirectory, add a Makefile in it, and have it called
by the parent through the SUBDIR variable.
* Do not add arbitrary inclusion which crosses to another branch of
the hierarchy; If you can't do without it, put a comment on why.
If possible, do not use inclusion at all.
* Use as much as possible the infrastructure, it is here to make
life easier, do not fight it.
Sets and package are now used to track files.
We have one set called "minix", composed of one package called "minix-sys"
2012-09-12 09:37:05 +02:00
|
|
|
.if defined(CTFCONVERT)
|
|
|
|
${CTFCONVERT} ${CTFFLAGS} ${.TARGET}
|
|
|
|
.endif
|
2010-02-04 17:52:54 +01:00
|
|
|
.F.o:
|
|
|
|
${COMPILE.F} ${.IMPSRC}
|
Upgrading build system to new NetBSD revision
The tested targets are the followgin ones:
* tools
* distribution
* sets
* release
The remaining NetBSD targets have not been disabled nor tested
*at all*. Try them at your own risk, they may reboot the earth.
For all compliant Makefiles, objects and generated files are put in
MAKEOBJDIR, which means you can now keep objects between two branch
switching. Same for DESTDIR, please refer to build.sh options.
Regarding new or modifications of Makefiles a few things:
* Read share/mk/bsd.README
* If you add a subdirectory, add a Makefile in it, and have it called
by the parent through the SUBDIR variable.
* Do not add arbitrary inclusion which crosses to another branch of
the hierarchy; If you can't do without it, put a comment on why.
If possible, do not use inclusion at all.
* Use as much as possible the infrastructure, it is here to make
life easier, do not fight it.
Sets and package are now used to track files.
We have one set called "minix", composed of one package called "minix-sys"
2012-09-12 09:37:05 +02:00
|
|
|
.if defined(CTFCONVERT)
|
|
|
|
${CTFCONVERT} ${CTFFLAGS} ${.TARGET}
|
|
|
|
.endif
|
2010-02-04 17:52:54 +01:00
|
|
|
.F.a:
|
|
|
|
${COMPILE.F} ${.IMPSRC}
|
|
|
|
${AR} ${ARFLAGS} ${.TARGET} ${.PREFIX}.o
|
|
|
|
rm -f ${.PREFIX}.o
|
|
|
|
|
|
|
|
.r:
|
|
|
|
${LINK.r} -o ${.TARGET} ${.IMPSRC} ${LDLIBS}
|
|
|
|
.r.o:
|
|
|
|
${COMPILE.r} ${.IMPSRC}
|
|
|
|
.r.a:
|
|
|
|
${COMPILE.r} ${.IMPSRC}
|
|
|
|
${AR} ${ARFLAGS} ${.TARGET} ${.PREFIX}.o
|
|
|
|
rm -f ${.PREFIX}.o
|
|
|
|
|
|
|
|
# Pascal
|
|
|
|
.p:
|
|
|
|
${LINK.p} -o ${.TARGET} ${.IMPSRC} ${LDLIBS}
|
Upgrading build system to new NetBSD revision
The tested targets are the followgin ones:
* tools
* distribution
* sets
* release
The remaining NetBSD targets have not been disabled nor tested
*at all*. Try them at your own risk, they may reboot the earth.
For all compliant Makefiles, objects and generated files are put in
MAKEOBJDIR, which means you can now keep objects between two branch
switching. Same for DESTDIR, please refer to build.sh options.
Regarding new or modifications of Makefiles a few things:
* Read share/mk/bsd.README
* If you add a subdirectory, add a Makefile in it, and have it called
by the parent through the SUBDIR variable.
* Do not add arbitrary inclusion which crosses to another branch of
the hierarchy; If you can't do without it, put a comment on why.
If possible, do not use inclusion at all.
* Use as much as possible the infrastructure, it is here to make
life easier, do not fight it.
Sets and package are now used to track files.
We have one set called "minix", composed of one package called "minix-sys"
2012-09-12 09:37:05 +02:00
|
|
|
.if defined(CTFCONVERT)
|
|
|
|
${CTFCONVERT} ${CTFFLAGS} ${.TARGET}
|
|
|
|
.endif
|
2010-02-04 17:52:54 +01:00
|
|
|
.p.o:
|
|
|
|
${COMPILE.p} ${.IMPSRC}
|
Upgrading build system to new NetBSD revision
The tested targets are the followgin ones:
* tools
* distribution
* sets
* release
The remaining NetBSD targets have not been disabled nor tested
*at all*. Try them at your own risk, they may reboot the earth.
For all compliant Makefiles, objects and generated files are put in
MAKEOBJDIR, which means you can now keep objects between two branch
switching. Same for DESTDIR, please refer to build.sh options.
Regarding new or modifications of Makefiles a few things:
* Read share/mk/bsd.README
* If you add a subdirectory, add a Makefile in it, and have it called
by the parent through the SUBDIR variable.
* Do not add arbitrary inclusion which crosses to another branch of
the hierarchy; If you can't do without it, put a comment on why.
If possible, do not use inclusion at all.
* Use as much as possible the infrastructure, it is here to make
life easier, do not fight it.
Sets and package are now used to track files.
We have one set called "minix", composed of one package called "minix-sys"
2012-09-12 09:37:05 +02:00
|
|
|
.if defined(CTFCONVERT)
|
|
|
|
${CTFCONVERT} ${CTFFLAGS} ${.TARGET}
|
|
|
|
.endif
|
2010-02-04 17:52:54 +01:00
|
|
|
.p.a:
|
|
|
|
${COMPILE.p} ${.IMPSRC}
|
|
|
|
${AR} ${ARFLAGS} ${.TARGET} ${.PREFIX}.o
|
|
|
|
rm -f ${.PREFIX}.o
|
|
|
|
|
|
|
|
# Assembly
|
|
|
|
.s:
|
|
|
|
${LINK.s} -o ${.TARGET} ${.IMPSRC} ${LDLIBS}
|
Upgrading build system to new NetBSD revision
The tested targets are the followgin ones:
* tools
* distribution
* sets
* release
The remaining NetBSD targets have not been disabled nor tested
*at all*. Try them at your own risk, they may reboot the earth.
For all compliant Makefiles, objects and generated files are put in
MAKEOBJDIR, which means you can now keep objects between two branch
switching. Same for DESTDIR, please refer to build.sh options.
Regarding new or modifications of Makefiles a few things:
* Read share/mk/bsd.README
* If you add a subdirectory, add a Makefile in it, and have it called
by the parent through the SUBDIR variable.
* Do not add arbitrary inclusion which crosses to another branch of
the hierarchy; If you can't do without it, put a comment on why.
If possible, do not use inclusion at all.
* Use as much as possible the infrastructure, it is here to make
life easier, do not fight it.
Sets and package are now used to track files.
We have one set called "minix", composed of one package called "minix-sys"
2012-09-12 09:37:05 +02:00
|
|
|
.if defined(CTFCONVERT)
|
|
|
|
${CTFCONVERT} ${CTFFLAGS} ${.TARGET}
|
|
|
|
.endif
|
2010-02-04 17:52:54 +01:00
|
|
|
.s.o:
|
|
|
|
${COMPILE.s} ${.IMPSRC}
|
Upgrading build system to new NetBSD revision
The tested targets are the followgin ones:
* tools
* distribution
* sets
* release
The remaining NetBSD targets have not been disabled nor tested
*at all*. Try them at your own risk, they may reboot the earth.
For all compliant Makefiles, objects and generated files are put in
MAKEOBJDIR, which means you can now keep objects between two branch
switching. Same for DESTDIR, please refer to build.sh options.
Regarding new or modifications of Makefiles a few things:
* Read share/mk/bsd.README
* If you add a subdirectory, add a Makefile in it, and have it called
by the parent through the SUBDIR variable.
* Do not add arbitrary inclusion which crosses to another branch of
the hierarchy; If you can't do without it, put a comment on why.
If possible, do not use inclusion at all.
* Use as much as possible the infrastructure, it is here to make
life easier, do not fight it.
Sets and package are now used to track files.
We have one set called "minix", composed of one package called "minix-sys"
2012-09-12 09:37:05 +02:00
|
|
|
.if defined(CTFCONVERT)
|
|
|
|
${CTFCONVERT} ${CTFFLAGS} ${.TARGET}
|
|
|
|
.endif
|
2010-02-04 17:52:54 +01:00
|
|
|
.s.a:
|
|
|
|
${COMPILE.s} ${.IMPSRC}
|
|
|
|
${AR} ${ARFLAGS} ${.TARGET} ${.PREFIX}.o
|
|
|
|
rm -f ${.PREFIX}.o
|
|
|
|
.S:
|
|
|
|
${LINK.S} -o ${.TARGET} ${.IMPSRC} ${LDLIBS}
|
Upgrading build system to new NetBSD revision
The tested targets are the followgin ones:
* tools
* distribution
* sets
* release
The remaining NetBSD targets have not been disabled nor tested
*at all*. Try them at your own risk, they may reboot the earth.
For all compliant Makefiles, objects and generated files are put in
MAKEOBJDIR, which means you can now keep objects between two branch
switching. Same for DESTDIR, please refer to build.sh options.
Regarding new or modifications of Makefiles a few things:
* Read share/mk/bsd.README
* If you add a subdirectory, add a Makefile in it, and have it called
by the parent through the SUBDIR variable.
* Do not add arbitrary inclusion which crosses to another branch of
the hierarchy; If you can't do without it, put a comment on why.
If possible, do not use inclusion at all.
* Use as much as possible the infrastructure, it is here to make
life easier, do not fight it.
Sets and package are now used to track files.
We have one set called "minix", composed of one package called "minix-sys"
2012-09-12 09:37:05 +02:00
|
|
|
.if defined(CTFCONVERT)
|
|
|
|
${CTFCONVERT} ${CTFFLAGS} ${.TARGET}
|
|
|
|
.endif
|
2010-02-04 17:52:54 +01:00
|
|
|
.S.o:
|
|
|
|
${COMPILE.S} ${.IMPSRC}
|
Upgrading build system to new NetBSD revision
The tested targets are the followgin ones:
* tools
* distribution
* sets
* release
The remaining NetBSD targets have not been disabled nor tested
*at all*. Try them at your own risk, they may reboot the earth.
For all compliant Makefiles, objects and generated files are put in
MAKEOBJDIR, which means you can now keep objects between two branch
switching. Same for DESTDIR, please refer to build.sh options.
Regarding new or modifications of Makefiles a few things:
* Read share/mk/bsd.README
* If you add a subdirectory, add a Makefile in it, and have it called
by the parent through the SUBDIR variable.
* Do not add arbitrary inclusion which crosses to another branch of
the hierarchy; If you can't do without it, put a comment on why.
If possible, do not use inclusion at all.
* Use as much as possible the infrastructure, it is here to make
life easier, do not fight it.
Sets and package are now used to track files.
We have one set called "minix", composed of one package called "minix-sys"
2012-09-12 09:37:05 +02:00
|
|
|
.if defined(CTFCONVERT)
|
|
|
|
${CTFCONVERT} ${CTFFLAGS} ${.TARGET}
|
|
|
|
.endif
|
2010-02-04 17:52:54 +01:00
|
|
|
.S.a:
|
|
|
|
${COMPILE.S} ${.IMPSRC}
|
|
|
|
${AR} ${ARFLAGS} ${.TARGET} ${.PREFIX}.o
|
|
|
|
rm -f ${.PREFIX}.o
|
|
|
|
|
|
|
|
# Lex
|
|
|
|
.l:
|
|
|
|
${LEX.l} ${.IMPSRC}
|
|
|
|
${LINK.c} -o ${.TARGET} lex.yy.c ${LDLIBS} -ll
|
|
|
|
rm -f lex.yy.c
|
|
|
|
.l.c:
|
|
|
|
${LEX.l} ${.IMPSRC}
|
|
|
|
mv lex.yy.c ${.TARGET}
|
|
|
|
.l.o:
|
|
|
|
${LEX.l} ${.IMPSRC}
|
|
|
|
${COMPILE.c} -o ${.TARGET} lex.yy.c
|
|
|
|
rm -f lex.yy.c
|
|
|
|
|
|
|
|
# Yacc
|
|
|
|
.y:
|
|
|
|
${YACC.y} ${.IMPSRC}
|
|
|
|
${LINK.c} -o ${.TARGET} y.tab.c ${LDLIBS}
|
|
|
|
rm -f y.tab.c
|
|
|
|
.y.c:
|
|
|
|
${YACC.y} ${.IMPSRC}
|
|
|
|
mv y.tab.c ${.TARGET}
|
|
|
|
.y.o:
|
|
|
|
${YACC.y} ${.IMPSRC}
|
|
|
|
${COMPILE.c} -o ${.TARGET} y.tab.c
|
|
|
|
rm -f y.tab.c
|
|
|
|
|
|
|
|
# Shell
|
Upgrading build system to new NetBSD revision
The tested targets are the followgin ones:
* tools
* distribution
* sets
* release
The remaining NetBSD targets have not been disabled nor tested
*at all*. Try them at your own risk, they may reboot the earth.
For all compliant Makefiles, objects and generated files are put in
MAKEOBJDIR, which means you can now keep objects between two branch
switching. Same for DESTDIR, please refer to build.sh options.
Regarding new or modifications of Makefiles a few things:
* Read share/mk/bsd.README
* If you add a subdirectory, add a Makefile in it, and have it called
by the parent through the SUBDIR variable.
* Do not add arbitrary inclusion which crosses to another branch of
the hierarchy; If you can't do without it, put a comment on why.
If possible, do not use inclusion at all.
* Use as much as possible the infrastructure, it is here to make
life easier, do not fight it.
Sets and package are now used to track files.
We have one set called "minix", composed of one package called "minix-sys"
2012-09-12 09:37:05 +02:00
|
|
|
.sh:
|
|
|
|
rm -f ${.TARGET}
|
|
|
|
cp ${.IMPSRC} ${.TARGET}
|
|
|
|
chmod a+x ${.TARGET}
|