EMILE/first/Makefile

44 lines
896 B
Makefile
Raw Normal View History

2004-02-15 20:46:45 +00:00
#
#
2007-09-06 22:09:11 +00:00
# (c) 2004-2007 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)
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-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
install::
install -d $(DESTDIR)/$(PREFIX)/boot/emile/
2005-11-25 19:54:40 +00:00
install first_scsi $(DESTDIR)/$(PREFIX)/boot/emile/first_scsi
install -d $(DESTDIR)/$(PREFIX)/lib/emile/
2005-11-25 19:54:40 +00:00
install first_floppy $(DESTDIR)/$(PREFIX)/lib/emile/first_floppy
uninstall::
rm -f $(DESTDIR)/$(PREFIX)/boot/emile/first_scsi
rm -f $(DESTDIR)/$(PREFIX)/lib/emile/first_floppy
2007-09-06 22:09:11 +00:00
include $(TOP)/../tools.mk
2005-11-16 14:00:27 +00:00
include $(TOP)/../Rules.mk