1 1.9 riastrad # $NetBSD: Makefile,v 1.9 2025/04/27 14:04:19 riastradh Exp $ 2 1.1 jmmv 3 1.2 joerg NOMAN= # defined 4 1.1 jmmv 5 1.1 jmmv .include <bsd.own.mk> 6 1.1 jmmv 7 1.2 joerg TESTSDIR= ${TESTSBASE}/lib/csu 8 1.6 joerg TESTS_SH= t_crt0 t_ifunc_static 9 1.2 joerg TESTS_SUBDIRS= 10 1.2 joerg SUBDIR+= dso 11 1.2 joerg 12 1.3 joerg .include "Makefile.check_stack" 13 1.3 joerg 14 1.4 skrll CPPFLAGS+= ${CPPFLAGS_CHECK_STACK} 15 1.3 joerg 16 1.2 joerg BINDIR= ${TESTSDIR} 17 1.2 joerg PROG_CXX= h_initfini1 h_initfini2 h_initfini3 18 1.3 joerg SRCS.h_initfini1= h_initfini1.cxx h_initfini_common.cxx \ 19 1.3 joerg ${SRCS_CHECK_STACK} 20 1.3 joerg SRCS.h_initfini2= h_initfini1.cxx h_initfini_common.cxx \ 21 1.3 joerg ${SRCS_CHECK_STACK} 22 1.5 joerg LDSTATIC.h_initfini2+= -static 23 1.3 joerg SRCS.h_initfini3= h_initfini3.cxx h_initfini_common.cxx \ 24 1.3 joerg ${SRCS_CHECK_STACK} 25 1.2 joerg LDADD.h_initfini3+= -Wl,-rpath,${TESTSDIR} 26 1.1 jmmv 27 1.7 christos PROGS+= h_ifunc_static h_initfini_array 28 1.6 joerg SRCS.h_ifunc_static= h_ifunc_static.c 29 1.7 christos SRCS.h_initfini_array= h_initfini_array.c 30 1.6 joerg LDSTATIC.h_ifunc_static=-static 31 1.6 joerg 32 1.8 riastrad TESTS_SH+= t_hello 33 1.8 riastrad 34 1.8 riastrad PROGS+= ${"${MKPIC}" != no:?h_hello_dyn:} 35 1.8 riastrad PROGS+= ${"${MKPIE}" != no:?h_hello_dynpie:} 36 1.8 riastrad PROGS+= h_hello_sta 37 1.8 riastrad PROGS+= ${"${MKPIE}" != no:?h_hello_stapie:} 38 1.8 riastrad 39 1.8 riastrad SRCS.h_hello_dyn+= h_hello.c 40 1.8 riastrad SRCS.h_hello_dynpie+= h_hello.c 41 1.8 riastrad SRCS.h_hello_sta+= h_hello.c 42 1.8 riastrad SRCS.h_hello_stapie+= h_hello.c 43 1.9 riastrad COPTS.h_hello.c+= ${"${MKPIE}" != no:?-fPIE:} 44 1.8 riastrad LDFLAGS.h_hello_dyn= -no-pie 45 1.8 riastrad LDFLAGS.h_hello_dynpie= -pie 46 1.8 riastrad LDFLAGS.h_hello_sta= -no-pie 47 1.8 riastrad LDFLAGS.h_hello_stapie= -pie 48 1.8 riastrad LDSTATIC.h_hello_sta= -static 49 1.8 riastrad LDSTATIC.h_hello_stapie= -static 50 1.8 riastrad 51 1.1 jmmv .include <bsd.test.mk> 52