2010-05-27 00:49:57 +02:00
|
|
|
# Makefile for ramdisk image
|
|
|
|
|
|
|
|
PROGRAMS=at_wini bios_wini cdprobe dev2name floppy loadramdisk newroot \
|
|
|
|
pci sh service sysenv mfs
|
|
|
|
EXTRA=system.conf passwd
|
|
|
|
|
|
|
|
CPPFLAGS+= -I${MINIXSRCDIR}/servers
|
|
|
|
MAKEDEV=/usr/bin/MAKEDEV
|
|
|
|
|
2010-06-01 17:11:43 +02:00
|
|
|
install: all
|
|
|
|
|
2010-05-27 00:49:57 +02:00
|
|
|
all: image.c
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf $(PROGRAMS) $(EXTRA) bintoc image image.c t proto.gen
|
|
|
|
|
|
|
|
image.c: bintoc image
|
|
|
|
./bintoc -o $@ image
|
|
|
|
|
|
|
|
# Note for cross compilation: this executable has to be compiled for the
|
|
|
|
# host system
|
|
|
|
bintoc: bintoc.c
|
|
|
|
$(CC) -o $@ bintoc.c
|
|
|
|
|
|
|
|
image: proto.gen mtab rc $(PROGRAMS) $(EXTRA)
|
|
|
|
mkfs image proto.gen || { rm -f image; false; }
|
|
|
|
|
|
|
|
at_wini: ../at_wini/at_wini
|
|
|
|
install -s ../$@/$@ $@
|
|
|
|
|
|
|
|
../at_wini/at_wini:
|
2010-06-22 14:03:09 +02:00
|
|
|
$(MAKE) -C ../at_wini
|
2010-05-27 00:49:57 +02:00
|
|
|
|
|
|
|
bios_wini: ../bios_wini/bios_wini
|
|
|
|
install -s ../$@/$@ $@
|
|
|
|
|
|
|
|
../bios_wini/bios_wini:
|
2010-06-22 14:03:09 +02:00
|
|
|
$(MAKE) -C ../bios_wini
|
2010-05-27 00:49:57 +02:00
|
|
|
|
|
|
|
floppy: ../floppy/floppy
|
|
|
|
install -s ../$@/$@ $@
|
|
|
|
|
|
|
|
../floppy/floppy:
|
2010-06-22 14:03:09 +02:00
|
|
|
$(MAKE) -C ../floppy
|
2010-05-27 00:49:57 +02:00
|
|
|
|
|
|
|
pci: ../pci/pci
|
|
|
|
install -s ../$@/$@ $@
|
|
|
|
|
|
|
|
../pci/pci:
|
2010-06-22 14:03:09 +02:00
|
|
|
$(MAKE) -C ../pci
|
2010-05-27 00:49:57 +02:00
|
|
|
|
|
|
|
cdprobe: ../../commands/cdprobe/cdprobe
|
|
|
|
install -s ../../commands/$@/$@ $@
|
|
|
|
|
|
|
|
../../commands/cdprobe:
|
2010-06-22 14:03:09 +02:00
|
|
|
$(MAKE) -C ../../commands/cdprobe
|
2010-05-27 00:49:57 +02:00
|
|
|
|
|
|
|
dev2name: ../../commands/dev2name/dev2name
|
|
|
|
install -s ../../commands/$@/$@ $@
|
|
|
|
|
|
|
|
../../commands/dev2name/dev2name:
|
2010-06-22 14:03:09 +02:00
|
|
|
$(MAKE) -C ../../commands/dev2name
|
2010-05-27 00:49:57 +02:00
|
|
|
|
|
|
|
loadramdisk: ../../commands/loadramdisk/loadramdisk
|
|
|
|
install -s ../../commands/$@/$@ $@
|
|
|
|
|
|
|
|
../../commands/loadramdisk/loadramdisk:
|
2010-06-22 14:03:09 +02:00
|
|
|
$(MAKE) -C ../../commands/loadramdisk
|
2010-05-27 00:49:57 +02:00
|
|
|
|
|
|
|
newroot: ../../commands/newroot/newroot
|
|
|
|
install -s ../../commands/$@/$@ $@
|
|
|
|
|
|
|
|
../../commands/newroot/newroot:
|
2010-06-22 14:03:09 +02:00
|
|
|
$(MAKE) -C ../../commands/newroot
|
2010-05-27 00:49:57 +02:00
|
|
|
|
|
|
|
sysenv: ../../commands/sysenv/sysenv
|
|
|
|
install -s ../../commands/$@/$@ $@
|
|
|
|
|
|
|
|
../../commands/sysenv:
|
2010-06-22 14:03:09 +02:00
|
|
|
$(MAKE) -C ../../commands/sysenv
|
2010-05-27 00:49:57 +02:00
|
|
|
|
|
|
|
sh: ../../commands/ash/sh
|
|
|
|
install -s ../../commands/ash/$@ $@
|
|
|
|
|
|
|
|
../../commands/ash/sh:
|
2010-06-22 14:03:09 +02:00
|
|
|
$(MAKE) -C ../../commands/ash sh
|
2010-05-27 00:49:57 +02:00
|
|
|
|
|
|
|
service: ../../commands/service/service
|
|
|
|
install -s ../../commands/service/$@ $@
|
|
|
|
|
|
|
|
../../commands/service:
|
2010-06-22 14:03:09 +02:00
|
|
|
$(MAKE) -C ../../commands/service
|
2010-05-27 00:49:57 +02:00
|
|
|
|
|
|
|
mfs: ../../servers/mfs/mfs
|
|
|
|
install -s ../../servers/mfs/$@ $@
|
|
|
|
|
|
|
|
../../servers/mfs/mfs:
|
2010-06-22 14:03:09 +02:00
|
|
|
$(MAKE) -C ../../servers/mfs
|
2010-05-27 00:49:57 +02:00
|
|
|
|
|
|
|
system.conf: ../../etc/system.conf
|
|
|
|
install -s ../../etc/$@ $@
|
|
|
|
|
|
|
|
passwd: ../../etc/passwd
|
|
|
|
install -s ../../etc/$@ $@
|
|
|
|
|
|
|
|
proto.gen: $(MAKEDEV) proto.sh proto
|
|
|
|
sh -e proto.sh >proto.gen
|
|
|
|
|
2010-06-25 20:29:09 +02:00
|
|
|
.include <bsd.prog.mk>
|