[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Dependencies
From: |
Jens Schweikhardt |
Subject: |
Re: Dependencies |
Date: |
Thu, 5 Jul 2001 09:51:07 +0200 |
User-agent: |
Mutt/1.2.5i |
On Thu, Jul 05, 2001 at 07:29:01AM +0000, Krzysztof Horecki wrote:
#
# Hi All
#
# I use make to compile .c files "directly" into library:
#
# OBJS = $(blabla ($SRCS))
# ($LIB): $(LIB)($OBJS)
#
# but I run into problems with dependencies of .c files. Ie. I define them
# like:
#
# asource1.o: asource1.c aheader1.h
#
# and the problem is that it compiles an asource1.o and leaves it in the
# directory. That's exactly what I don't want. On the other hand:
#
# asource.c: aheader1.h
#
# does not work out.
#
# Any ideas?
Declare the object files intermediate and they'll be removed:
.INTERMEDIATE: $(OBJS)
Regards,
Jens
--
Jens Schweikhardt http://www.schweikhardt.net/
SIGSIG -- signature too long (core dumped)
- Dependencies, Krzysztof Horecki, 2001/07/05
- Re: Dependencies,
Jens Schweikhardt <=