[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: $(OBJS) not generated
From: |
Ian Dunbar |
Subject: |
Re: $(OBJS) not generated |
Date: |
Sat, 2 Oct 2004 12:32:22 +0900 |
Torsten Mohr wrote:
> final.elf: $(OBJ) $(DEP)
> $(LD) -o $@ $(OBJ)
You need to move this to after where you set OBJ. At the point that you
declare the target here, OBJ is empty.
Also you don't need the dependency on $(DEP) because final.elf doesn't
really depend on them. Make will try to create them automatically once you
"include" them.
It might be wiser to use $^ (list of all prerequisites) instead of $(OBJ)
explicitly in the command. That way you would see when the prerequisites
aren't set correctly.
# somewhere after OBJ is defined.
final.elf: $(OBJ)
$(LD) -o $@ $^
Best regards,
Ian
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.771 / Virus Database: 518 - Release Date: 2004/09/28