On Thu, 26 Nov 2015 12:48:05 -0700, Jack J. Woehr wrote:
>    ...
>    ###################
>    # Compilation rules
>    ###################
>
>    CC = c89
>    LD = ld
>
>    $(OBJDIR1)/%.o : $(SRCDIR1)/%.cpp
>             $(CC) $(INC_PATH_FLAGS) $(CFLAGS1) -c $< -o $@
>
>    $(OBJDIR2)/%.o : $(SRCDIR2)/%.cpp
>             $(CC) $(INC_PATH_FLAGS) $(CFLAGS2) -c $< -o $@
>
>    .. where the two different CFLAGS would have your different options in 
> this very simple example
>    There are other ways to pass different flags to different files aside from 
> sorting them into different dirs.
> 
I'd use a generic suffix rule for the preponderance of the sources and a 
specific
rule naming the few exceptions

-- gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to