From 3f09b90d211a86c1d002a786a5ffc34b72fba780 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Fri, 14 Dec 2012 17:18:03 +0100 Subject: build: fix VPATH builds * configure (fn_dirname): New. Use it to ensure the creation of proper symlinks to Makefiles. (config.mak): Define top_builddir and top_srcdir. (CPPFLAGS): Be sure to find the headers. * Makefile, lib/Makefile, tests/Makefile, tests2/Makefile: Adjust to set VPATH properly. Fix confusion between top_builddir and top_srcdir. --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 48ce697..48a8394 100644 --- a/Makefile +++ b/Makefile @@ -4,6 +4,7 @@ TOP ?= . include $(TOP)/config.mak +VPATH = $(top_srcdir) CPPFLAGS_P=$(CPPFLAGS) -DCONFIG_TCC_STATIC CFLAGS_P=$(CFLAGS) -pg -static @@ -356,11 +357,11 @@ tcc-doc.html: tcc-doc.texi -texi2html -monolithic -number $< tcc.1: tcc-doc.texi - -./texi2pod.pl $< tcc.pod + -$(top_srcdir)/texi2pod.pl $< tcc.pod -pod2man --section=1 --center=" " --release=" " tcc.pod > $@ tcc-doc.info: tcc-doc.texi - -makeinfo tcc-doc.texi + -makeinfo $< .PHONY: all clean tar distclean install uninstall FORCE -- cgit v1.3.1