Files
s390-tools/ipl_tools/Makefile
Michael Holzheu b627b8d8e1 Initial s390-tools-2.0.0 import
This commit is based on the s390-tools-1.39.0 version.

Changes on top of s390-tools-1.39.0:

 - Add MIT license to all source files
 - Add LICENSE file
 - Transform REAMDE to README.md (markdown)
 - Add AUTHORS.md file
 - Add CONTRIBUTING.md file
 - Move changelog from README to CHANGELOG.md file

Reviewed-by: Stefan Haberland <sth@linux.vnet.ibm.com>
Signed-off-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
2017-08-21 10:55:40 +02:00

40 lines
1009 B
Makefile

include ../common.mak
all: chreipl lsreipl chshut lsshut
objects = main.o ccw.o fcp.o system.o shutdown.o \
cmd_lsshut.o cmd_chshut.o cmd_lsreipl.o cmd_chreipl.o proc.o
chreipl: $(objects)
$(LINK) $(ALL_LDFLAGS) $^ $(LOADLIBES) $(LDLIBS) -o $@
lsreipl:
ln -sf chreipl lsreipl
chshut:
ln -sf chreipl chshut
lsshut:
ln -sf chreipl lsshut
clean:
rm -f *.o lsreipl chreipl chshut lsshut
install: all
$(INSTALL) -g $(GROUP) -o $(OWNER) -m 755 chreipl \
$(DESTDIR)$(USRSBINDIR)
ln -f -s chreipl $(DESTDIR)$(USRSBINDIR)/lsreipl
ln -f -s chreipl $(DESTDIR)$(USRSBINDIR)/chshut
ln -f -s chreipl $(DESTDIR)$(USRSBINDIR)/lsshut
$(INSTALL) -g $(GROUP) -o $(OWNER) -m 644 man/chreipl.8 \
$(DESTDIR)$(MANDIR)/man8
$(INSTALL) -g $(GROUP) -o $(OWNER) -m 644 man/lsreipl.8 \
$(DESTDIR)$(MANDIR)/man8
$(INSTALL) -g $(GROUP) -o $(OWNER) -m 644 man/lsshut.8 \
$(DESTDIR)$(MANDIR)/man8
$(INSTALL) -g $(GROUP) -o $(OWNER) -m 644 man/chshut.8 \
$(DESTDIR)$(MANDIR)/man8
.PHONY: all install clean