|
|
|
|
Re: Using make [message #77071 is a reply to message #76932] |
Fri, 25 July 2003 01:35 |
Eclipse User |
|
|
|
Originally posted by: alain.nowhere.ca
Joost Kraaijeveld wrote:
Very clever.
They was a suggestion to provide an out-of-the-box
makefile when creating a "std make project" ...
hope you snippet below is not copyrighted 8-)
> ####### Start of a sample makefile
> ####### Directory options
> TARGETDIR = ../../Targets/Bin
> OBJECTSDIR = ../../Objects/Exe
> ####### Files
> SOURCES := $(wildcard *.cpp)
> OBJECTS = $(patsubst %.cpp, $(OBJECTSDIR)/%.o, $(SOURCES))
> TARGET = $(TARGETDIR)/Main.exe
> ####### C++ Compiler options
> CXX = g++
> CXXFLAGS = -c
> ####### Common Compiler options
> INCPATH = -I ../Dll
> ####### Linker options
> LINK = g++
> LFLAGS =
> LIBS = $(TARGETDIR)/libObject.dll
> ####### Pattern matching rule for .cpp file
> $(OBJECTSDIR)/%.o : %.cpp
> $(CXX) $(CXXFLAGS) $(INCPATH) $< -o $@
> ####### Targets
> all: $(TARGET)
> $(TARGET) : .depend $(OBJECTS)
> $(LINK) $(LFLAGS) -o$(TARGET) $(OBJECTS) $(LIBS)
> ..depend:
> -rm -f .depend
> $(CXX) -MM *.cpp | sed 's/^/$$(OBJECTSDIR)//' >> .depend
> clean:
> -rm .depend
> -rm $(OBJECTS)
> -rm $(TARGET)
> ifeq (.depend, $(wildcard .depend))
> include .depend
> endif
|
|
|
|
Re: Using make [message #77907 is a reply to message #77084] |
Wed, 06 August 2003 06:41 |
Eclipse User |
|
|
|
Originally posted by: simon.ou.edu
Hi Joost...
Could this kind of makefile be automated into a plugin? Thanks.
Regards...
Miguel.
Joost Kraaijeveld wrote:
> "alain" <alain@nowhere.ca> wrote in message news:bfq1ga$ch4$1@eclipse.org...
>
>>Joost Kraaijeveld wrote:
>>
>>
>>Very clever.
>>They was a suggestion to provide an out-of-the-box
>>makefile when creating a "std make project" ...
>>hope you snippet below is not copyrighted 8-)
>>
>
>
> Feel free to use it
>
|
|
|
Powered by
FUDForum. Page generated in 0.03634 seconds