mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
81f985dde3
This patch replaces the INSTALL macro with LTINSTALL so that libtool is used to install the applications. Libtool will install the binary from the proper location and display a warning if any shared library dependancies are not properly installed. This ensures that a libtool wrapper shell script is not installed in place of application when libtool wrappers are being used. Signed-off-by: Rich Johnston <rjohnston@sgi.com> Reviewed-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Ben Myer <bpm@sgi.com>
51 lines
1020 B
Makefile
51 lines
1020 B
Makefile
#
|
|
# Copyright (c) 2003-2005 Silicon Graphics, Inc. All Rights Reserved.
|
|
#
|
|
|
|
TOPDIR = ..
|
|
include $(TOPDIR)/include/builddefs
|
|
|
|
TARGETS = doio fsstress fsx growfiles iogen
|
|
SCRIPTS = rwtest.sh
|
|
CFILES = $(TARGETS:=.c)
|
|
HFILES = doio.h
|
|
LDIRT = $(TARGETS)
|
|
LCFLAGS = -DXFS
|
|
LCFLAGS += -I$(TOPDIR)/src #Used for including $(TOPDIR)/src/global.h
|
|
|
|
ifeq ($(HAVE_ATTR_LIST), true)
|
|
LCFLAGS += -DHAVE_ATTR_LIST
|
|
LLDLIBS += $(LIBATTR)
|
|
endif
|
|
ifeq ($(PKG_PLATFORM),irix)
|
|
LCFLAGS += -DHAVE_ATTR_LIST
|
|
LLDLIBS += $(LIBATTR)
|
|
endif
|
|
|
|
ifeq ($(HAVE_AIO), true)
|
|
TARGETS += aio-stress
|
|
LCFLAGS += -DAIO
|
|
LLDLIBS += -laio -lpthread
|
|
endif
|
|
|
|
ifeq ($(HAVE_FALLOCATE), true)
|
|
LCFLAGS += -DFALLOCATE
|
|
endif
|
|
|
|
default: depend $(TARGETS)
|
|
|
|
depend: .dep
|
|
|
|
include $(BUILDRULES)
|
|
|
|
$(TARGETS): $(LIBTEST)
|
|
@echo " [CC] $@"
|
|
$(Q)$(LTLINK) $@.c -o $@ $(CFLAGS) $(LDFLAGS) $(LDLIBS) $(LIBTEST)
|
|
|
|
install: default
|
|
$(INSTALL) -m 755 -d $(PKG_LIB_DIR)/ltp
|
|
$(LTINSTALL) -m 755 $(TARGETS) $(PKG_LIB_DIR)/ltp
|
|
$(INSTALL) -m 755 $(SCRIPTS) $(PKG_LIB_DIR)/ltp
|
|
|
|
-include .dep
|