From 5906faf133d09bff6db730347af6f8586a0f40ba Mon Sep 17 00:00:00 2001 From: lukem Date: Tue, 23 Sep 2003 11:04:45 +0000 Subject: [PATCH] Explicitly add -I/path/to/dist/src so that any yacc-generated .c files in the .OBJDIR compile correctly. (Something I changed in the last commit must have broken this. Or make(1) changed. Or something else borked. In any case, it's fixed now.) --- x11/bin/pswrap/Makefile | 7 +++++-- x11/bin/twm/Makefile | 4 ++-- x11/bin/xgc/Makefile | 4 ++-- x11/bin/xkbcomp/Makefile | 4 +++- x11/bin/xkbevd/Makefile | 3 ++- 5 files changed, 14 insertions(+), 8 deletions(-) diff --git a/x11/bin/pswrap/Makefile b/x11/bin/pswrap/Makefile index b3fa7920e02f..38da1517b2c6 100644 --- a/x11/bin/pswrap/Makefile +++ b/x11/bin/pswrap/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.2 2003/09/13 20:18:08 lukem Exp $ +# $NetBSD: Makefile,v 1.3 2003/09/23 11:04:45 lukem Exp $ .include @@ -8,7 +8,10 @@ SRCS= main.c pswparser.y lexer.l pswdict.c pswfile.c \ YHEADER=1 -CPPFLAGS+=-DXENVIRONMENT -DFRIENDSFILE='""' -I. +CPPFLAGS+= -DXENVIRONMENT \ + -DFRIENDSFILE='""' \ + -I. \ + -I${X11SRCDIR.xc}/config/pswrap pswpriv.h: pswparser.h diff --git a/x11/bin/twm/Makefile b/x11/bin/twm/Makefile index 907de6193c01..3450bb9821c4 100644 --- a/x11/bin/twm/Makefile +++ b/x11/bin/twm/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.2 2003/09/13 20:18:12 lukem Exp $ +# $NetBSD: Makefile,v 1.3 2003/09/23 11:04:46 lukem Exp $ .include @@ -8,7 +8,7 @@ SRCS= gram.y lex.l deftwmrc.c add_window.c gc.c list.c twm.c \ cursor.c icons.c session.c YHEADER=1 -CPPFLAGS+=-I. -DHAS_MKSTEMP +CPPFLAGS+= -I. -I${X11SRCDIR.xc}/programs/${PROG} -DHAS_MKSTEMP CPPFLAGS.parse.c= -DSYSTEM_INIT_FILE=\"${X11LIBDIR}/twm/system.twmrc\" FILES= system.twmrc diff --git a/x11/bin/xgc/Makefile b/x11/bin/xgc/Makefile index 82a94a50885b..22c0d65123de 100644 --- a/x11/bin/xgc/Makefile +++ b/x11/bin/xgc/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.2 2003/09/13 20:18:21 lukem Exp $ +# $NetBSD: Makefile,v 1.3 2003/09/23 11:04:46 lukem Exp $ .include @@ -7,7 +7,7 @@ SRCS= dashlist.c planemask.c getfile.c tests.c text.c \ choice.c main.c interpret.c record.c testfrac.c gram.y lex.l YHEADER=1 -CPPFLAGS+=-I. +CPPFLAGS+=-I. -I${X11SRCDIR.xc}/programs/${PROG} APPDEFS=Xgc.ad diff --git a/x11/bin/xkbcomp/Makefile b/x11/bin/xkbcomp/Makefile index 5888094b9acb..e74d721c7807 100644 --- a/x11/bin/xkbcomp/Makefile +++ b/x11/bin/xkbcomp/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.2 2003/09/13 20:18:22 lukem Exp $ +# $NetBSD: Makefile,v 1.3 2003/09/23 11:04:47 lukem Exp $ .include @@ -8,7 +8,9 @@ SRCS= xkbcomp.c xkbscan.c expr.c vmod.c indicators.c misc.c \ symbols.c geometry.c xkbpath.c listing.c \ xkbparse.y parseutils.c utils.c +CPPFLAGS+= -I${X11SRCDIR.xc}/programs/${PROG} CPPFLAGS.xkbpath.c= -DDFLT_XKB_CONFIG_ROOT=\"${X11LIBDIR}/xkb\" +CPPFLAGS.geometry.c= -Wno-error # XXX FILESDIR=${X11LIBDIR}/xkb FILES= README README.config README.enhancing diff --git a/x11/bin/xkbevd/Makefile b/x11/bin/xkbevd/Makefile index d33f4414bcf4..05d33e0369a3 100644 --- a/x11/bin/xkbevd/Makefile +++ b/x11/bin/xkbevd/Makefile @@ -1,10 +1,11 @@ -# $NetBSD: Makefile,v 1.2 2003/09/13 20:18:29 lukem Exp $ +# $NetBSD: Makefile,v 1.3 2003/09/23 11:04:47 lukem Exp $ .include PROG= xkbevd SRCS= xkbevd.c cfgscan.c cfgparse.y evargs.c printev.c utils.c +CPPFLAGS+=-I${X11SRCDIR.xc}/programs/${PROG} LDADD+= -lxkbfile -lXext -lX11 DPADD+= ${LIBXKBFILE} ${LIBXEXT} ${LIBX11}