mirror of
https://github.com/plasma-umass/coz.git
synced 2024-09-11 04:55:25 +03:00
Adjust deps.mk to rebuild libelfin when needed after 'make distclean'.
This split the old target in two, one doing git clone and the other building the libraries.
This commit is contained in:
parent
54c526d5c7
commit
a93ddcb81b
6
deps.mk
6
deps.mk
@ -12,10 +12,14 @@ CXXFLAGS += -I$(ROOT)/deps
|
||||
endif
|
||||
|
||||
# Get and build libelfin
|
||||
$(ROOT)/deps/libelfin:
|
||||
$(ROOT)/deps/libelfin: $(ROOT)/deps/libelfin/elf/libelf++.a
|
||||
|
||||
$(ROOT)/deps/libelfin/Makefile:
|
||||
@echo $(LOG_PREFIX) Checking out libelfin $(LOG_SUFFIX)
|
||||
@mkdir -p $(ROOT)/deps
|
||||
@git clone git://github.com/ccurtsinger/libelfin $(ROOT)/deps/libelfin
|
||||
|
||||
$(ROOT)/deps/libelfin/elf/libelf++.a: $(ROOT)/deps/libelfin/Makefile
|
||||
@echo $(LOG_PREFIX) Building libelfin $(LOG_SUFFIX)
|
||||
@cd $(ROOT)/deps/libelfin; make MAKEFLAGS="-j1" CC=$(CC) CXX=$(CXX)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user