EMILE/tools/Makefile

80 lines
2.3 KiB
Makefile
Raw Normal View History

2004-05-19 00:09:58 +00:00
#
#
# (c) 2004 Laurent Vivier <Laurent@lvivier.info>
2004-05-19 00:09:58 +00:00
#
#
AS=$(CROSS_COMPILE)as
CC=$(CROSS_COMPILE)gcc
LD=$(CROSS_COMPILE)ld
AR=$(CROSS_COMPILE)ar
2004-12-24 23:03:47 +00:00
PROGRAMS = emile-set-cmdline emile-first-tune emile-install \
2005-11-12 22:28:50 +00:00
emile-set-output emile emile-map-set iso9660_ls \
2006-09-20 22:42:48 +00:00
iso9660_cat minigzip read_vmlinuz emile-mkisofs
2004-05-21 12:42:40 +00:00
2005-11-17 13:23:34 +00:00
SOURCES = emile-set-cmdline.c Makefile emile-first-tune.c \
emile-install.c emile-set-output.c emile.c \
2005-11-12 22:28:50 +00:00
emile_scanbus.c emile-map-set.c iso9660_ls.c \
2006-09-20 22:42:48 +00:00
iso9660_cat.c minigzip.c read_vmlinuz.c device.c gzio.c \
2007-05-11 12:20:14 +00:00
emile-mkisofs.c emile_config.c
2007-05-11 12:20:14 +00:00
HEADERS = device.h emile_config.h
DISTFILES =$(HEADERS) $(SOURCES) Makefile
2005-11-12 22:28:50 +00:00
CPPFLAGS = $(CROSS_COMPILE_CPPFLAGS) -DSIGNATURE="\"$(SIGNATURE)\"" -DPREFIX=\"$(PREFIX)\" \
2005-11-21 22:09:43 +00:00
-I../libemile -I../libiso9660 -I../libgzip -I../libstream \
2006-10-28 22:21:39 +00:00
-I../libcontainer -I../libmacos -DFATFREE -DNO_GZCOMPRESS
2005-11-21 22:09:43 +00:00
2007-02-24 14:02:11 +00:00
CFLAGS = -Wall -Werror -g
2005-11-17 13:23:34 +00:00
LDLIBS = $(CROSS_COMPILE_LDFLAGS) -L../libemile -lemile -L../libiso9660/native -liso9660 -L../libgzip/native -lgzip
2004-05-19 00:09:58 +00:00
2004-05-21 12:42:40 +00:00
all: $(PROGRAMS)
2007-05-11 12:20:14 +00:00
emile: emile.o emile_scanbus.o emile_config.o
2004-12-16 23:28:43 +00:00
2005-02-02 16:46:08 +00:00
emile-map-set: emile-map-set.o emile_scanbus.o
2005-11-12 22:28:50 +00:00
iso9660_ls: iso9660_ls.o device.o
iso9660_cat: iso9660_cat.o device.o
2005-11-17 13:23:34 +00:00
minigzip: minigzip.c gzio.c
read_vmlinuz: read_vmlinuz.o gzio.o
2006-09-20 22:42:48 +00:00
emile-mkisofs: emile-mkisofs.o device.o
install:
install -d $(DESTDIR)/$(PREFIX)/sbin/
install emile-set-cmdline $(DESTDIR)/$(PREFIX)/sbin/emile-set-cmdline
install emile-first-tune $(DESTDIR)/$(PREFIX)/sbin/emile-first-tune
install emile-install $(DESTDIR)/$(PREFIX)/sbin/emile-install
install emile-set-output $(DESTDIR)/$(PREFIX)/sbin/emile-set-output
install emile $(DESTDIR)/$(PREFIX)/sbin/emile
install emile-map-set $(DESTDIR)/$(PREFIX)/sbin/emile-map-set
2006-09-20 22:42:48 +00:00
install emile-mkisofs $(DESTDIR)/$(PREFIX)/sbin/emile-mkisofs
uninstall:
rm -f $(DESTDIR)/$(PREFIX)/sbin/emile-set-cmdline
rm -f $(DESTDIR)/$(PREFIX)/sbin/emile-first-tune
rm -f $(DESTDIR)/$(PREFIX)/sbin/emile-install
rm -f $(DESTDIR)/$(PREFIX)/sbin/emile-set-output
rm -f $(DESTDIR)/$(PREFIX)/sbin/emile
rm -f $(DESTDIR)/$(PREFIX)/sbin/emile-map-set
2006-09-20 22:42:48 +00:00
rm -f $(DESTDIR)/$(PREFIX)/sbin/emile-mkisofs
dist:
@echo TAR tools
@for file in $(DISTFILES); do \
dir=$$(dirname $$file); \
if [ "$$dir" != "" ] ; then \
mkdir -p $(DISTDIR)/tools/$$dir; \
fi; \
cp -p $$file $(DISTDIR)/tools/$$file; \
done
2004-05-19 00:09:58 +00:00
clean:
2004-05-21 12:42:40 +00:00
rm -f *.o $(PROGRAMS)