EMILE/first/Makefile

32 lines
644 B
Makefile
Raw Normal View History

2004-02-15 20:46:45 +00:00
#
#
# (c) 2004 Laurent Vivier <LaurentVivier@wanadoo.fr>
#
#
2004-12-07 00:35:33 +00:00
TOP = $(shell pwd)
VPATH = $(TOP)
all: first_floppy first_scsi
2004-02-15 20:46:45 +00:00
first: first.o
2004-12-07 00:35:33 +00:00
$(OBJCOPY) -O binary $^ $@
2004-02-15 20:46:45 +00:00
first.o: first.S
2004-12-07 00:35:33 +00:00
$(AS) $(ASFLAGS) $(SCSIFLAGS) -o $@ $^
first_floppy::
test -d floppy || mkdir floppy
cd floppy && make -f $(TOP)/Makefile TOP=$(TOP) AS=$(AS) \
OBJCOPY=$(OBJCOPY) first
mv floppy/first first_floppy
first_scsi::
test -d scsi || mkdir scsi
cd scsi && make -f $(TOP)/Makefile TOP=$(TOP) AS=$(AS) \
OBJCOPY=$(OBJCOPY) SCSIFLAGS="--defsym SCSI_SUPPORT=1" first
mv scsi/first first_scsi
2004-02-15 20:46:45 +00:00
clean:
2004-12-07 00:35:33 +00:00
rm -f first_floppy first_scsi floppy/*.o scsi/*.o