1 # Makefile for ramdisk image
3 PROGRAMS
=at_wini bios_wini cdprobe dev2name floppy loadramdisk newroot \
4 pci sh service sysenv mfs
5 EXTRA
=drivers.conf passwd
7 MAKEDEV
=/usr
/bin
/MAKEDEV
12 rm -rf
$(PROGRAMS
) $(EXTRA
) bintoc image image.c image.s t proto.gen
18 sed
< image.c
> $@
's/^/.data1 /;s/,$$//' ||
{ rm -f
$@
; false
; }
20 # Note for cross compilation: this executable has to be compiled for the
25 image
: proto.gen mtab rc
$(PROGRAMS
) $(EXTRA
)
26 mkfs image proto.gen ||
{ rm -f image
; false
; }
28 at_wini
: ..
/..
/at_wini
/at_wini
29 install -s ..
/..
/$@
/$@
$@
31 ..
/..
/at_wini
/at_wini
:
32 cd ..
/..
/at_wini
&& make
34 bios_wini
: ..
/..
/bios_wini
/bios_wini
35 install -s ..
/..
/$@
/$@
$@
37 ..
/..
/bios_wini
/bios_wini
:
38 cd ..
/..
/bios_wini
&& make
40 floppy
: ..
/..
/floppy
/floppy
41 install -s ..
/..
/$@
/$@
$@
44 cd ..
/..
/floppy
&& make
47 install -s ..
/..
/$@
/$@
$@
52 cdprobe
: ..
/..
/..
/commands
/simple
/cdprobe
53 install -s ..
/..
/..
/commands
/simple
/$@
$@
55 ..
/..
/..
/commands
/simple
/cdprobe
:
56 cd ..
/..
/..
/commands
/simple
&& make cdprobe
58 dev2name
: ..
/..
/..
/commands
/simple
/dev2name
59 install -s ..
/..
/..
/commands
/simple
/$@
$@
61 ..
/..
/..
/commands
/simple
/dev2name
:
62 cd ..
/..
/..
/commands
/simple
&& make dev2name
64 loadramdisk
: ..
/..
/..
/commands
/simple
/loadramdisk
65 install -s ..
/..
/..
/commands
/simple
/$@
$@
67 ..
/..
/..
/commands
/simple
/loadramdisk
:
68 cd ..
/..
/..
/commands
/simple
&& make loadramdisk
70 newroot
: ..
/..
/..
/commands
/simple
/newroot
71 install -s ..
/..
/..
/commands
/simple
/$@
$@
73 ..
/..
/..
/commands
/simple
/newroot
:
74 cd ..
/..
/..
/commands
/simple
&& make newroot
76 sysenv
: ..
/..
/..
/commands
/simple
/sysenv
77 install -s ..
/..
/..
/commands
/simple
/$@
$@
79 ..
/..
/..
/commands
/simple
/sysenv
:
80 cd ..
/..
/..
/commands
/simple
&& make sysenv
82 sh
: ..
/..
/..
/commands
/ash
/sh
83 install -s ..
/..
/..
/commands
/ash
/$@
$@
85 ..
/..
/..
/commands
/ash
/sh
:
86 cd ..
/..
/..
/commands
/ash
&& make sh
88 service
: ..
/..
/..
/servers
/rs
/service
89 install -s ..
/..
/..
/servers
/rs
/$@
$@
91 ..
/..
/..
/servers
/rs
/service
:
92 cd ..
/..
/..
/servers
/rs
&& make service
94 mfs
: ..
/..
/..
/servers
/mfs
/mfs
95 install -s ..
/..
/..
/servers
/mfs
/$@
$@
97 ..
/..
/..
/servers
/mfs
/mfs
:
98 cd ..
/..
/..
/servers
/mfs
&& make
100 drivers.conf
: ..
/..
/..
/etc
/drivers.conf
101 install -s ..
/..
/..
/etc
/$@
$@
103 passwd
: ..
/..
/..
/etc
/passwd
104 install -s ..
/..
/..
/etc
/$@
$@
107 mkdep
"$(CC) -E $(CPPFLAGS)" *.c
> .depend
109 proto.gen
: $(MAKEDEV
) proto.sh proto
110 sh
-e proto.sh
>proto.gen
112 # Include generated dependencies.