09-13-05 11:02 PM
I am currently having an issue getting the following Makefile commands
to work:
COMMONUTSOURCES= $(addprefix ./,$(shell ls $(COMMONUTDIR)/*.cpp))
COMMONUTOBJECTS = $(COMMONUTSOURCES:%.cpp=%.o)
$(COMMONUTOBJECTS): $(@:.o=.cpp)
$(MAKE) -C $(COMMONUTDIR)
App: $(COMMONUTOBJECTS)
<BUILD APPLICATION>
My main issue is trying to get the object to build when the .cpp
file has been updated. (e.g. I have a file named DateRangeTest.cpp)
when I do a "make -p", I do not see that the "$(@:.o=.cpp)" statement
above does anything. It shows up with no dependencies in the output of
the "make -p" command. Any ideas on how I can do this? I am running
Intel/Linux (RH). Here is the version
information:
-------------------------------------------------------------
make -v
GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.
Built for i686-pc-linux-gnu
Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 2000
Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Report bugs to <bug-make@gnu.org>.
-------------------------------------------------------------
Any help would be greatly appreciated.
[ Post a follow-up to this message ]
|