Skip to content

Commit

Permalink
closing #213
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffBezanson committed Feb 12, 2012
1 parent 3fe7446 commit 472e048
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
1 change: 0 additions & 1 deletion external/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
/arpack-*
/fftw-*
/libunwind-*
/open-unwind
/lighttpd-*
/Clp-*
/SuiteSparse-*
Expand Down
21 changes: 10 additions & 11 deletions external/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -423,27 +423,26 @@ distclean-clp:
## UNWIND ##

LIBUNWIND_TARGET_OBJ = $(EXTROOTLIB)/libunwind.a
LIBUNWIND_TARGET_SOURCE = libunwind-$(UNWIND_VER)/Makefile
LIBUNWIND_TARGET_SOURCE = libunwind-$(UNWIND_VER)/src/.libs/libunwind.a

compile-unwind: $(LIBUNWIND_TARGET_SOURCE)
install-unwind: $(LIBUNWIND_TARGET_OBJ)

$(LIBUNWIND_TARGET_OBJ): $(LIBUNWIND_TARGET_SOURCE)
cd libunwind-$(UNWIND_VER) && $(MAKE) && $(MAKE) install

libunwind-$(UNWIND_VER).tar.gz:
wget http://savannah.spinellicreations.com/libunwind/libunwind-$(UNWIND_VER).tar.gz
wget http://savannah.spinellicreations.com/libunwind/libunwind-$(UNWIND_VER).tar.gz
libunwind-$(UNWIND_VER)/Makefile: libunwind-$(UNWIND_VER).tar.gz
tar xfz $<
cd libunwind-$(UNWIND_VER) && ./configure CFLAGS="-U_FORTIFY_SOURCE -fPIC" --prefix=$(abspath $(EXTROOT))

open-unwind: libunwind-$(UNWIND_VER).tar.gz
tar xvfz $<
touch $@
$(LIBUNWIND_TARGET_SOURCE): libunwind-$(UNWIND_VER)/Makefile
cd libunwind-$(UNWIND_VER) && $(MAKE)

$(LIBUNWIND_TARGET_SOURCE): open-unwind
cd libunwind-$(UNWIND_VER) && ./configure CFLAGS="-U_FORTIFY_SOURCE -fPIC" --prefix=$(abspath $(EXTROOT))
$(LIBUNWIND_TARGET_OBJ): $(LIBUNWIND_TARGET_SOURCE)
cd libunwind-$(UNWIND_VER) && $(MAKE) install

clean-unwind:
$(MAKE) -C libunwind-$(UNWIND_VER) clean
rm -rf $(LIBUNWIND_TARGET_OBJ) $(LIBUNWIND_TARGET_SOURCE)
rm -f $(LIBUNWIND_TARGET_OBJ) $(LIBUNWIND_TARGET_SOURCE)

distclean-unwind:
rm -rf libunwind-$(UNWIND_VER).tar.gz libunwind-$(UNWIND_VER)
Expand Down

0 comments on commit 472e048

Please sign in to comment.