diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-07-16 04:55:30 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-07-16 04:56:54 +0300 |
commit | bd6622abe8447993d8efb60738938593667e8e4a (patch) | |
tree | 74f087357094af7c5f5175861c95ddff721e3eb2 | |
parent | 6aa7c805cc2812dafb396afcd909bbc99505c99b (diff) | |
download | micropython-bd6622abe8447993d8efb60738938593667e8e4a.tar.gz micropython-bd6622abe8447993d8efb60738938593667e8e4a.zip |
unix: Cache libaxtls.a in local build dir.
Allows to build the library variant for other ports in parallel.
-rw-r--r-- | unix/Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/unix/Makefile b/unix/Makefile index 2e0cbfd35a..681deb87e4 100644 --- a/unix/Makefile +++ b/unix/Makefile @@ -308,11 +308,14 @@ libffi: ../configure $(CROSS_COMPILE_HOST) --prefix=$$PWD/out --disable-structs CC="$(CC)" CXX="$(CXX)" LD="$(LD)" CFLAGS="-Os -fomit-frame-pointer -fstrict-aliasing -ffast-math -fno-exceptions"; \ make install-exec-recursive; make -C include install-data-am -axtls: ../lib/axtls/README +axtls: $(BUILD)/libaxtls.a + +$(BUILD)/libaxtls.a: ../lib/axtls/README | $(OBJ_DIRS) cd ../lib/axtls; cp config/upyconfig config/.config cd ../lib/axtls; make oldconfig -B cd ../lib/axtls; make clean cd ../lib/axtls; make all CC="$(CC)" LD="$(LD)" + cp ../lib/axtls/_stage/libaxtls.a $@ ../lib/axtls/README: @echo "You cloned without --recursive, fetching submodules for you." |