From 6f9fa3e74ed738ae75c53c3968880a4702a6b1ee Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Wed, 17 Jun 2009 00:40:56 +0200 Subject: Don't abuse $(prefix) for finding build-time files. * Makefile: Simply have GCC #include the needed file -- the current unionfs build system doesn't do any dependency tracking for header files anyway. --- Makefile | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index b180072..e6d907d 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,12 @@ # Hurd unionfs -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. +# +# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc. +# # Written by Jeroen Dekkers . # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or * +# the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but @@ -58,11 +60,11 @@ $(mig-sheader-prefix)%_S.h %Server.c: %.sdefsi -sheader $(mig-sheader-prefix)$*_S.h -server $*Server.c \ -user /dev/null -header /dev/null < $< -%.sdefsi: %.defs - $(CPP) $(CPPFLAGS) $(MIGSFLAGS) $($*-MIGSFLAGS) -DSERVERPREFIX=S_ $< -o $@ - -vpath %.defs $(prefix)/include/hurd - +%.sdefsi: + echo '#include ' | \ + $(CPP) \ + $(CPPFLAGS) $(MIGSFLAGS) $($*-MIGSFLAGS) -DSERVERPREFIX=S_ \ + -x c - -o $@ all: unionfs -- cgit v1.2.3