# Compiler directives in a file list?

**URL:** <https://verificationacademy.com/forums/t/compiler-directives-in-a-file-list/26037>\
**Category:** OVM\
**Tags:** OVM\
**Created:** [February 17, 2009, 10:26pm UTC](https://verificationacademy.com/forums/t/compiler-directives-in-a-file-list/26037 "2009-02-17T22:26:55Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Noam\_Elbaum](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/n/958977/32.png) [@Noam\_Elbaum](https://verificationacademy.com/forums/u/Noam_Elbaum)\
**Post date:** [August 4, 2021, 3:11pm UTC](https://verificationacademy.com/forums/t/compiler-directives-in-a-file-list/26037/3 "2021-08-04T15:11:19Z")

</div>

_In reply to [dave\_59](https://verificationacademy.com/forums/t/compiler-directives-in-a-file-list/26037/2):_

What do yo suggest in case i have library cells  
e.g.

i have lib.f which have:  
-v cell\_lib1.v  
-v cell\_lib2.v

now in each module the .f file includes a reference to this lib.f  
e.g.  
moduleA.f

moduleA.sv  
-f lib.f  
+incdir+…

same for moduleB …

and in top level i have top.f  
toplevel.sv  
-f moduleA.f  
-f moduleB.f

now the compiler parse the lib files for every module …  
the simple solution was (if ifdef was supported) to add to lib.f something like  
`ifndef _lib_guard `define \_lib\_guard  
-v cell\_lib1.v  
`endif

what is suggested (beside to build top.f from the basic components) - is there automated flow which can be used?

---

_[View the full topic](https://verificationacademy.com/forums/t/compiler-directives-in-a-file-list/26037)._
