android13/external/ltp/testcases/kernel/syscalls/swapon/Makefile

18 lines
484 B
Makefile

# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (c) International Business Machines Corp., 2001
NEEDSPECIAL := $(shell echo MAX_SWAPFILES | $(CC) -E -xc -include linux/swap.h 2>/dev/null - | tail -n 1 | grep 32; echo $?)
ifneq ($(strip $(NEEDSPECIAL)),)
export CFLAGS += -DOLDER_DISTRO_RELEASE
endif
top_srcdir ?= ../../../..
LTPLIBS = ltpswap
include $(top_srcdir)/include/mk/testcases.mk
LTPLDLIBS = -lltpswap
include $(top_srcdir)/include/mk/generic_leaf_target.mk