From 5df8f184087db4a27189691012771d68a2cba1e8 Mon Sep 17 00:00:00 2001 From: MastaTabs Date: Mon, 20 Apr 2009 15:46:15 +0000 Subject: [PATCH] make it build outside the sourcetree git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@31143 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- rom/isapnp/mmakefile.src | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/rom/isapnp/mmakefile.src b/rom/isapnp/mmakefile.src index ce2584232..f255c0490 100644 --- a/rom/isapnp/mmakefile.src +++ b/rom/isapnp/mmakefile.src @@ -3,7 +3,7 @@ include $(TOP)/config/make.cfg FILES := controller devices init pnp pnp_iterators pnp_structs end USER_CFLAGS := -fomit-frame-pointer -fstrict-aliasing -Os \ - -W -Wall -Wstrict-prototypes -Wno-unused + -W -Wall -Wstrict-prototypes -Wno-unused -I$(GENDIR)/$(CURDIR) %build_module_simple mmake=kernel-isapnp \ modname=isapnp modtype=resource \ @@ -12,13 +12,13 @@ USER_CFLAGS := -fomit-frame-pointer -fstrict-aliasing -Os \ # FIXME: %build_module_simple macro doesn't track dependencies. # This definitely needs to be fixed. Until this we'll use # this manual dependency -$(OBJDIR)/init.o: version.h +$(OBJDIR)/init.o: $(GENDIR)/$(CURDIR)/version.h -version.h: version.rev version.date +$(GENDIR)/$(CURDIR)/version.h: version.rev version.date @echo Creating $@ - @ver=`cat version.ver` \ - rev=`cat version.rev` \ - date=`cat version.date` && \ + @ver=`cat $(SRCDIR)/$(CURDIR)/version.ver` \ + rev=`cat $(SRCDIR)/$(CURDIR)/version.rev` \ + date=`cat $(SRCDIR)/$(CURDIR)/version.date` && \ echo "#define VERSION $$ver" > $@ && \ echo "#define REVISION $$rev" >> $@ && \ echo "#define VERS \"$$ver.$$rev ($$date)\"" >> $@ -- 2.11.4.GIT