[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Extricating commands/paths from make shell hack
From: |
Margaret Lum |
Subject: |
Extricating commands/paths from make shell hack |
Date: |
Thu, 21 Jul 2011 09:57:20 -0700 (PDT) |
Hello,
I'm using the shell hack in
http://drdobbs.com/embedded-systems/197003338?pgno=4 to extricate all the
commands used in the process of building a program.
# In my Makefile
OLD_SHELL := $(SHELL)
SHELL = $(warning address@hidden)$(OLD_SHELL) -x
When I build, this is what's logged:
+ /toolchain/lin32/make-3.81/bin/make -j24 MAKEFLAGS= -f
/foo/make/mk/foo-pkg-bar.make -C SUBDIRS SUBDIR=fooimage/lib/cab
SUBDIR_OBJ_DEFAULT=../fooimage-lib-cab-obj.a SUBDIR_NOLINK= subdir
+ echo '** Compiling fooimage/lib/cab/foo.c'
/foo/make/mk/subdir.mk:756: [fooimage/lib/cab/foo.o]
+ /toolchain/lin32/gcc-4.1.2-2/bin/i686-linux-gcc -Wno-pointer-sign
-Wno-strict-prototypes -fno-strict-aliasing -Wp,-MMD,fooimage/lib/cab/foo.dd -c
-o fooimage/lib/cab/foo.o -fPIC -DVMX86_RELEASE -DVMX86_LIMITS -DVMX86_DESKTOP
-DBUILT_BY_mlum -DUI_NOT_REENTRANT
/foo/make/mk/subdir.mk:756: [fooimage/lib/cab/foo.o]
I'm able to get the line that starts with '+', but I'm wondering how to get the
lines that indicate the path Make is using at the time it's calling
/toolchain/lin32/gcc-4.1.2-2/bin/i686-linux-gcc using the shell hack. For
example, I want to get the explicit path to SUBDIRS while I'm executing
/toolchain/lin32/gcc-4.1.2-2/bin/i686-linux-gcc echoed in that line. Does
anyone have any suggestions?
I really appreciate any help!
Thank you,
-Margaret
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Extricating commands/paths from make shell hack,
Margaret Lum <=