help-make
[Top][All Lists]
Advanced

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

Help on Makefile


From: lucky7456969
Subject: Help on Makefile
Date: Mon, 7 May 2012 21:25:47 -0700 (PDT)

Code:

all : $(SOURCES)
        $(CC) $(CFLAGS) -o $(OBJECTS) $(SOURCES)

Code:

SOURCES = libiberty/alloca.c \
                libiberty/argv.c \
                libiberty/asprintf.c \
                libiberty/atexit.c \
       
...

Code:

OBJECTS = debug/libiberty/alloca.o  \
                debug/libiberty/argv.o   \
                debug/libiberty/asprintf.o  \
                debug/libiberty/atexit.o  \
                debug/libiberty/basename.o  \
                debug/libiberty/bcmp.o \
                debug/libiberty/bcopy.o \
                debug/libiberty/bsearch.o \

if i have such a build rule as this is, the whole OBJECTS and SOURCES will
be compiled in a single batch. How do I compile them separately? I have
googled, but already spent too much time on it

Thanks
Jack 
-- 
View this message in context: 
http://old.nabble.com/Help-on-Makefile-tp33763558p33763558.html
Sent from the Gnu - Make - Help mailing list archive at Nabble.com.




reply via email to

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