1*49cdfc7eSAndroid Build Coastguard Worker# SPDX-License-Identifier: GPL-2.0-or-later 2*49cdfc7eSAndroid Build Coastguard Worker# testcases/kernel/syscalls Makefile. 3*49cdfc7eSAndroid Build Coastguard Worker# 4*49cdfc7eSAndroid Build Coastguard Worker# Copyright (C) 2009, Cisco Systems Inc. 5*49cdfc7eSAndroid Build Coastguard Worker# 6*49cdfc7eSAndroid Build Coastguard Worker# Ngie Cooper, July 2009 7*49cdfc7eSAndroid Build Coastguard Worker# 8*49cdfc7eSAndroid Build Coastguard Worker 9*49cdfc7eSAndroid Build Coastguard Workertop_srcdir ?= ../../../.. 10*49cdfc7eSAndroid Build Coastguard Worker 11*49cdfc7eSAndroid Build Coastguard Workerinclude $(top_srcdir)/include/mk/testcases.mk 12*49cdfc7eSAndroid Build Coastguard Worker 13*49cdfc7eSAndroid Build Coastguard WorkerCPPFLAGS += -D_XOPEN_SOURCE=500 -D_XOPEN_SOURCE_EXTENDED 14*49cdfc7eSAndroid Build Coastguard Worker 15*49cdfc7eSAndroid Build Coastguard WorkerMAKE_TARGETS := nftw01 nftw6401 16*49cdfc7eSAndroid Build Coastguard Worker 17*49cdfc7eSAndroid Build Coastguard Workernftw01: CPPFLAGS += -D_LARGEFILE_SOURCE 18*49cdfc7eSAndroid Build Coastguard Worker 19*49cdfc7eSAndroid Build Coastguard Workernftw01: nftw.o tools.o test_func.o test.o lib.o 20*49cdfc7eSAndroid Build Coastguard Worker $(LINK.o) $^ $(LOADLIBES) $(LDLIBS) $(OUTPUT_OPTION) 21*49cdfc7eSAndroid Build Coastguard Worker 22*49cdfc7eSAndroid Build Coastguard Workernftw64.o tools64.o test_func64.o test64.o lib64.o: %.o: %.c 23*49cdfc7eSAndroid Build Coastguard Worker 24*49cdfc7eSAndroid Build Coastguard Worker%64.o: CPPFLAGS += -D_LARGEFILE64_SOURCE 25*49cdfc7eSAndroid Build Coastguard Worker 26*49cdfc7eSAndroid Build Coastguard Workernftw6401: nftw64.o tools64.o test_func64.o test64.o lib64.o 27*49cdfc7eSAndroid Build Coastguard Worker $(LINK.o) $^ $(LOADLIBES) $(LDLIBS) $(OUTPUT_OPTION) 28*49cdfc7eSAndroid Build Coastguard Worker 29*49cdfc7eSAndroid Build Coastguard Workerinclude $(top_srcdir)/include/mk/generic_leaf_target.mk 30