1 # $NetBSD: Makefile,v 1.25 2008/06/23 02:16:53 matt Exp $
5 .
include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
7 .
include <bsd.kernobj.mk
>
10 # we use spark, so that we get filetypes.
13 RAMDISKDIR
!= cd
${.CURDIR
}/..
/ramdisk
&& ${PRINTOBJDIR}
15 BOOTLOADER
= ${DESTDIR}/usr
/mdec
/boot32
,ffa
16 NBFS
= ${DESTDIR}/usr
/mdec
/nbfs
,ffa
20 release
: check_RELEASEDIR .WAIT
${ARCHIVE}
21 ${RELEASE_INSTALL} splug.bas
${RELEASEDIR}/${RELEASEMACHINEDIR}/installation
/misc
22 ${RELEASE_INSTALL} ${DISTRIBDIR}/notes
/acorn32
/prep.RISCOS \
23 ${RELEASEDIR}/${RELEASEMACHINEDIR}/
24 ${RELEASE_INSTALL} ${ARCHIVE} \
25 ${RELEASEDIR}/${RELEASEMACHINEDIR}/installation
/misc
/
27 ${ARCHIVE}: tmp
/BtNetBSD
28 TOOL_MKTEMP
=${TOOL_MKTEMP}; export TOOL_MKTEMP
; \
29 TOOL_SPARKCRC
=${TOOL_SPARKCRC}; export TOOL_SPARKCRC
; \
30 TOOL_STAT
=${TOOL_STAT}; export TOOL_STAT
; \
32 ${HOST_SH} ${.CURDIR
}/..
/mksparkive.sh
* > ${.OBJDIR
}/${ARCHIVE}
34 UUDECODE_FILES
=unixfs_res Sprite banner pling.Sprites pling.Sprites22 MemFix
35 UUDECODE_FILES
+=splug.bas
37 UUDECODE_FILES_RENAME_unixfs_res
=tmp
/BtNetBSD
/!BtNetBSD
/native
/unixfs_res
,ffa
38 UUDECODE_FILES_RENAME_Sprite
=tmp
/BtNetBSD
/!BtNetBSD
/src
/Banner
/Sprite
,ff9
39 UUDECODE_FILES_RENAME_banner
=tmp
/BtNetBSD
/!BtNetBSD
/Banner
,ffa
40 UUDECODE_FILES_RENAME_pling.Sprites
=tmp
/BtNetBSD
/!BtNetBSD
/!Sprites
,ff9
41 UUDECODE_FILES_RENAME_pling.Sprites22
=tmp
/BtNetBSD
/!BtNetBSD
/!Sprites22
,ff9
42 UUDECODE_FILES_RENAME_MemFix
=tmp
/BtNetBSD
/!BtNetBSD
/MemFix
,ffa
44 SETTYPE_FILES
=!BtNetBSD
/!Boot
!BtNetBSD
/!Edit
!BtNetBSD
/!Help
!BtNetBSD
/!Run
45 SETTYPE_FILES
+=!BtNetBSD
/BtNetBSD
!BtNetBSD
/PreBoot
!BtNetBSD
/TestBoot
46 SETTYPE_FILES
+=!BtNetBSD
/checkro403
48 SETTYPE_FILE_
!BtNetBSD
/!Boot
=feb
49 SETTYPE_FILE_
!BtNetBSD
/!Edit
=feb
50 SETTYPE_FILE_
!BtNetBSD
/!Help
=feb
51 SETTYPE_FILE_
!BtNetBSD
/!Run
=feb
52 SETTYPE_FILE_
!BtNetBSD
/BtNetBSD
=ffb
53 SETTYPE_FILE_
!BtNetBSD
/PreBoot
=feb
54 SETTYPE_FILE_
!BtNetBSD
/TestBoot
=ffb
55 SETTYPE_FILE_
!BtNetBSD
/checkro403
=ffb
57 SETTYPE_FILES
+=!BtNetBSD
/native
/MountUFS
!BtNetBSD
/native
/KillUnixfs
58 SETTYPE_FILES
+=!BtNetBSD
/native
/OpenRoot
!BtNetBSD
/native
/wd0a
59 SETTYPE_FILES
+=!BtNetBSD
/native
/wd0e
!BtNetBSD
/native
/wd0f
60 SETTYPE_FILES
+=!BtNetBSD
/native
/wd0g
!BtNetBSD
/native
/wd1a
61 SETTYPE_FILES
+=!BtNetBSD
/native
/wd1e
63 SETTYPE_FILE_
!BtNetBSD
/native
/KillUnixfs
=feb
64 SETTYPE_FILE_
!BtNetBSD
/native
/MountUFS
=ffb
65 SETTYPE_FILE_
!BtNetBSD
/native
/OpenRoot
=feb
66 SETTYPE_FILE_
!BtNetBSD
/native
/wd0a
=feb
67 SETTYPE_FILE_
!BtNetBSD
/native
/wd0e
=feb
68 SETTYPE_FILE_
!BtNetBSD
/native
/wd0f
=feb
69 SETTYPE_FILE_
!BtNetBSD
/native
/wd0g
=feb
70 SETTYPE_FILE_
!BtNetBSD
/native
/wd1a
=feb
71 SETTYPE_FILE_
!BtNetBSD
/native
/wd1e
=feb
73 SETTYPE_FILES
+=!BtNetBSD
/src
/Banner
/!Path
!BtNetBSD
/src
/Banner
/Banner
74 SETTYPE_FILES
+=!BtNetBSD
/src
/Banner
/resutil
76 SETTYPE_FILE_
!BtNetBSD
/src
/Banner
/!Path
=feb
77 SETTYPE_FILE_
!BtNetBSD
/src
/Banner
/Banner
=ffb
78 SETTYPE_FILE_
!BtNetBSD
/src
/Banner
/resutil
=ffb
80 SETTYPE_FILES
+=misc
/bb_netbsd
82 SETTYPE_FILE_misc
/bb_netbsd
=ffb
84 .PATH
: ${.CURDIR
}/BtNetBSD
/!BtNetBSD
85 .PATH
: ${.CURDIR
}/BtNetBSD
/!BtNetBSD
/native
86 .PATH
: ${.CURDIR
}/BtNetBSD
/!BtNetBSD
/src
/Banner
88 ${UUDECODE_FILES}: setup_tmp
94 cp
-R
${.CURDIR
}/BtNetBSD tmp
/
95 -find tmp
-path
'*/CVS/*' -type f
-exec
rm -rf
{} \
;
96 find tmp
-name CVS
-type d | xargs rmdir
97 find tmp
-name
'*.uue' -type f
-exec
rm -f
{} \
;
101 .for file in
${SETTYPE_FILES}
102 . if
${SETTYPE_FILE_
${file}} == ffb
103 ${TOOL_AWK} '{ printf "%5d %s\n", FNR * 10, $$0 }' \
104 < tmp
/BtNetBSD
/${file} > tmp
/BtNetBSD
/${file}.tmp
105 mv tmp
/BtNetBSD
/${file}.tmp tmp
/BtNetBSD
/${file}
107 mv tmp
/BtNetBSD
/${file} tmp
/BtNetBSD
/${file},${SETTYPE_FILE_
${file}}
111 tmp
/BtNetBSD
: setup_tmp
${UUDECODE_FILES} settypes
112 cp
${KERNOBJDIR}/INSTALL
/netbsd tmp
/BtNetBSD
/InstKern
,1a9
113 cp
${BOOTLOADER} 'tmp/BtNetBSD/!BtNetBSD/boot32,ffa'
114 cp
${NBFS} 'tmp/BtNetBSD/!BtNetBSD/nbfs,ffa'
115 ${TOOL_MDSETIMAGE} tmp
/BtNetBSD
/InstKern
,1a9
${RAMDISKDIR}/ramdisk.fs
116 # unixfs is copied into the !BtNetBSD dir at install time
117 cd tmp
/BtNetBSD
&& cp
-R
'!BtNetBSD/native' unixfs
123 -if
[ -d tmp
]; then
rm -rf tmp
; fi
125 .
include <bsd.files.mk
>
126 .
include <bsd.prog.mk
>