help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: makefile


From: address@hidden
Subject: Re: makefile
Date: 20 Jul 2006 09:13:11 -0700
User-agent: G2/0.2

Check out GNU automake.
You can the information by typing >>>           info automake on a
linux terminal
or use google search>>>>>     info automake


Gary Wessle wrote:
> Hi
> please point to a suitable place if this is not the place for this
> post.
>
> I will be doing lost of practice programs in c++ and thought it would
> be a good idea if I just copy and past this makefile in each directory
> where a given practice project is.
>
> OBJS = hello.o
> COMP = g++
>
> #### linker section ####
> proj: $(OBJS)
>       $(COMP) $(OBJS) -o proj
> ########################
>
>
> #### compiler section ####
> .SUFFIXES:.o .cpp .h
> .h.o:
>       $(COMP) -c $<
> ##########################
>
>
> is this a good idea and is the file above universally correct?
> instead of copying it, how can I just have it placed in a parent
> directory and use if for all the practice directories?
> 
> thanks



reply via email to

[Prev in Thread] Current Thread [Next in Thread]