From 6aa0e0017d7d0cddc006da885946934b06949a91 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Fri, 14 Oct 2011 04:55:05 +0200 Subject: include libslang-1.4.9 and automatically build it and link erlang-slang against it few (erlang) people will still have libslang-1.4.9 installed or spend time to get it to link against the driver --- Makefile | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 233e742..0515444 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,10 @@ export CFLAGS ?= -O2 export CPPFLAGS ?= export LDFLAGS ?= -all: +CONFIGURE_VARS := + +all : libslang/Makefile + $(MAKE) -C libslang $@ $(MAKE) -C c_src $@ $(ERL) -noinput -eval \ "case make:all() of up_to_date -> halt(0); error -> halt(1) end" @@ -14,6 +17,15 @@ all: install: $(MAKE) -C c_src $@ -clean: +clean : libslang/Makefile + $(MAKE) -C libslang $@ + $(RM) -f libslang/Makefile $(MAKE) -C c_src $@ - $(RM) -f {ebin,demo}/*.beam + $(RM) -f ebin/*.beam demo/*.beam + +libslang/Makefile : libslang/configure + ( \ + cd libslang; \ + CFLAGS="$(CFLAGS) -fpic" \ + ./configure $(CONFIGURE_ARGS) \ + ) -- cgit v1.2.3