mirror of
https://github.com/vivier/EMILE.git
synced 2024-09-07 13:54:29 +00:00
Add install and first_floppy
This commit is contained in:
parent
4dc4058c13
commit
0ce05233d3
19
Makefile
19
Makefile
@ -6,6 +6,8 @@
|
|||||||
PACKAGE = emile
|
PACKAGE = emile
|
||||||
VERSION = 0.7CVS
|
VERSION = 0.7CVS
|
||||||
|
|
||||||
|
PREFIX=/
|
||||||
|
|
||||||
# kernel boot arguments
|
# kernel boot arguments
|
||||||
|
|
||||||
RAMDISK=$(shell ls ramdisk.gz 2> /dev/null)
|
RAMDISK=$(shell ls ramdisk.gz 2> /dev/null)
|
||||||
@ -47,16 +49,17 @@ KERNEL=vmlinux
|
|||||||
FILE=file -bknL
|
FILE=file -bknL
|
||||||
KERNEL_SIZE=$(shell ls -l vmlinux.bin | awk '{print $$5}')
|
KERNEL_SIZE=$(shell ls -l vmlinux.bin | awk '{print $$5}')
|
||||||
|
|
||||||
all: libemile tools first/first second/second_floppy
|
all: libemile tools first/first_floppy second/second_floppy
|
||||||
|
|
||||||
floppy.img: libemile tools first/first vmlinuz second/second_floppy $(RAMDISK)
|
floppy.img: libemile tools first/first_floppy vmlinuz second/second_floppy \
|
||||||
|
$(RAMDISK)
|
||||||
ifeq ($(RAMDISK),ramdisk.gz)
|
ifeq ($(RAMDISK),ramdisk.gz)
|
||||||
tools/emile-install -f first/first -s second/second_floppy \
|
tools/emile-install -f first/first_floppy -s second/second_floppy \
|
||||||
-i vmlinuz -b $(KERNEL_SIZE) \
|
-i vmlinuz -b $(KERNEL_SIZE) \
|
||||||
-r $(RAMDISK) \
|
-r $(RAMDISK) \
|
||||||
floppy.img.X
|
floppy.img.X
|
||||||
else
|
else
|
||||||
tools/emile-install -f first/first -s second/second_floppy \
|
tools/emile-install -f first/first_floppy -s second/second_floppy \
|
||||||
-i vmlinuz -b $(KERNEL_SIZE) \
|
-i vmlinuz -b $(KERNEL_SIZE) \
|
||||||
floppy.img.X
|
floppy.img.X
|
||||||
endif
|
endif
|
||||||
@ -71,7 +74,7 @@ vmlinuz: vmlinux.bin
|
|||||||
gzip -9 vmlinuz.out
|
gzip -9 vmlinuz.out
|
||||||
mv vmlinuz.out.gz vmlinuz
|
mv vmlinuz.out.gz vmlinuz
|
||||||
|
|
||||||
first/first::
|
first/first_floppy::
|
||||||
$(MAKE) -C first OBJCOPY=$(OBJCOPY) LD=$(LD) CC=$(CC) AS=$(AS) SIGNATURE="$(SIGNATURE)"
|
$(MAKE) -C first OBJCOPY=$(OBJCOPY) LD=$(LD) CC=$(CC) AS=$(AS) SIGNATURE="$(SIGNATURE)"
|
||||||
|
|
||||||
second/second_floppy::
|
second/second_floppy::
|
||||||
@ -89,6 +92,12 @@ dump: floppy.img
|
|||||||
dd if=floppy.img of=/dev/fd0 bs=512
|
dd if=floppy.img of=/dev/fd0 bs=512
|
||||||
eject /dev/fd0
|
eject /dev/fd0
|
||||||
|
|
||||||
|
install:
|
||||||
|
$(MAKE) -C libemile DESTDIR=$(DESTDIR) PREFIX=$(PREFIX) install
|
||||||
|
$(MAKE) -C tools DESTDIR=$(DESTDIR) PREFIX=$(PREFIX) install
|
||||||
|
$(MAKE) -C first DESTDIR=$(DESTDIR) PREFIX=$(PREFIX) install
|
||||||
|
$(MAKE) -C second DESTDIR=$(DESTDIR) PREFIX=$(PREFIX) install
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(MAKE) -C libemile clean
|
$(MAKE) -C libemile clean
|
||||||
$(MAKE) -C tools clean
|
$(MAKE) -C tools clean
|
||||||
|
Loading…
Reference in New Issue
Block a user