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