2005-11-08 02:16:50 +00:00
|
|
|
#
|
|
|
|
# (c) 2004 Laurent Vivier <LaurentVivier@wanadoo.fr>
|
|
|
|
#
|
|
|
|
#
|
|
|
|
|
2005-05-10 20:20:15 +00:00
|
|
|
AS=$(CROSS_COMPILE)as
|
|
|
|
CC=$(CROSS_COMPILE)gcc
|
|
|
|
LD=$(CROSS_COMPILE)ld
|
|
|
|
AR=$(CROSS_COMPILE)ar
|
|
|
|
|
|
|
|
CPPFLAGS = $(CROSS_COMPILE_CPPFLAGS)
|
|
|
|
LDFLAGS = $(CROSS_COMPILE_LDFLAGS)
|
|
|
|
|
2004-12-09 22:57:09 +00:00
|
|
|
LIBRARY = libemile.a
|
|
|
|
|
|
|
|
OBJS = emile_first_get_param.o emile_first_set_param.o \
|
|
|
|
emile_first_set_param_scsi.o emile_floppy_create_image.o \
|
|
|
|
emile_scsi_create_container.o emile_second_get_cmdline.o \
|
|
|
|
emile_second_get_kernel.o emile_second_get_output.o \
|
|
|
|
emile_second_set_cmdline.o emile_second_set_kernel.o \
|
2004-12-14 23:48:42 +00:00
|
|
|
emile_second_set_kernel_scsi.o emile_second_set_output.o \
|
|
|
|
emile_second_get_buffer_size.o emile_second_set_buffer_size.o \
|
|
|
|
emile_map_open.o emile_map_close.o emile_map_read.o \
|
|
|
|
emile_map_write.o emile_map_is_valid.o emile_map_geometry.o \
|
|
|
|
emile_map_get_driver_number.o emile_map_get_driver_info.o \
|
2004-12-16 23:24:22 +00:00
|
|
|
emile_map_bootblock_read.o emile_map_bootblock_write.o \
|
2004-12-14 23:48:42 +00:00
|
|
|
emile_map_partition_is_valid.o emile_map_get_partition_geometry.o \
|
|
|
|
emile_map_get_partition_type.o emile_map_get_partition_name.o \
|
|
|
|
emile_map_partition_is_bootable.o emile_map_partition_is_startup.o \
|
|
|
|
emile_map_set_partition_type.o emile_map_set_partition_name.o \
|
|
|
|
emile_map_partition_set_bootable.o emile_map_partition_set_startup.o \
|
2004-12-16 23:24:22 +00:00
|
|
|
emile_map_bootblock_is_valid.o emile_map_get_number.o \
|
2004-12-21 17:59:35 +00:00
|
|
|
emile_map_bootblock_get_type.o emile_scsi_get_dev.o \
|
|
|
|
emile_map_partition_get_flags.o emile_map_set_startup.o \
|
2004-12-22 00:27:13 +00:00
|
|
|
emile_scsi_get_rdev.o emile_map_has_apple_driver.o \
|
2004-12-27 22:35:51 +00:00
|
|
|
emile_map_seek_driver_partition.o emile_get_uncompressed_size.o \
|
2005-02-02 14:33:24 +00:00
|
|
|
emile_map_partition_set_flags.o emile_checksum.o \
|
2005-02-04 00:51:50 +00:00
|
|
|
emile_map_get_bootinfo.o emile_map_dev.o emile_map_set_bootinfo.o \
|
|
|
|
emile_map_set_driver_info.o emile_map_set_driver_number.o \
|
|
|
|
emile_block0_write.o
|
2004-12-09 22:57:09 +00:00
|
|
|
|
2005-11-08 02:16:50 +00:00
|
|
|
HEADERS = emile.h libemile.h partition.h bootblock.h
|
|
|
|
|
|
|
|
DISTFILES = $(OBJS:.o=.c) $(HEADERS)
|
2004-12-09 22:57:09 +00:00
|
|
|
|
2004-12-21 15:17:37 +00:00
|
|
|
CFLAGS = -Wall -g
|
2005-11-08 02:16:50 +00:00
|
|
|
CPPFLAGS = -I../libmacos
|
2004-12-09 22:57:09 +00:00
|
|
|
|
|
|
|
all: $(LIBRARY)
|
|
|
|
|
|
|
|
$(LIBRARY): $(OBJS)
|
|
|
|
$(AR) rc $@ $^
|
|
|
|
|
2005-11-08 02:16:50 +00:00
|
|
|
install:
|
|
|
|
install -d $(DESTDIR)/$(PREFIX)/usr/include/
|
|
|
|
install libemile.h $(DESTDIR)/$(PREFIX)/usr/include/libemile.h
|
|
|
|
install -d $(DESTDIR)/$(PREFIX)/usr/lib/
|
|
|
|
install libemile.a $(DESTDIR)/$(PREFIX)/usr/lib/libemile.a
|
|
|
|
|
|
|
|
uninstall:
|
|
|
|
rm -f $(DESTDIR)/$(PREFIX)/usr/include/libemile.h
|
|
|
|
rm -fr $(DESTDIR)/$(PREFIX)/usr/lib/libemile.a
|
|
|
|
|
|
|
|
dist:
|
|
|
|
for file in $(DISTFILES); do \
|
|
|
|
dir=$$(dirname $$file); \
|
|
|
|
if [ "$$dir" != "" ] ; then \
|
|
|
|
mkdir -p $(DISTDIR)/libemile/$$dir; \
|
|
|
|
fi; \
|
|
|
|
cp -p $$file $(DISTDIR)/libemile/$$file; \
|
|
|
|
done
|
|
|
|
|
2004-12-09 22:57:09 +00:00
|
|
|
clean:
|
|
|
|
rm -f $(OBJS) $(LIBRARY)
|