Re: Make

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

 




--- Kartik CDS <kartik.cds@xxxxxxxxx> wrote:

> I am using the make utility to build a shared object (.so).
> If some of my files are not getting compiled, the so is being built
> with the
> remaining object files.
> Is there an option where in I can specify that if even 1 of the
> object file
> is not found, then dont build an so ?

 make the target (the .so I presume) depend on the
 files it needs compiled. E.g. if the main/default
 make target is "all"
=======
all: file1.o file2.o
        linkLibrary file1.o file2.o

file1.o: file1.c
        compile file1.c

...
=======

 Use "info make" for more detail/info.


He who laughs last thinks slowest.

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux