makefile.tmplt 558 Bytes
Newer Older
1

Maxime Perrotin's avatar
Maxime Perrotin committed
2
3
4
5
6
all: compile-linux

clean:
	rm -rf obj

7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
@@IF@@ @_Language_@ = QGenC
generate-code:
	mkdir -p code && \
	   qgenc ../xmi/@_List_Of_PIs_@.xmi --gen-entrypoint --wrap-io --pre-process-xmi --clean --no-misra --language c --output code
    :
@@ELSIF@@ @_Language_@ = QGenAda
generate-code:
	mkdir -p code && \
	   qgenc ../xmi/@_List_Of_PIs_@.xmi --gen-entrypoint --wrap-io --pre-process-xmi --clean --no-misra --language ada --output code
    :
@@END_IF@@

compile-linux: generate-code
	mkdir -p obj && cd obj && gcc -c ../src/*.c ../code/*.c ../wrappers/*.c