mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
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>
32 lines
642 B
Makefile
32 lines
642 B
Makefile
# Common definitions
|
|
include ../../common.mak
|
|
|
|
ALL_CPPFLAGS += -I../include -std=gnu99 -Wno-unused-parameter
|
|
LDLIBS += -lpthread -lrt
|
|
ifneq ($(HAVE_ZLIB),0)
|
|
ALL_CPPFLAGS += -DHAVE_ZLIB
|
|
LDLIBS += -lz
|
|
endif
|
|
|
|
core_objects = buffer.o dref.o global.o dump.o idcache.o misc.o strarray.o tar.o
|
|
libs = $(rootdir)/libutil/libutil.a
|
|
|
|
check_dep_zlib:
|
|
$(call check_dep, \
|
|
"dump2tar", \
|
|
"zlib.h", \
|
|
"zlib-devel or libz-dev", \
|
|
"HAVE_ZLIB=0")
|
|
|
|
all: check_dep_zlib dump2tar
|
|
|
|
dump2tar: $(core_objects) dump2tar.o $(libs)
|
|
|
|
install: dump2tar
|
|
$(INSTALL) -c dump2tar $(DESTDIR)$(USRBINDIR)
|
|
|
|
clean:
|
|
@rm -f dump2tar *.o
|
|
|
|
.PHONY: all install clean
|