Commit 2465d443 authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Improve blackbox makefile

call gcc with -fsyntax-check after the edit rule
parent 1b513179
......@@ -6,6 +6,7 @@
@@-- @_Is_Type_@ : Flag set to True for function type
@@-- @_Instance_Of_@ : Name of function type if instance
VISUAL?=kate
CC?=gcc
all: compile-linux
......@@ -14,7 +15,13 @@ clean:
edit:
$(VISUAL) ../../dataview/C/dataview-uniq.h src/@_LOWER:Name_@.h src/@_LOWER:Name_@.c
$(MAKE) syntax-check
syntax-check:
$(CC) -c -fsyntax-only ../../dataview/C/dataview-uniq.h src/@_LOWER:Name_@.h src/@_LOWER:Name_@.c -I../../dataview/C
compile-linux:
mkdir -p obj && cd obj && gcc -c ../src/*.c
if [ -d wrappers ]; then cd obj && gcc -c ../wrappers/*.c; fi
.PHONY: edit syntax-check compile-linux
......@@ -6,13 +6,13 @@ ada: test-parse-ada
cp caller_in_c/caller_in_c.c output.ada/caller_in_c/C/src
cp caller_in_ada/caller_in_ada.adb output.ada/caller_in_ada/Ada/src
cp blackbox/blackbox.c output.ada/blackbox/Blackbox_C/src
make -C output.ada
$(MAKE) -C output.ada
c: test-parse-c # Polyorb_HI_C output
cp caller_in_c/caller_in_c.c output.pohic/caller_in_c/C/src
cp caller_in_ada/caller_in_ada.adb output.pohic/caller_in_ada/Ada/src
cp blackbox/blackbox.c output.pohic/blackbox/Blackbox_C/src
$(MAKE) -C output.pohic
cp caller_in_c/caller_in_c.c work/caller_in_c/C/src
cp caller_in_ada/caller_in_ada.adb work/caller_in_ada/Ada/src
cp blackbox/blackbox.c work/blackbox/Blackbox_C/src
$(MAKE) -C work
test-parse-ada: clean-ada
$(KAZOO) --gw \
......@@ -22,7 +22,7 @@ test-parse-ada: clean-ada
test-parse-c: clean-c
$(KAZOO) -p --gw \
-o output.pohic \
-o work \
--glue --debug
buildsupport_pohic:
buildsupport -o output.buildsupport.pohic -p --aadlv2 --glue -i InterfaceView.aadl -c DeploymentView.aadl -d DataView.aadl ../common/ocarina_components.aadl ../common/TASTE_IV_Properties.aadl ../common/TASTE_DV_Properties.aadl
......@@ -32,7 +32,7 @@ buildsupport_pohiada:
gdb: clean
gdb --args $(KAZOO) --gw \
-o output.pohic \
-o work \
--glue \
--debug
......@@ -40,13 +40,13 @@ clean-ada:
rm -rf output.ada
clean-c:
rm -rf output.pohic
rm -rf work
skeletons:
$(KAZOO) -p --gw --glue -o code && make -C code dataview
$(KAZOO) -p --gw --glue -o work && make -C work dataview
clean-skeletons:
rm -rf code
rm -rf work
clean: clean-ada clean-c clean-skeletons
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment