Mailing List ArchiveSupport open source code!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]tlug: imake question
- To: tlug@example.com
- Subject: tlug: imake question
- From: "Stephen J. Turnbull" <turnbull@example.com>
- Date: Thu, 18 Jun 1998 17:27:19 +0900 (JST)
- Content-Transfer-Encoding: 7bit
- Content-Type: text/plain; charset=us-ascii
- In-Reply-To: <13704.47225.701144.775889@example.com>
- References: <13704.47225.701144.775889@example.com>
- Reply-To: tlug@example.com
- Sender: owner-tlug@example.com
>>>>> "Marcus" == Marcus Metzler <mocm@example.com> writes: Marcus> does anybody know how to set dependencies for object files Marcus> in an Imakefile? Marcus> I want something that results in a Makefile saying: Marcus> foo.o: foo.h foo.c bar.h Marcus> cc -o foo.c Marcus> so that make knows that any change to bar.h requires a Marcus> rebuild of foo.o. If foo is all you are building PROGRAMS = foo HEADERS = foo.h bar.h OBJS = foo.o SRCS = foo.c NormalProgramTarget(foo,foo.o,,,) should do what you want. (Except for that fact that Imake is highly unlikely to write an action like `cc -o foo.c' :-), but you don't REALLY want that, do you?) However, you are likely to end up with excessive recompiles if only some of the object files depend on all of $HEADERS. AFAIK there's nothing to stop you from putting foo.o: foo.h foo.c bar.h cc -o foo.c directly in the Imakefile; it will be copied to the output. This will (possibly) screw up if foo depends on the details of your X installation, but if foo depends only on foo.h, foo.c, and bar.h you'll be OK. -------------------------------------------------------------- Next Nomikai: 17 July, 19:30 Tengu TokyoEkiMae 03-3275-3691 Next Meeting: 8 August, Tokyo Station Yaesu central gate 12:30 *** 20 June: TLUG will be at the Tokyo Linux Fair http://tlug.linux.or.jp/projects/linux-fair/fair.html -------------------------------------------------------------- Sponsor: PHT, makers of TurboLinux http://www.pht.co.jp
- Follow-Ups:
- tlug: imake question
- From: Marcus Metzler <mocm@example.com>
- References:
- tlug: imake question
- From: Marcus Metzler <mocm@example.com>
Home | Main Index | Thread Index
- Prev by Date: tlug: imake question
- Next by Date: tlug: imake question
- Prev by thread: tlug: imake question
- Next by thread: tlug: imake question
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links