18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0 28c2ecf20Sopenharmony_ciTEST_GEN_PROGS := gettimeofday context_switch fork mmap_bench futex_bench null_syscall 38c2ecf20Sopenharmony_ciTEST_GEN_FILES := exec_target 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ciTEST_FILES := settings 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ciCFLAGS += -O2 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_citop_srcdir = ../../../../.. 108c2ecf20Sopenharmony_ciinclude ../../lib.mk 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ci$(TEST_GEN_PROGS): ../harness.c 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_ci$(OUTPUT)/context_switch: ../utils.c 158c2ecf20Sopenharmony_ci$(OUTPUT)/context_switch: CFLAGS += -maltivec -mvsx -mabi=altivec 168c2ecf20Sopenharmony_ci$(OUTPUT)/context_switch: LDLIBS += -lpthread 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ci$(OUTPUT)/fork: LDLIBS += -lpthread 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_ci$(OUTPUT)/exec_target: CFLAGS += -static -nostartfiles 21