mirror of
https://github.com/vivier/EMILE.git
synced 2024-09-08 04:54:25 +00:00
75 lines
2.4 KiB
Makefile
75 lines
2.4 KiB
Makefile
#
|
|
# (c) 2004 Laurent Vivier <LaurentVivier@wanadoo.fr>
|
|
#
|
|
#
|
|
|
|
AS=$(CROSS_COMPILE)as
|
|
CC=$(CROSS_COMPILE)gcc
|
|
LD=$(CROSS_COMPILE)ld
|
|
AR=$(CROSS_COMPILE)ar
|
|
|
|
CPPFLAGS = $(CROSS_COMPILE_CPPFLAGS)
|
|
LDFLAGS = $(CROSS_COMPILE_LDFLAGS)
|
|
|
|
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 \
|
|
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 \
|
|
emile_map_bootblock_read.o emile_map_bootblock_write.o \
|
|
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 \
|
|
emile_map_bootblock_is_valid.o emile_map_get_number.o \
|
|
emile_map_bootblock_get_type.o emile_scsi_get_dev.o \
|
|
emile_map_partition_get_flags.o emile_map_set_startup.o \
|
|
emile_scsi_get_rdev.o emile_map_has_apple_driver.o \
|
|
emile_map_seek_driver_partition.o emile_get_uncompressed_size.o \
|
|
emile_map_partition_set_flags.o emile_checksum.o \
|
|
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
|
|
|
|
HEADERS = emile.h libemile.h partition.h bootblock.h
|
|
|
|
DISTFILES = $(OBJS:.o=.c) $(HEADERS)
|
|
|
|
CFLAGS = -Wall -g
|
|
CPPFLAGS = -I../libmacos
|
|
|
|
all: $(LIBRARY)
|
|
|
|
$(LIBRARY): $(OBJS)
|
|
$(AR) rc $@ $^
|
|
|
|
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
|
|
|
|
clean:
|
|
rm -f $(OBJS) $(LIBRARY)
|