2010-05-27 00:49:57 +02:00
|
|
|
# Makefile for ramdisk image
|
|
|
|
|
2011-02-23 14:05:28 +01:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
2010-08-11 13:16:44 +02:00
|
|
|
PROGRAMS=ahci at_wini bios_wini cdprobe dev2name floppy loadramdisk mount \
|
2011-02-23 14:05:28 +01:00
|
|
|
pci procfs sh service sysenv mfs ext2
|
|
|
|
SCRIPTS=newroot
|
2010-09-02 17:44:36 +02:00
|
|
|
|
|
|
|
# acpi is not compiled with ack
|
|
|
|
.if ${COMPILER_TYPE} == "gnu"
|
|
|
|
PROGRAMS += acpi
|
|
|
|
.endif
|
|
|
|
|
2011-02-23 14:05:28 +01:00
|
|
|
.if ${OBJECT_FMT} == "ELF"
|
|
|
|
ELFSTRIP=/usr/gnu_cross/bin/i386-pc-minix3-strip
|
|
|
|
.else
|
|
|
|
STRIPFLAG+= -s
|
|
|
|
.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
|
2011-02-23 14:05:28 +01:00
|
|
|
CLEANFILES += $(PROGRAMS) $(SCRIPTS) $(EXTRA) bintoc image image.c t proto.gen
|
2010-05-27 00:49:57 +02:00
|
|
|
|
2010-06-01 17:11:43 +02:00
|
|
|
install: all
|
|
|
|
|
2010-05-27 00:49:57 +02:00
|
|
|
all: image.c
|
|
|
|
|
|
|
|
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
|
2011-02-23 14:05:28 +01:00
|
|
|
install ${STRIPFLAG} ../$@/$@ $@
|
2010-08-11 13:16:44 +02:00
|
|
|
|
|
|
|
../ahci/ahci:
|
|
|
|
$(MAKE) -C ../ahci
|
|
|
|
|
2010-05-27 00:49:57 +02:00
|
|
|
at_wini: ../at_wini/at_wini
|
2011-02-23 14:05:28 +01:00
|
|
|
install ${STRIPFLAG} ../$@/$@ $@
|
2010-05-27 00:49:57 +02:00
|
|
|
|
|
|
|
../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
|
2011-02-23 14:05:28 +01:00
|
|
|
install ${STRIPFLAG} ../$@/$@ $@
|
2010-05-27 00:49:57 +02:00
|
|
|
|
|
|
|
../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
|
2011-02-23 14:05:28 +01:00
|
|
|
install ${STRIPFLAG} ../$@/$@ $@
|
2010-05-27 00:49:57 +02:00
|
|
|
|
|
|
|
../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
|
2011-02-23 14:05:28 +01:00
|
|
|
install ${STRIPFLAG} ../$@/$@ $@
|
2010-09-02 17:44:36 +02:00
|
|
|
|
|
|
|
../acpi/acpi:
|
|
|
|
$(MAKE) -C ../acpi
|
|
|
|
|
2010-05-27 00:49:57 +02:00
|
|
|
pci: ../pci/pci
|
2011-02-23 14:05:28 +01:00
|
|
|
install ${STRIPFLAG} ../$@/$@ $@
|
2010-05-27 00:49:57 +02:00
|
|
|
|
|
|
|
../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
|
2011-02-23 14:05:28 +01:00
|
|
|
install ${STRIPFLAG} ../../commands/$@/$@ $@
|
2010-05-27 00:49:57 +02:00
|
|
|
|
|
|
|
../../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
|
2011-02-23 14:05:28 +01:00
|
|
|
install ${STRIPFLAG} ../../commands/$@/$@ $@
|
2010-05-27 00:49:57 +02:00
|
|
|
|
|
|
|
../../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
|
2011-02-23 14:05:28 +01:00
|
|
|
install ${STRIPFLAG} ../../commands/$@/$@ $@
|
2010-05-27 00:49:57 +02:00
|
|
|
|
|
|
|
../../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
|
2011-02-23 14:05:28 +01:00
|
|
|
install ${STRIPFLAG} ../../commands/$@/$@ $@
|
2010-08-02 16:15:48 +02:00
|
|
|
|
|
|
|
../../commands/mount/mount:
|
|
|
|
$(MAKE) -C ../../commands/mount
|
|
|
|
|
2010-08-02 16:49:35 +02:00
|
|
|
newroot: ../../commands/newroot/newroot.sh
|
2011-02-23 14:05:28 +01:00
|
|
|
install ${STRIPFLAG} ../../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
|
2011-02-23 14:05:28 +01:00
|
|
|
install ${STRIPFLAG} ../../commands/$@/$@ $@
|
2010-05-27 00:49:57 +02:00
|
|
|
|
2011-04-27 15:00:52 +02:00
|
|
|
../../commands/sysenv/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
|
2011-02-23 14:05:28 +01:00
|
|
|
install ${STRIPFLAG} ../../commands/ash/$@ $@
|
2010-05-27 00:49:57 +02:00
|
|
|
|
|
|
|
../../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
|
2011-02-23 14:05:28 +01:00
|
|
|
install ${STRIPFLAG} ../../commands/service/$@ $@
|
2010-05-27 00:49:57 +02:00
|
|
|
|
2011-04-27 15:00:52 +02:00
|
|
|
../../commands/service/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
|
2011-02-23 14:05:28 +01:00
|
|
|
install ${STRIPFLAG} ../../servers/mfs/$@ $@
|
2010-05-27 00:49:57 +02:00
|
|
|
|
|
|
|
../../servers/mfs/mfs:
|
2010-06-22 14:03:09 +02:00
|
|
|
$(MAKE) -C ../../servers/mfs
|
2010-05-27 00:49:57 +02:00
|
|
|
|
2011-02-23 14:05:28 +01:00
|
|
|
procfs: ../../servers/procfs/procfs
|
|
|
|
install ${STRIPFLAG} ../../servers/procfs/$@ $@
|
|
|
|
|
|
|
|
../../servers/procfs/procfs:
|
|
|
|
$(MAKE) -C ../../servers/procfs
|
|
|
|
|
2010-08-04 07:18:03 +02:00
|
|
|
ext2: ../../servers/ext2/ext2
|
2011-02-23 14:05:28 +01:00
|
|
|
install ${STRIPFLAG} ../../servers/ext2/$@ $@
|
2010-08-04 07:18:03 +02:00
|
|
|
|
|
|
|
../../servers/ext2/ext2:
|
|
|
|
$(MAKE) -C ../../servers/ext2
|
|
|
|
|
2010-05-27 00:49:57 +02:00
|
|
|
system.conf: ../../etc/system.conf
|
2011-02-23 14:05:28 +01:00
|
|
|
install ${STRIPFLAG} ../../etc/$@ $@
|
2010-05-27 00:49:57 +02:00
|
|
|
|
|
|
|
passwd: ../../etc/passwd
|
2011-02-23 14:05:28 +01:00
|
|
|
install ${STRIPFLAG} ../../etc/$@ $@
|
2010-05-27 00:49:57 +02:00
|
|
|
|
2010-07-01 08:14:06 +02:00
|
|
|
rs.single: ../../etc/rs.single
|
2011-02-23 14:05:28 +01:00
|
|
|
install ${STRIPFLAG} ../../etc/$@ $@
|
2010-07-01 08:14:06 +02:00
|
|
|
|
2011-02-23 14:05:28 +01:00
|
|
|
proto.gen: $(PROGRAMS) $(SCRIPTS) $(MAKEDEV) proto.sh proto
|
2010-05-27 00:49:57 +02:00
|
|
|
sh -e proto.sh >proto.gen
|
|
|
|
|
2011-06-09 16:57:51 +02:00
|
|
|
#.if ${OBJECT_FMT} == "ELF"
|
|
|
|
#proto.gen: elfstrip
|
|
|
|
#
|
|
|
|
#.PHONY: elfstrip
|
|
|
|
#
|
|
|
|
#elfstrip: $(PROGRAMS)
|
|
|
|
# ${ELFSTRIP} $(PROGRAMS)
|
|
|
|
#.endif
|
2011-02-23 14:05:28 +01:00
|
|
|
|
2010-06-25 20:29:09 +02:00
|
|
|
.include <bsd.prog.mk>
|