1# $OpenBSD: Makefile.bsd-wrapper,v 1.114 2023/09/03 01:43:09 afresh1 Exp $ 2# 3# Build wrapper for Perl 4# 5 6CONFIGURE_ARGS= -dse -Dopenbsd_distribution=defined 7 8.if !exists(${.OBJDIR}/config.over) 9CONFIGURE_ARGS+= -Dmksymlinks 10.endif 11 12.MAIN: all 13 14CLEANFILES= config.sh 15 16config.sh: ${.CURDIR}/config.over ${.CURDIR}/hints/openbsd.sh 17 cd ${.OBJDIR} && PATH="/bin:/usr/bin:/sbin:/usr/sbin" \ 18 exec /bin/sh ${.CURDIR}/Configure ${CONFIGURE_ARGS} 19 20# nothing! 21depend: 22 @: 23 24test: all 25 ${MAKE} test 26 27test_harness: all 28 ${MAKE} test_harness 29 30clean: 31 -@test ! -e Makefile || ${MAKE} realclean 32 33cleandir: 34 -@if [ ${.CURDIR} != ${.OBJDIR} ]; then \ 35 rm -rf *; \ 36 else \ 37 test ! -e Makefile || ${MAKE} distclean; \ 38 rm -f ${CLEANFILES}; \ 39 fi 40 cd ${.CURDIR} && ${MAKE} -f Makefile.bsd-wrapper1 cleandir 41 42all: syscall_emulator.c config.sh 43 cd ${.CURDIR} && exec ${MAKE} -f Makefile.bsd-wrapper1 perl.build 44 cd ${.CURDIR} && exec ${MAKE} -f Makefile.bsd-wrapper1 mansrc.build 45 46install: 47 cd ${.CURDIR} && exec ${MAKE} -f Makefile.bsd-wrapper1 install 48 49 50syscall_emulator.c: gen_syscall_emulator.pl syscall_emulator.h /usr/include/sys/syscall.h /usr/include/sys/syscallargs.h 51 /usr/bin/perl $(.CURDIR)/gen_syscall_emulator.pl > $@ 52 53syscall_emulator.h: 54 ln -sf $(.CURDIR)/$@ $@ 55 56.include <bsd.obj.mk> 57