From d382b23ee73dd993e944bd4fad9d190bc2e6f849 Mon Sep 17 00:00:00 2001 From: Matthias Benkard Date: Sun, 27 Jan 2008 12:46:11 +0100 Subject: Do not build our own libffi if we can find one installed on the system. darcs-hash:98186d9dca2682cb70a25403ee7415dcbd28249c --- GNUmakefile | 34 ++++++++++++++++++++++++++++------ 1 file changed, 28 insertions(+), 6 deletions(-) (limited to 'GNUmakefile') diff --git a/GNUmakefile b/GNUmakefile index ca8ebf2..ecba147 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -14,10 +14,16 @@ ## You should have received a copy of the GNU General Public License ## along with this program. If not, see . +include version.make +-include config.make --include $(GNUSTEP_MAKEFILES)/common.make +.PHONY: all clean distclean install -include version.make +ifeq ($(CONFIG_MAKE_INCLUDED_P),) +all clean install: config.make + @echo "Please run ./configure before running make." +else # CONFIG_MAKE_INCLUDED_P +-include $(GNUSTEP_MAKEFILES)/common.make PACKAGE_NAME = Objective-CL RPM_DISABLE_RELOCATABLE = YES @@ -26,14 +32,30 @@ SUBPROJECTS = Objective-C ifneq ($(COMMON_MAKE_LOADED),) include $(GNUSTEP_MAKEFILES)/aggregate.make +before-all before-clean before-install before-distclean:: config.make + +after-distclean:: + rm -f config.make + rm -f config.h else # Mac OS X all: - make -C Objective-C all + $(MAKE) -C Objective-C all clean: - make -C Objective-C clean + $(MAKE) -C Objective-C clean + +distclean: + $(MAKE) -C Objective-C distclean + rm -f config.make + rm -f config.h install: - make -C Objective-C install -endif + $(MAKE) -C Objective-C install +endif # Mac OS X +endif # CONFIG_MAKE_INCLUDED_P + +config.make: configure config.make.in + sh ./configure +configure: configure.ac + autoreconf -- cgit v1.2.3