From 4838441e614ec385b5eef284555b1f6bfed4aeae Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Sat, 1 Jun 2019 20:54:45 +0200 Subject: pass _PATH_INCLUDE from Makefile Reported by Steffen Nurpmeso . --- Makefile | 2 +- src/usr.bin/calendar/pathnames.h | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 75ce70c..877d335 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ CFLAGS?=-Wall -O2 -CPPFLAGS=-include src/liboutils/outils.h -isystem src/liboutils/include -Isrc/bin/md5 -D_GNU_SOURCE -D_DEFAULT_SOURCE -DNO_UTIL +CPPFLAGS=-include src/liboutils/outils.h -isystem src/liboutils/include -Isrc/bin/md5 -D_GNU_SOURCE -D_DEFAULT_SOURCE -DNO_UTIL -D_PATH_INCLUDE="\"$(PREFIX)/share/calendar\"" LDFLAGS=-Wl,--as-needed LIBS=-lm diff --git a/src/usr.bin/calendar/pathnames.h b/src/usr.bin/calendar/pathnames.h index 0fb401c..60fe31c 100644 --- a/src/usr.bin/calendar/pathnames.h +++ b/src/usr.bin/calendar/pathnames.h @@ -34,6 +34,3 @@ #include #define _PATH_CPP "/usr/bin/cpp" - - /* XXX -- fix when cpp parses arguments rationally */ -#define _PATH_INCLUDE "-I/usr/share/calendar" -- cgit 1.4.1