diff options
| author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2011-10-14 04:55:05 +0200 |
|---|---|---|
| committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2011-10-14 04:55:05 +0200 |
| commit | 6aa0e0017d7d0cddc006da885946934b06949a91 (patch) | |
| tree | 66b688ec32e2f91266db760b1762f2a50cc52036 /Makefile | |
| parent | a966db5b71328f6adf9dd767e64b322a3bd7ed9c (diff) | |
| download | erlang-slang-fork-6aa0e0017d7d0cddc006da885946934b06949a91.tar.gz | |
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
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 18 |
1 files changed, 15 insertions, 3 deletions
@@ -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) \ + ) |
