makefile.tmplt 1.37 KB
Newer Older
1
2
3
4
5
@@-- The following tags are available in this template:
@@--
@@-- @_Function_Names_@      : Combined table: list of fuction names...
@@-- @_Language_@            : ... and corresponding implementation language
@@-- @_Unique_Languages_@    : List of all languages used in the system
6
7
8
9
@@-- @_ASN1_Files_@          : List of all ASN.1 files
@@-- @_ASN1_Modules_@        : List of all ASN.1 modules
dataviews:
	@@-- First generate Dataviews once per target language
10
	@@TABLE@@
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
38
	@@IF@@ @_Unique_Languages_@ /= "GUI"
	mkdir -p dataview/@_Unique_Languages_@
	@@IF@@ @_Unique_Languages_@ = "SDL"
	@@INLINE(	)( )(\n)@@
           cat
           @@TABLE@@
              @_ASN1_Files_@ 
           @@END_TABLE@@
           > dataview/@_Unique_Languages_@/dataview-uniq.asn
        @@END_INLINE@@
	@@ELSE@@
        @@INLINE(	)( )(\n)@@
           asn2dataModel -o dataview/@_Unique_Languages_@ -to@_Unique_Languages_@ 
           @@TABLE@@
              @_ASN1_Files_@
           @@END_TABLE@@
        @@END_INLINE@@
	@@END_IF@@
	@@IF@@ @_Unique_Languages_@ = "Ada"
	cd dataview/Ada && rm -f gnat.cfg GPS_project.gpr IgnoredExaminerWarnings.wrn runSpark.sh
	@@END_IF@@
	@@END_IF@@
        @@END_TABLE@@
	@@-- Then symlink the files for each function
	@@TABLE@@
	@@IF@@ @_Language_@ /= "GUI"
	ln -fs ${PWD}/dataview/@_Language_@/* @_LOWER:Function_Names_@/@_Language_@/src
	@@END_IF@@
39
	@@END_TABLE@@
40
41

all: dataviews