1 1.1.2.1 minoura # @(#)Makefile 8.1 (Berkeley) 6/7/93 2 1.1.2.1 minoura # $FreeBSD: src/usr.bin/mklocale/Makefile,v 1.19.2.1 1999/08/29 15:31:03 peter Exp $ 3 1.1.2.1 minoura 4 1.1.2.1 minoura PROG= mklocale 5 1.1.2.1 minoura SRCS= yacc.y lex.l #y.tab.h 6 1.1.2.1 minoura CFLAGS+=-I${.OBJDIR} # for y.tab.h 7 1.1.2.1 minoura CFLAGS+=-I${.CURDIR} -I${.CURDIR}/../../include -I${.CURDIR}/../../lib/libc/locale 8 1.1.2.1 minoura MAN1= mklocale.1 9 1.1.2.1 minoura CLEANFILES+= y.tab.c y.tab.h 10 1.1.2.1 minoura YACC= yacc -d 11 1.1.2.1 minoura 12 1.1.2.1 minoura LIBXPG4OBJDIR=cd ${.CURDIR}/../../lib/libxpg4; \ 13 1.1.2.1 minoura printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}\n" | ${MAKE} -s -f- 14 1.1.2.1 minoura .if exists(${DESTDIR}/usr/lib/libxpg4.a) 15 1.1.2.1 minoura XPG4LIB=-lxpg4 16 1.1.2.1 minoura .elif exists(${LIBXPG4OBJDIR}/libxpg4.a) 17 1.1.2.1 minoura XPG4LIB=-L${LIBXPG4OBJDIR} -Wl,-rpath,${LIBXPG4OBJDIR} -lxpg4 # XXX 18 1.1.2.1 minoura .endif 19 1.1.2.1 minoura 20 1.1.2.1 minoura LDADD+=${XPG4LIB} 21 1.1.2.1 minoura 22 1.1.2.1 minoura .include <bsd.prog.mk> 23