how to dynamically load a pass

I tried to make my pass dynamically loadable cause it's too
slow to compile the whole system. I copied the Makefile from
Hello directory and changed the name. But when I type 'gmake'
under the directory of my pass. I always got the following
error message. I cannot figure out why. Can you have a look
and let me know how to fix it?

thanks a lot,
xiaodong

error message. I cannot figure out why. Can you have a look
and let me know how to fix it?

You probably have a space after one of the settings. Make sure there are
no spaces at the end of lines in the makefile in your directory.

-Chris

-----------------------------------------------------------
%gmake

../../../Makefile.common:247: warning: overriding commands for
target `.so'
../../../Makefile.common:243: warning: ignoring old commands
for target `.so'
../../../Makefile.common:251: warning: overriding commands for
target `../../../lib/Release/libScalarReplacement'
../../../Makefile.common:243: warning: ignoring old commands
for target `../../../lib/Release/libScalarReplacement'
../../../Makefile.common:256: warning: overriding commands for
target `../../../lib/Debug/libScalarReplacement'
../../../Makefile.common:247: warning: ignoring old commands
for target `../../../lib/Debug/libScalarReplacement'
../../../Makefile.common:256: warning: overriding commands for
target `.a'
../../../Makefile.common:251: warning: ignoring old commands
for target `.a'
../../../Makefile.common:265: warning: overriding commands for
target `.o'
../../../Makefile.common:261: warning: ignoring old commands
for target `.o'
../../../Makefile.common:247: warning: overriding commands for
target `.so'
../../../Makefile.common:243: warning: ignoring old commands
for target `.so'
../../../Makefile.common:251: warning: overriding commands for
target `../../../lib/Release/libScalarReplacement'
../../../Makefile.common:243: warning: ignoring old commands
for target `../../../lib/Release/libScalarReplacement'
../../../Makefile.common:256: warning: overriding commands for
target `../../../lib/Debug/libScalarReplacement'
../../../Makefile.common:247: warning: ignoring old commands
for target `../../../lib/Debug/libScalarReplacement'
../../../Makefile.common:256: warning: overriding commands for
target `.a'
../../../Makefile.common:251: warning: ignoring old commands
for target `.a'
../../../Makefile.common:265: warning: overriding commands for
target `.o'
../../../Makefile.common:261: warning: ignoring old commands
for target `.o'
Compiling ScalarReplacement.cpp
======= Linking ScalarReplacement debug library =======
gmake: *** No rule to make target
`Release/ScalarReplacement.o)', needed by `.so'. Stop.
_______________________________________________
LLVM Developers mailing list
LLVMdev@cs.uiuc.edu http://llvm.cs.uiuc.edu
http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev

-Chris

http://llvm.cs.uiuc.edu/
http://www.nondot.org/~sabre/Projects/