Skip to content

Commit

Permalink
Apptools variable consistency naming.
Browse files Browse the repository at this point in the history
Make everything that is a directory pathname contain "DIR"
  • Loading branch information
anttikantee committed Jun 29, 2015
1 parent d3c3d66 commit ea26e9c
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions app-tools/Makefile.app-tools
Expand Up @@ -39,8 +39,8 @@ $(APP_TOOLS_DIR)/rumprun-$(APP_TOOLS_PLATFORM)-${1}: \
-e 's#!CXX!#$(CXX)#g;' \
-e 's#!GNUPLATFORM!#$(subst \
--,-rumprun-,${APP_TOOLS_GNUPLATFORM})#g;' \
-e 's#!BASE!#$(abspath ../..)#g;' \
-e 's#!APPTOOLS!#$(APP_TOOLS_DIR)#g;' \
-e 's#!BASE_DIR!#$(abspath ../..)#g;' \
-e 's#!APPTOOLS_DIR!#$(APP_TOOLS_DIR)#g;' \
-e 's#!APPTOOLS_PLATFORM!#$(APP_TOOLS_PLATFORM)#g;' \
-e 's#!CPPFLAGS!#$(BUILDRUMP_TOOL_CPPFLAGS)#g;' \
-e 's#!CFLAGS!#$(BUILDRUMP_TOOL_CFLAGS)#g;' \
Expand Down
8 changes: 4 additions & 4 deletions app-tools/cc.in
Expand Up @@ -75,12 +75,12 @@ done
case ${MODE} in
compile)
exec ${CC} ${CFLAGS} -no-integrated-cpp \
-specs=!APPTOOLS!/rumprun-!APPTOOLS_PLATFORM!-specs-compile_or_ferment \
-specs=!APPTOOLS_DIR!/rumprun-!APPTOOLS_PLATFORM!-specs-compile_or_ferment \
"$@" ${EXTRALIBS}
;;
bake)
exec ${CC} ${CFLAGS} -no-integrated-cpp \
-specs=!APPTOOLS!/rumprun-!APPTOOLS_PLATFORM!-specs-bake \
-specs=!APPTOOLS_DIR!/rumprun-!APPTOOLS_PLATFORM!-specs-bake \
-Wl,--defsym=__RuMpRuN_baked__=0 \
"$@" ${EXTRALIBS}
;;
Expand All @@ -89,14 +89,14 @@ ferment)
# with no rump components. '-u main' is necessary to pull in main if the
# user is linking it in from a library.
${CC} ${CFLAGS} -no-integrated-cpp \
-specs=!APPTOOLS!/rumprun-!APPTOOLS_PLATFORM!-specs-compile_or_ferment \
-specs=!APPTOOLS_DIR!/rumprun-!APPTOOLS_PLATFORM!-specs-compile_or_ferment \
-Wl,-r -Wl,-u,main \
-Wl,--defsym=__RuMpRuN_fermented__=0 \
"$@" ${EXTRALIBS} || die

# Try a stub link with minimal rump components. If that fails then stop.
${CC} ${CFLAGS} -no-integrated-cpp \
-specs=!APPTOOLS!/rumprun-!APPTOOLS_PLATFORM!-specs-stub \
-specs=!APPTOOLS_DIR!/rumprun-!APPTOOLS_PLATFORM!-specs-stub \
${OUTFILE} -o /dev/null
if [ $? -ne 0 ]; then
[ -f "${OUTFILE}" ] && rm -f ${OUTFILE}
Expand Down
4 changes: 2 additions & 2 deletions app-tools/configure.in
Expand Up @@ -3,7 +3,7 @@
set -e
prog=$1; shift

export CC=!APPTOOLS!/rumprun-!APPTOOLS_PLATFORM!-cc
export CXX=!APPTOOLS!/rumprun-!APPTOOLS_PLATFORM!-c++
export CC=!APPTOOLS_DIR!/rumprun-!APPTOOLS_PLATFORM!-cc
export CXX=!APPTOOLS_DIR!/rumprun-!APPTOOLS_PLATFORM!-c++

exec "$prog" --host=!GNUPLATFORM! "$@"
4 changes: 2 additions & 2 deletions app-tools/gmake.in
@@ -1,6 +1,6 @@
#!/bin/sh

export CC=!APPTOOLS!/rumprun-!APPTOOLS_PLATFORM!-cc
export CXX=!APPTOOLS!/rumprun-!APPTOOLS_PLATFORM!-c++
export CC=!APPTOOLS_DIR!/rumprun-!APPTOOLS_PLATFORM!-cc
export CXX=!APPTOOLS_DIR!/rumprun-!APPTOOLS_PLATFORM!-c++

exec gmake "$@"
4 changes: 2 additions & 2 deletions app-tools/make.in
@@ -1,6 +1,6 @@
#!/bin/sh

export CC=!APPTOOLS!/rumprun-!APPTOOLS_PLATFORM!-cc
export CXX=!APPTOOLS!/rumprun-!APPTOOLS_PLATFORM!-c++
export CC=!APPTOOLS_DIR!/rumprun-!APPTOOLS_PLATFORM!-cc
export CXX=!APPTOOLS_DIR!/rumprun-!APPTOOLS_PLATFORM!-c++

exec make "$@"
2 changes: 1 addition & 1 deletion app-tools/specs-compile_or_ferment.in
@@ -1,7 +1,7 @@
%rename cpp_options old_cpp_options

*cpp_options:
-nostdinc -isystem !BASE!/rumprun/include -isystem !BASE!/rumprun/include/c++ %(old_cpp_options) !CPPFLAGS! -D__RUMPRUN__
-nostdinc -isystem !BASE_DIR!/rumprun/include -isystem !BASE_DIR!/rumprun/include/c++ %(old_cpp_options) !CPPFLAGS! -D__RUMPRUN__

%rename cc1_options old_cc1_options

Expand Down

0 comments on commit ea26e9c

Please sign in to comment.