Commit c31f016d authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Add debug flag to makefiles

parent cd182a40
...@@ -16,19 +16,19 @@ clean: ...@@ -16,19 +16,19 @@ clean:
%.o: %.pr FORCE %.o: %.pr FORCE
$(OPENGEODE) $< system_structure.pr --llvm -O$(O) $(OPENGEODE) $< system_structure.pr --llvm -O$(O)
$(LLC) $*.ll $(LLC) $*.ll
$(CC) -O$(O) -c $*.s $(CC) -O$(O) -c -g $*.s
%.ali: %.pr FORCE %.ali: %.pr FORCE
$(OPENGEODE) $< system_structure.pr --toAda $(OPENGEODE) $< system_structure.pr --toAda
$(ASN1SCC) -Ada dataview-uniq.asn -typePrefix asn1Scc -equal $(ASN1SCC) -Ada dataview-uniq.asn -typePrefix asn1Scc -equal
$(GNATMAKE) -O$(O) -c *.adb $(GNATMAKE) -O$(O) -c -g *.adb
%.o: %.asn FORCE %.o: %.asn FORCE
$(ASN1SCC) -c $< -typePrefix asn1Scc -equal $(ASN1SCC) -c $< -typePrefix asn1Scc -equal
$(CC) -O$(O) -c $*.c $(CC) -O$(O) -c -g $*.c
%.o: %.c FORCE %.o: %.c FORCE
$(CC) -O$(O) -c $< $(CC) -O$(O) -c -g $<
FORCE: FORCE:
......
...@@ -18,10 +18,10 @@ test-llvm: orchestrator.o ...@@ -18,10 +18,10 @@ test-llvm: orchestrator.o
test-python: test-python:
$(OPENGEODE) orchestrator.pr system_structure.pr --shared $(OPENGEODE) orchestrator.pr system_structure.pr --shared
$(ASN1SCC) -Ada dataview-uniq.asn -typePrefix asn1Scc -equal $(ASN1SCC) -Ada dataview-uniq.asn -typePrefix asn1Scc -equal
$(GNATMAKE) -O$(O) -c *.adb $(GNATMAKE) -O$(O) -gnat2012 -c *.adb
$(GNATBIND) -n -Lliborchestrator orchestrator $(GNATBIND) -n -Lliborchestrator orchestrator
$(GNATMAKE) -c b~orchestrator.adb $(GNATMAKE) -c -gnat2012 b~orchestrator.adb
$(CC) -shared -o liborchestrator.so b~orchestrator.o orchestrator.o taste_basictypes.o adaasn1rtl.o -lgnat $(CC) -shared -fPIC -o liborchestrator.so b~orchestrator.o orchestrator.o taste_basictypes.o adaasn1rtl.o -lgnat
python -c "from ctypes import *; test=CDLL('./liborchestrator.so'); test.liborchestratorinit()" python -c "from ctypes import *; test=CDLL('./liborchestrator.so'); test.liborchestratorinit()"
coverage: coverage:
......
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