2004-02-15 20:46:45 +00:00
|
|
|
#
|
|
|
|
#
|
2006-09-15 14:55:39 +00:00
|
|
|
# (c) 2004,2005 Laurent Vivier <Laurent@lvivier.info>
|
2004-02-15 20:46:45 +00:00
|
|
|
#
|
|
|
|
#
|
|
|
|
|
2005-11-25 19:54:40 +00:00
|
|
|
first_scsi: ASFLAGS += --defsym SCSI_SUPPORT=1
|
|
|
|
first_floppy: ASFLAGS += --defsym FLOPPY_SUPPORT=1
|
|
|
|
|
2004-12-07 00:35:33 +00:00
|
|
|
TOP = $(shell pwd)
|
|
|
|
VPATH = $(TOP)
|
|
|
|
|
2005-11-21 21:18:48 +00:00
|
|
|
ASFLAGS = -I$(TOP)
|
|
|
|
|
2005-11-16 14:00:27 +00:00
|
|
|
SOURCES = first.S
|
2005-11-25 19:54:40 +00:00
|
|
|
CLEAN = first_floppy.o first_scsi.o
|
2005-11-08 02:05:45 +00:00
|
|
|
|
2005-11-25 19:54:40 +00:00
|
|
|
HEADERS = floppy.i macos.i scsi.i 32bitmode.i
|
2005-11-16 14:00:27 +00:00
|
|
|
|
2005-11-25 19:54:40 +00:00
|
|
|
PROGRAMS = first_scsi first_floppy
|
2005-11-16 14:00:27 +00:00
|
|
|
|
2005-11-25 19:54:40 +00:00
|
|
|
.PHONY: all
|
2005-11-16 14:00:27 +00:00
|
|
|
|
2005-11-25 19:54:40 +00:00
|
|
|
all: $(PROGRAMS)
|
2005-11-16 14:00:27 +00:00
|
|
|
|
2005-11-25 19:54:40 +00:00
|
|
|
%: %.o
|
2004-12-07 00:35:33 +00:00
|
|
|
$(OBJCOPY) -O binary $^ $@
|
2004-02-15 20:46:45 +00:00
|
|
|
|
2005-11-25 19:54:40 +00:00
|
|
|
first_scsi.o first_floppy.o first_ata.o: first.S
|
|
|
|
$(AS) $(ASFLAGS) -o $@ $^
|
2004-02-15 20:46:45 +00:00
|
|
|
|
2005-11-08 02:05:45 +00:00
|
|
|
install::
|
|
|
|
install -d $(DESTDIR)/$(PREFIX)/boot/emile/
|
2005-11-25 19:54:40 +00:00
|
|
|
install first_scsi $(DESTDIR)/$(PREFIX)/boot/emile/first_scsi
|
2005-11-08 02:05:45 +00:00
|
|
|
install -d $(DESTDIR)/$(PREFIX)/lib/emile/
|
2005-11-25 19:54:40 +00:00
|
|
|
install first_floppy $(DESTDIR)/$(PREFIX)/lib/emile/first_floppy
|
2005-11-08 02:05:45 +00:00
|
|
|
|
|
|
|
uninstall::
|
|
|
|
rm -f $(DESTDIR)/$(PREFIX)/boot/emile/first_scsi
|
|
|
|
rm -f $(DESTDIR)/$(PREFIX)/lib/emile/first_floppy
|
|
|
|
|
2005-11-16 14:00:27 +00:00
|
|
|
include $(TOP)/../Rules.mk
|