Using generated sources with Delphi

From: Stefan Bellon (sbellon_at_sbellon.de)
Date: 12/29/04


Date: Wed, 29 Dec 2004 12:50:16 +0100

I have to use generated sources from within Delphi (version 4).
Therefore I added rules to the project group file (.bpg) like this:

main.exe: main.dpr
  $(DCC)

scanner.pas: scanner.l
  $(LEX) $<

parser.pas: parser.y
  $(YACC) $<

But when I add a "uses Scanner" or "uses Parser" to main.dpr, Delphi
just complains that it cannot find the files.

How do I tell Delphi that it should create them using the rules in the
.bpg file?

Thanks a lot in advance!

-- 
Stefan Bellon

Quantcast