2004-05-19 00:09:58 +00:00
|
|
|
#
|
|
|
|
#
|
2013-09-05 12:39:22 +00:00
|
|
|
# (c) 2004-2007 Laurent Vivier <Laurent@Vivier.EU>
|
2004-05-19 00:09:58 +00:00
|
|
|
#
|
|
|
|
#
|
|
|
|
|
2007-09-06 22:09:11 +00:00
|
|
|
TOP=$(shell pwd)
|
2005-05-10 20:20:15 +00:00
|
|
|
|
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 \
|
2008-04-12 21:19:32 +00:00
|
|
|
iso9660_cat minigzip read_vmlinuz emile-mkisofs \
|
2015-11-08 21:48:59 +00:00
|
|
|
ext2_ls ext2_cat emile-mktable emile-conf
|
2004-05-21 12:42:40 +00:00
|
|
|
|
2017-03-15 20:34:14 +00:00
|
|
|
SOURCES = emile-set-cmdline.c emile-first-tune.c \
|
2005-11-08 02:17:41 +00:00
|
|
|
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 \
|
2015-11-08 21:48:59 +00:00
|
|
|
emile-mkisofs.c ext2_ls.c ext2_cat.c emile-mktable.c \
|
|
|
|
emile-conf.c
|
2005-12-01 13:51:36 +00:00
|
|
|
|
2008-04-16 18:32:17 +00:00
|
|
|
HEADERS = device.h
|
2005-12-01 13:51:36 +00:00
|
|
|
|
|
|
|
DISTFILES =$(HEADERS) $(SOURCES) Makefile
|
2005-11-08 02:17:41 +00:00
|
|
|
|
2005-11-12 22:28:50 +00:00
|
|
|
CPPFLAGS = $(CROSS_COMPILE_CPPFLAGS) -DSIGNATURE="\"$(SIGNATURE)\"" -DPREFIX=\"$(PREFIX)\" \
|
2015-09-20 20:59:12 +00:00
|
|
|
-I$(TOP)/../libemile -I$(TOP)/../libiso9660 -I$(TOP)/../libgzip -I$(TOP)/../libstream \
|
|
|
|
-I$(TOP)/../libcontainer -I$(TOP)/../libmacos -DFATFREE -DNO_GZCOMPRESS \
|
|
|
|
-I$(TOP)/../libconfig -I$(TOP)/../libmap -I$(TOP)/../libext2
|
2005-11-21 22:09:43 +00:00
|
|
|
|
2007-02-24 14:02:11 +00:00
|
|
|
CFLAGS = -Wall -Werror -g
|
2015-09-20 20:59:12 +00:00
|
|
|
LDLIBS = $(CROSS_COMPILE_LDFLAGS) -L$(TOP)/../libemile/$(TARGET) -lemile -L$(TOP)/../libiso9660/$(TARGET) -liso9660 -L$(TOP)/../libgzip/$(TARGET) -lgzip -L$(TOP)/../libconfig/$(TARGET) -lconfig -L$(TOP)/../libmap/$(TARGET) -lmap -L$(TOP)/../libext2/$(TARGET) -lext2
|
|
|
|
|
|
|
|
all:
|
|
|
|
test -d $(TARGET) || mkdir $(TARGET)
|
|
|
|
$(MAKE) -C $(TARGET) -f $(TOP)/Makefile $(PROGRAMS) TOP=$(TOP) VPATH=$(TOP)
|
2004-05-19 00:09:58 +00:00
|
|
|
|
2004-05-21 10:23:12 +00:00
|
|
|
|
2008-04-16 18:32:17 +00:00
|
|
|
emile-install: emile-install.o
|
2007-08-25 21:33:57 +00:00
|
|
|
|
2008-04-16 18:32:17 +00:00
|
|
|
emile: emile.o emile_scanbus.o device.o
|
2004-12-16 23:28:43 +00:00
|
|
|
|
2007-10-09 19:23:18 +00:00
|
|
|
emile-map-set: emile-map-set.o emile_scanbus.o device.o
|
2005-02-02 16:46:08 +00:00
|
|
|
|
2005-11-12 22:28:50 +00:00
|
|
|
iso9660_ls: iso9660_ls.o device.o
|
|
|
|
|
|
|
|
iso9660_cat: iso9660_cat.o device.o
|
|
|
|
|
2008-04-12 21:19:32 +00:00
|
|
|
ext2_ls: ext2_ls.o device.o
|
|
|
|
|
|
|
|
ext2_cat: ext2_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
|
2015-11-01 21:39:48 +00:00
|
|
|
emile-mktable: emile-mktable.o device.o
|
2015-11-08 21:48:59 +00:00
|
|
|
emile-conf: emile-conf.o device.o
|
2006-09-20 22:42:48 +00:00
|
|
|
|
2005-11-08 02:17:41 +00:00
|
|
|
install:
|
|
|
|
install -d $(DESTDIR)/$(PREFIX)/sbin/
|
2017-03-15 21:52:40 +00:00
|
|
|
install $(TARGET)/emile-set-cmdline $(DESTDIR)/$(PREFIX)/sbin/emile-set-cmdline
|
|
|
|
install $(TARGET)/emile-first-tune $(DESTDIR)/$(PREFIX)/sbin/emile-first-tune
|
|
|
|
install $(TARGET)/emile-install $(DESTDIR)/$(PREFIX)/sbin/emile-install
|
|
|
|
install $(TARGET)/emile-set-output $(DESTDIR)/$(PREFIX)/sbin/emile-set-output
|
|
|
|
install $(TARGET)/emile $(DESTDIR)/$(PREFIX)/sbin/emile
|
|
|
|
install $(TARGET)/emile-map-set $(DESTDIR)/$(PREFIX)/sbin/emile-map-set
|
|
|
|
install $(TARGET)/emile-mkisofs $(DESTDIR)/$(PREFIX)/sbin/emile-mkisofs
|
|
|
|
install $(TARGET)/emile-mktable $(DESTDIR)/$(PREFIX)/sbin/emile-mktable
|
|
|
|
install $(TARGET)/emile-conf $(DESTDIR)/$(PREFIX)/sbin/emile-conf
|
2005-11-08 02:17:41 +00:00
|
|
|
|
|
|
|
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
|
2015-11-01 21:39:48 +00:00
|
|
|
rm -f $(DESTDIR)/$(PREFIX)/sbin/emile-mktable
|
2015-11-08 21:48:59 +00:00
|
|
|
rm -f $(DESTDIR)/$(PREFIX)/sbin/emile-conf
|
2005-11-08 02:17:41 +00:00
|
|
|
|
2007-09-13 18:32:14 +00:00
|
|
|
include $(TOP)/../config.mk
|
2007-09-06 22:09:11 +00:00
|
|
|
include $(TOP)/../tools.mk
|
2017-02-27 15:41:01 +00:00
|
|
|
include $(TOP)/../Rules.mk
|