[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: (newbie problem #2?): make can't find my implicit rule
From: |
Paul D. Smith |
Subject: |
Re: (newbie problem #2?): make can't find my implicit rule |
Date: |
Mon, 10 Nov 2003 19:39:06 -0500 |
%% "Andy Voelkel" <address@hidden> writes:
av> I've got two different kinds of source files. Here are the implicit
av> rules I've defined:
av> %.obj:%.c
av> $(DSPTOOLS)\cl500 $(COPT) -fr $(OBJDIR) -cg -i$(INCDIR) $<
av> %.obj:%.asm
av> $(DSPTOOLS)\asm500 $(AOPT) -v548 -i$(INCDIR) $< $(OBJDIR)/$(@F)
av> Gmake seems to be perfectly happy to build obj files out of c files, but
av> not asm files. I looked at the debug output, and make says it can't find
av> an implicit rule.
It works fine for me (on Linux-- I don't have a Windows box):
$ cat Makefile
%.obj:%.c
echo '$(DSPTOOLS)\cl500 $(COPT) -fr $(OBJDIR) -cg -i$(INCDIR) $<'
%.obj:%.asm
echo '$(DSPTOOLS)\asm500 $(AOPT) -v548 -i$(INCDIR) $< $(OBJDIR)/$(@F)'
$ touch foo.asm
$ make
echo '\asm500 -v548 -i foo.asm /foo.obj'
\asm500 -v548 -i foo.asm /foo.obj
av> Any idea why?
Please provide full information: an exact makefile, exact steps to
reproduce from an empty directory using simple tools, the version of GNU
make you're using (make --version), how it's compiled, etc.
--
-------------------------------------------------------------------------------
Paul D. Smith <address@hidden> Find some GNU make tips at:
http://www.gnu.org http://make.paulandlesley.org
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist