2010-05-27 00:49:57 +02:00
|
|
|
# Makefile for ramdisk image
|
|
|
|
|
2010-08-11 13:16:44 +02:00
|
|
|
PROGRAMS=ahci at_wini bios_wini cdprobe dev2name floppy loadramdisk mount \
|
|
|
|
newroot pci sh service sysenv mfs ext2
|
2010-09-02 17:44:36 +02:00
|
|
|
|
|
|
|
# acpi is not compiled with ack
|
|
|
|
.if ${COMPILER_TYPE} == "gnu"
|
|
|
|
PROGRAMS += acpi
|
|
|
|
.endif
|
|
|
|
|
2010-07-01 08:14:06 +02:00
|
|
|
EXTRA=system.conf passwd rs.single
|
2010-05-27 00:49:57 +02:00
|
|
|
|
2010-07-06 11:19:04 +02:00
|
|
|
CPPFLAGS+= -I${MINIXSRCDIR}/servers -I${MINIXSRCDIR}
|
2010-05-27 00:49:57 +02:00
|
|
|
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
|
|
|
|
|
2010-09-02 17:44:36 +02:00
|
|
|
image: proto.gen mtab rc $(EXTRA)
|
2010-08-05 14:35:00 +02:00
|
|
|
mkfs.mfs image proto.gen || { rm -f image; false; }
|
2010-05-27 00:49:57 +02:00
|
|
|
|
2010-08-11 13:16:44 +02:00
|
|
|
ahci: ../ahci/ahci
|
|
|
|
install -s ../$@/$@ $@
|
|
|
|
|
|
|
|
../ahci/ahci:
|
|
|
|
$(MAKE) -C ../ahci
|
|
|
|
|
2010-05-27 00:49:57 +02:00
|
|
|
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
|
|
|
|
2010-09-02 17:44:36 +02:00
|
|
|
acpi: ../acpi/acpi
|
|
|
|
install -s ../$@/$@ $@
|
|
|
|
|
|
|
|
../acpi/acpi:
|
|
|
|
$(MAKE) -C ../acpi
|
|
|
|
|
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
|
|
|
|
2010-08-02 16:15:48 +02:00
|
|
|
mount: ../../commands/mount/mount
|
|
|
|
install -s ../../commands/$@/$@ $@
|
|
|
|
|
|
|
|
../../commands/mount/mount:
|
|
|
|
$(MAKE) -C ../../commands/mount
|
|
|
|
|
2010-08-02 16:49:35 +02:00
|
|
|
newroot: ../../commands/newroot/newroot.sh
|
|
|
|
install -s ../../commands/$@/$@.sh $@
|
2010-05-27 00:49:57 +02:00
|
|
|
|
|
|
|
../../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
|
|
|
|
2010-08-04 07:18:03 +02:00
|
|
|
ext2: ../../servers/ext2/ext2
|
|
|
|
install -s ../../servers/ext2/$@ $@
|
|
|
|
|
|
|
|
../../servers/ext2/ext2:
|
|
|
|
$(MAKE) -C ../../servers/ext2
|
|
|
|
|
2010-05-27 00:49:57 +02:00
|
|
|
system.conf: ../../etc/system.conf
|
|
|
|
install -s ../../etc/$@ $@
|
|
|
|
|
|
|
|
passwd: ../../etc/passwd
|
|
|
|
install -s ../../etc/$@ $@
|
|
|
|
|
2010-07-01 08:14:06 +02:00
|
|
|
rs.single: ../../etc/rs.single
|
|
|
|
install -s ../../etc/$@ $@
|
|
|
|
|
2010-09-02 17:44:36 +02:00
|
|
|
proto.gen: $(PROGRAMS) $(MAKEDEV) proto.sh proto
|
2010-05-27 00:49:57 +02:00
|
|
|
sh -e proto.sh >proto.gen
|
|
|
|
|
2010-06-25 20:29:09 +02:00
|
|
|
.include <bsd.prog.mk>
|