Nicole Irwanto
2008-Apr-22 17:52 UTC
[LLVMdev] The source code Makefile (newbie with pass registering Problem)
Hi!! It's me again. I guess that there is a problem in the Makefile of my source code. But I don't know where. Could you please verify it? The Makefile is written like this: # Makefile for Genetic Algorithm Pass CXXFLAGS = -Wall -I/iss/fpga3/nicole/galib247/ LDFLAGS= -L/iss/fpga3/nicole/galib247/ga/ -lga -Wl,-E # Path to top level of LLVM heirarchy LEVEL=../../../ # Name of the library to build LIBRARYNAME = gascheduling # Make the shared library become a loadable module so the tools can # dlopen/dlsym on the resulting library. # LOADABLE_MODULE = 1 # USEDLIBS=ga.a # Tell the build system which LLVM libraries your pass needs. You'll probably # need at least LLVMSystem.a, LLVMSupport.a, LLVMCore.a but possibly several # others too. # LLVMLIBS = LLVMCore.a LLVMSupport.a LLVMSystem.a SHARED_LIBRARY = 1 # ARCHIVE_LIBRARY = 1 DONT_BUILD_RELINKED = 1 # KEEP_SYMBOLS = 1 # LINK_LIBS_IN_SHARED = 1 # Include the makefile implementation stuff include $(LEVEL)/Makefile.common Thanks for your help!! I'm waiting for your answer. cheers, Nicole _______________________________________________________________________ EINE FÜR ALLE: die kostenlose WEB.DE-Plattform für Freunde und Deine Homepage mit eigenem Namen. Jetzt starten! http://unddu.de/?kid=kid at mf2
John Criswell
2008-Apr-22 18:00 UTC
[LLVMdev] The source code Makefile (newbie with pass registering Problem)
Nicole Irwanto wrote:> Hi!! > > It's me again. I guess that there is a problem in the Makefile of my source code. But I don't know where. Could you please verify it? >What error are you seeing? -- John T.> The Makefile is written like this: > > # Makefile for Genetic Algorithm Pass > > CXXFLAGS = -Wall -I/iss/fpga3/nicole/galib247/ > LDFLAGS= -L/iss/fpga3/nicole/galib247/ga/ -lga -Wl,-E > > # Path to top level of LLVM heirarchy > LEVEL=../../../ > > # Name of the library to build > LIBRARYNAME = gascheduling > > # Make the shared library become a loadable module so the tools can > # dlopen/dlsym on the resulting library. > # LOADABLE_MODULE = 1 > > # USEDLIBS=ga.a > # Tell the build system which LLVM libraries your pass needs. You'll probably > # need at least LLVMSystem.a, LLVMSupport.a, LLVMCore.a but possibly several > # others too. > # LLVMLIBS = LLVMCore.a LLVMSupport.a LLVMSystem.a > SHARED_LIBRARY = 1 > # ARCHIVE_LIBRARY = 1 > DONT_BUILD_RELINKED = 1 > # KEEP_SYMBOLS = 1 > # LINK_LIBS_IN_SHARED = 1 > > # Include the makefile implementation stuff > include $(LEVEL)/Makefile.common > > Thanks for your help!! I'm waiting for your answer. > > cheers, > Nicole > > > _______________________________________________________________________ > EINE FÜR ALLE: die kostenlose WEB.DE-Plattform für Freunde und Deine > Homepage mit eigenem Namen. Jetzt starten! http://unddu.de/?kid=kid at mf2 > > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >
Dominic Hamon
2008-Apr-24 14:24 UTC
[LLVMdev] The source code Makefile (newbie with pass registering Problem)
Nicole Irwanto wrote:> It's me again. I guess that there is a problem in the Makefile of my source code. But I don't know where. Could you please verify it? >This doesn't directly answer your question, however I'm hoping it might set someone on the right path to help. I've had problems passing CPPFLAGS through from my Makefiles to the llvm compile command line. It seems that anything I set in CPPFLAGS is set in the llvm Makefiles themselves (seen through 'make printvars'), however they don't make it to the gcc command line (see using 'make TOOL_VERBOSE=1'). I'm trying to add extra include paths to my build to modularise my source better. Dominic