Changeset b501de7 in mainline
- Timestamp:
- 2018-11-26T13:55:51Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1b555f0f
- Parents:
- 5aa06ad
- git-author:
- Jiri Svoboda <jiri@…> (2018-11-25 17:54:21)
- git-committer:
- Jiri Svoboda <jiri@…> (2018-11-26 13:55:51)
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/xcw/bin/helenos-bld-config
r5aa06ad rb501de7 33 33 34 34 SRC_ROOT="$(dirname "$0")/../../.." 35 MAKEFILE_COMMON="$SRC_ROOT"/Makefile.common 36 MAKEFILE_CONFIG="$SRC_ROOT"/Makefile.config 37 CONFIG_MK="$SRC_ROOT"/uspace/export/config.mk 35 if [ -z "$EXPORT_DIR" ]; then 36 EXPORT_DIR="$SRC_ROOT/uspace/export" 37 fi 38 MAKEFILE_COMMON="$EXPORT_DIR"/Makefile.common 39 MAKEFILE_CONFIG="$EXPORT_DIR"/Makefile.config 40 CONFIG_MK="$EXPORT_DIR"/config.mk 38 41 39 42 # Extract simple 'name = value' variable definition from Makefile -
tools/xcw/bin/helenos-cc
r5aa06ad rb501de7 34 34 XCW="$(dirname "$0")" 35 35 SRC_ROOT="$XCW/../../.." 36 if [ -z "$EXPORT_DIR" ]; then 37 EXPORT_DIR="$SRC_ROOT/uspace/export" 38 fi 36 39 UARCH="$("$XCW"/helenos-bld-config --uarch)" 37 40 CC="$("$XCW"/helenos-bld-config --cc)" … … 49 52 "$@" \ 50 53 -I"$XCW"/../include \ 51 -I"$SRC_ROOT"/uspace/lib/c/include \ 52 -I"$SRC_ROOT"/abi/include \ 53 -I"$SRC_ROOT"/uspace/lib/c/arch/"$UARCH"/include 54 -I"$EXPORT_DIR"/include/libc \ 55 -I"$EXPORT_DIR"/include -
tools/xcw/bin/helenos-ld
r5aa06ad rb501de7 34 34 XCW="$(dirname "$0")" 35 35 SRC_ROOT="$XCW/../../.." 36 if [ -z "$EXPORT_DIR" ]; then 37 EXPORT_DIR="$SRC_ROOT/uspace/export" 38 fi 36 39 UARCH="$("$XCW"/helenos-bld-config --uarch)" 37 40 CFLAGS="$("$XCW"/helenos-bld-config --cflags)" … … 43 46 $CFLAGS \ 44 47 "$@" \ 45 "$ SRC_ROOT"/uspace/lib/c/crt0.o \46 "$ SRC_ROOT"/uspace/lib/c/crt1.o \47 "$ SRC_ROOT"/uspace/lib/c/libc.a \48 "$EXPORT_DIR"/lib/crt0.o \ 49 "$EXPORT_DIR"/lib/crt1.o \ 50 "$EXPORT_DIR"/lib/libc.a \ 48 51 -lgcc -
tools/xcw/bin/helenos-pkg-config
r5aa06ad rb501de7 35 35 SRC_ROOT="$XCW/../../.." 36 36 UARCH="$("$XCW"/helenos-bld-config --uarch)" 37 if [ -z "$EXPORT_DIR" ]; then 38 EXPORT_DIR="$SRC_ROOT/uspace/export" 39 fi 40 INCLUDE_DIR="$EXPORT_DIR/include" 41 LIB_DIR="$EXPORT_DIR/lib" 37 42 38 libmath_cflags="-I$SRC_ROOT/uspace/lib/math/include\ 39 -I$SRC_ROOT/uspace/lib/math/arch/$UARCH/include" 40 libmath_libs="$SRC_ROOT/uspace/lib/math/libmath.a" 43 libmath_cflags="-I$INCLUDE_DIR/libmath" 44 libmath_libs="$LIB_DIR/libmath.a" 41 45 42 libgui_cflags="-I$ SRC_ROOT/uspace/lib/gui"43 libgui_libs="$ SRC_ROOT/uspace/lib/gui/libgui.a"46 libgui_cflags="-I$INCLUDE_DIR/libgui" 47 libgui_libs="$LIB_DIR/libgui.a" 44 48 45 libdraw_cflags="-I$SRC_ROOT/uspace/lib/draw" 46 libdraw_libs="$SRC_ROOT/uspace/lib/draw/libdraw.a \ 47 $SRC_ROOT/uspace/lib/softrend/libsoftrend.a" 49 libdraw_cflags="-I$INCLUDE_DIR/libdraw" 50 libdraw_libs="$LIB_DIR/libdraw.a $LIB_DIR/libsoftrend.a" 48 51 49 libhound_cflags="-I$ SRC_ROOT/uspace/lib/hound/include"50 libhound_libs="$ SRC_ROOT/uspace/lib/hound/libhound.a"52 libhound_cflags="-I$INCLUDE_DIR/libhound" 53 libhound_libs="$LIB_DIR/libhound.a" 51 54 52 libpcm_cflags="-I$ SRC_ROOT/uspace/lib/pcm/include"53 libpcm_libs="$ SRC_ROOT/uspace/lib/pcm/libpcm.a"55 libpcm_cflags="-I$INCLUDE_DIR/libpcm" 56 libpcm_libs="$LIB_DIR/libpcm.a" 54 57 55 58 action=none -
uspace/Makefile
r5aa06ad rb501de7 273 273 $(MAKE) -r -C $(basename $@) all-test PRECHECK=$(PRECHECK) 274 274 275 export: lib/posix.build lib/math.build lib/clui.build275 export: $(BUILDS) 276 276 $(MAKE) -r -C lib/posix export EXPORT_DIR=$(EXPORT_DIR) 277 277 -
uspace/lib/posix/Makefile
r5aa06ad rb501de7 36 36 ../math/libmath.a \ 37 37 ../clui/libclui.a \ 38 ../gui/libgui.a \ 39 ../draw/libdraw.a \ 40 ../softrend/libsoftrend.a \ 41 ../hound/libhound.a \ 42 ../pcm/libpcm.a \ 38 43 $(LIBC_PREFIX)/libc.a \ 39 44 $(LIBC_PREFIX)/crt0.o \ … … 93 98 include $(USPACE_PREFIX)/Makefile.common 94 99 95 export: $(EXPORT_DIR)/config.mk $(EXPORT_DIR)/config.rc 100 export: $(EXPORT_DIR)/config.mk $(EXPORT_DIR)/config.rc \ 101 $(EXPORT_DIR)/Makefile.common $(EXPORT_DIR)/Makefile.config 96 102 97 103 $(EXPORT_DIR)/config.mk: export-libs export-includes … … 111 117 sed 's:$$(HELENOS_EXPORT_ROOT):$$HELENOS_EXPORT_ROOT:g' < $< >$@ 112 118 119 $(EXPORT_DIR)/Makefile.common: ../../../Makefile.common 120 cp $< $@ 121 122 $(EXPORT_DIR)/Makefile.config: ../../../Makefile.config 123 cp $< $@ 124 113 125 export-libs: $(EXPORT_FILES) export-includes 114 126 mkdir -p $(EXPORT_DIR)/lib … … 124 136 cp -L ../clui/tinput.h $(EXPORT_DIR)/include.new/libclui 125 137 rm -rf $(EXPORT_DIR)/include 138 mkdir -p $(EXPORT_DIR)/include.new/libdraw 139 cp -r -L -t $(EXPORT_DIR)/include.new/libdraw ../draw/*.h 140 mkdir -p $(EXPORT_DIR)/include.new/libdraw/codec 141 cp -r -L -t $(EXPORT_DIR)/include.new/libdraw/codec ../draw/codec/*.h 142 mkdir -p $(EXPORT_DIR)/include.new/libgui 143 cp -L -t $(EXPORT_DIR)/include.new/libgui ../gui/*.h 144 mkdir -p $(EXPORT_DIR)/include.new/libhound 145 cp -r -L -t $(EXPORT_DIR)/include.new/libhound ../hound/include/* 146 mkdir -p $(EXPORT_DIR)/include.new/libpcm 147 cp -r -L -t $(EXPORT_DIR)/include.new/libpcm ../pcm/include/* 126 148 mv $(EXPORT_DIR)/include.new $(EXPORT_DIR)/include
Note:
See TracChangeset
for help on using the changeset viewer.