summaryrefslogtreecommitdiff
path: root/ghdl.gpr.in
blob: c2400e7b99057c9e49c01c3e966f7838619c7694 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
project Ghdl is

   srcdir := "@srcdir@";

   for Source_Dirs use (srcdir,
                        srcdir & "/src",
                        srcdir & "/src/vhdl",
                        srcdir & "/src/vhdl/translate",
                        srcdir & "/src/psl",
                        srcdir & "/src/ghdldrv",
                        srcdir & "/src/grt",
                        srcdir & "/src/grt/config",
                        srcdir & "/src/ortho",
                        srcdir & "/src/ortho/mcode");

   for Excluded_Source_Files use ("grt-cthreads.c", "win32.c", "pthread.c",
                                  "teststack.c",
				  "amd64.S", "sparc.S", "ppc.S", "ia64.S");

   for Languages use ("Ada", "C", "Asm_Cpp");
   for Main use ("ghdl_jit.adb");

   package Builder is
      for Executable ("ghdl_jit.adb") use "ghdl_mcode";
   end Builder;

   package Compiler is
      for Default_Switches ("Ada") use
         ("-gnaty3befhkmr", "-gnata", "-gnatwael", "-gnatf", "-gnat05", "-g");
      for Default_Switches ("C") use ("-DWITH_GNAT_RUN_TIME");
   end Compiler;

   package Linker is
      for Switches ("Ada") use ("-lm", "-ldl");
   end Linker;
end Ghdl;