mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
599b141b8a
To remove the perl dependency from zipl rewrite the helper script in C. Closes: #18 Signed-off-by: Rafael Fonseca <r4f4rfs@gmail.com> Reviewed-by: Peter Oberparleiter <oberpar@linux.vnet.ibm.com> Signed-off-by: Stefan Haberland <sth@linux.vnet.ibm.com>
52 lines
1.4 KiB
Makefile
52 lines
1.4 KiB
Makefile
# Common definitions
|
|
include ../../common.mak
|
|
|
|
ALL_CPPFLAGS += -I../include -I../boot \
|
|
-DZFCPDUMP_DIR=$(ZFCPDUMP_DIR) \
|
|
-DZFCPDUMP_FS_IMAGE=$(ZFCPDUMP_FS_IMAGE) \
|
|
-DZFCPDUMP_FS_RD=$(ZFCPDUMP_FS_RD) \
|
|
-DZFCPDUMP_PART_IMAGE=$(ZFCPDUMP_PART_IMAGE) \
|
|
-DZFCPDUMP_PART_RD=$(ZFCPDUMP_PART_RD) \
|
|
-D_FILE_OFFSET_BITS=64 $(NO_PIE_CFLAGS)
|
|
ALL_LDFLAGS += -Wl,-z,noexecstack $(NO_PIE_LDFLAGS)
|
|
|
|
libs = $(rootdir)/libutil/libutil.a \
|
|
$(rootdir)/libu2s/libu2s.a
|
|
|
|
objects = misc.o error.o scan.o job.o boot.o bootmap.o disk.o \
|
|
install.o zipl.o $(rootdir)/zipl/boot/data.o
|
|
|
|
zipl_helpers = $(basename $(wildcard zipl_helper.*.c))
|
|
chreipl_helpers = $(subst zipl_,chreipl_, $(zipl_helpers))
|
|
|
|
all: zipl $(chreipl_helpers)
|
|
|
|
zipl: $(objects) $(libs)
|
|
|
|
zipl_helper.device-mapper: $(rootdir)/libdasd/libdasd.a \
|
|
$(rootdir)/libvtoc/libvtoc.a \
|
|
$(libs) zipl_helper.device-mapper.o
|
|
|
|
chreipl_helper.%: zipl_helper.%
|
|
ln -f -s $< $@
|
|
|
|
install: all
|
|
$(INSTALL) -d -m 755 $(DESTDIR)$(BINDIR)
|
|
$(INSTALL) -c zipl $(DESTDIR)$(BINDIR)
|
|
$(INSTALL) -m 755 $(zipl_helpers) $(chreipl_helpers) \
|
|
$(DESTDIR)$(TOOLS_LIBDIR)
|
|
$(CP) --no-dereference $(chreipl_helpers) $(DESTDIR)$(TOOLS_LIBDIR)
|
|
|
|
clean:
|
|
rm -f *.o $(zipl_helpers) $(chreipl_helpers) zipl
|
|
|
|
.PHONY: all install clean
|
|
|
|
# Additional manual dependencies
|
|
|
|
../boot/data.h:
|
|
make -C ../boot data.h
|
|
|
|
../boot/data.o:
|
|
make -C ../boot data.o
|