diff options
author | Matthias Benkard <code@mail.matthias.benkard.de> | 2008-01-27 12:46:11 +0100 |
---|---|---|
committer | Matthias Benkard <code@mail.matthias.benkard.de> | 2008-01-27 12:46:11 +0100 |
commit | d382b23ee73dd993e944bd4fad9d190bc2e6f849 (patch) | |
tree | 9cbdbf4f31d13dc2def8dec81153f74ec4580e99 /GNUmakefile | |
parent | a93c3679f769423c69fca20fab3bb4ade7207cc1 (diff) |
Do not build our own libffi if we can find one installed on the system.
darcs-hash:98186d9dca2682cb70a25403ee7415dcbd28249c
Diffstat (limited to 'GNUmakefile')
-rw-r--r-- | GNUmakefile | 34 |
1 files changed, 28 insertions, 6 deletions
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 <http://www.gnu.org/licenses/>. +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 |