2 # Acess2 OS - "Externals"
3 # - By John Hodge (thePowersGang)
6 # - Common makefile code for many autoconf(-like) externals
8 include $(dir $(lastword $(MAKEFILE_LIST)))/core.mk
10 CONFIGURE_LINE ?= $(SDIR)/configure --host=$(HOST) --prefix=$(PREFIX) --exec-prefix=$(EPREFIX) $(CONFIGURE_ARGS)
13 CONFIGSCRIPT := $(BDIR)/$(firstword $(CONFIGURE_LINE))
14 PATCHED_ACFILES := $(filter %/configure.in %/config.sub, $(PATCHED_FILES))
15 $(warning $(CONFIGSCRIPT): $(PATCHED_ACFILES))
17 $(CONFIGSCRIPT): $(PATCHED_ACFILES)
20 cd $(DIR) && autoreconf --force --install
23 $(BDIR)/Makefile: _patch $(CONFIGSCRIPT) ../common.mk Makefile
25 cd $(BDIR) && PATH=$(PREFIX)-BUILD/bin:$(PATH) $(CONFIGURE_LINE)
27 _build: $(BDIR)/Makefile
28 cd $(BDIR) && make $(BTARGETS)
31 cd $(BDIR) && make $(ITARGETS)