aboutsummaryrefslogtreecommitdiff
path: root/gnu/usr.bin/perl/miniperl/Makefile
blob: f72e70bc124a41ef36b128caf1e7199daf7439e3 (plain) (blame)
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
#
# $Id: Makefile,v 1.6 1998/09/26 16:17:05 markm Exp $
#

PROG=	miniperl
NOMAN=	true
CFLAGS+=-I${PERL5SRC} -I${.OBJDIR}
SRCS=	miniperlmain.c config.h
# Miniperl _must_ be static!!
NOSHARED= yes
DPADD=	${LIBPERL} ${LIBM} ${LIBCRYPT}
LDADD=	-lperl -lm -lcrypt

# Trick the bootstrap tools into thinking that miniperl is perl.
# This gets overwritten.
LINKS=	${BINDIR}/${PROG} ${BINDIR}/perl

CLEANFILES=	config.h config.sh config_h.sh

.include <bsd.prog.mk>

miniperlmain.o: config.h

config.h: config_h.sh config.sh
	sh config_h.sh

config.sh: ${.CURDIR}/../libperl/config.SH-${OBJFORMAT}.${MACHINE_ARCH}
	@ln -sf ${.OODATE} ${.TARGET}

config_h.sh: config_h.SH
	@ln -sf ${.OODATE} ${.TARGET}

.PATH:	${PERL5SRC}