- Timestamp:
- 2019-08-17T12:49:43Z (5 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ecf56f80
- Parents:
- 32355bc
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2019-06-15 13:55:37)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2019-08-17 12:49:43)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Makefile
r32355bc r5fd05862 37 37 AUTOTOOL = tools/autotool.py 38 38 SANDBOX = autotool 39 MESON = meson 39 40 40 41 CONFIG_RULES = HelenOS.config … … 47 48 ERRNO_INPUT = abi/include/abi/errno.in 48 49 50 -include $(CONFIG_MAKEFILE) 51 -include $(COMMON_MAKEFILE) 52 53 # TODO: make meson reconfigure correctly when library build changes 54 55 ifeq ($(CONFIG_BUILD_SHARED_LIBS),y) 56 MESON_ARGS = -Ddefault_library=shared 57 else 58 MESON_ARGS = -Ddefault_library=static 59 endif 60 61 CROSS_PATH = $(shell dirname "$(CC)") 62 49 63 .PHONY: all precheck cscope cscope_parts autotool config_auto config_default config distclean clean check releasefile release common boot kernel uspace export-posix space 50 64 … … 52 66 $(MAKE) -r -C boot PRECHECK=$(PRECHECK) 53 67 54 common: $(COMMON_MAKEFILE) $(CONFIG_MAKEFILE) $(CONFIG_HEADER) $(ERRNO_HEADER) 68 build/build.ninja: Makefile.config version 69 PATH="$(CROSS_PATH):$$PATH" meson . build --cross-file meson/cross/$(UARCH) $(MESON_ARGS) 70 71 common: $(COMMON_MAKEFILE) $(CONFIG_MAKEFILE) $(CONFIG_HEADER) $(ERRNO_HEADER) build/build.ninja 55 72 56 73 kernel: common … … 58 75 59 76 uspace: common 60 $(MAKE) -r -C uspace PRECHECK=$(PRECHECK) 77 PATH="$(CROSS_PATH):$$PATH" ninja -C build 78 PATH="$(CROSS_PATH):$$PATH" DESTDIR="$$PWD/dist" meson install --no-rebuild --only-changed -C build > build/install.log 61 79 62 80 test-xcw: uspace export-cross 81 ifeq ($(CONFIG_DEVEL_FILES),y) 63 82 export PATH=$$PATH:$(abspath tools/xcw/bin) && $(MAKE) -r -C tools/xcw/demo 83 endif 64 84 65 85 export-posix: common … … 67 87 @echo ERROR: Variable EXPORT_DIR is not defined. && false 68 88 else 69 $(MAKE) -r -C uspace export EXPORT_DIR=$(abspath $(EXPORT_DIR)) 89 mkdir -p $(EXPORT_DIR) 90 $(MAKE) -r -C uspace/lib/posix export EXPORT_DIR=$(abspath $(EXPORT_DIR)) UARCH=$(UARCH) 70 91 endif 71 92 72 93 export-cross: common 73 $(MAKE) -r -C uspace export EXPORT_DIR=$(abspath uspace/export) 94 mkdir -p uspace/export 95 $(MAKE) -r -C uspace export EXPORT_DIR=$(abspath uspace/export) UARCH=$(UARCH) 74 96 75 97 precheck: clean
Note:
See TracChangeset
for help on using the changeset viewer.