shared.mk 786 Bytes
Newer Older
1
OPENGEODE=../../../opengeode/opengeode.py
dbarbera's avatar
dbarbera committed
2 3 4 5 6 7
ASN1SCC=asn1.exe
CC=gcc
LLC=llc
GNATMAKE=gnatmake
GNATBIND=gnatbind
GNATLINK=gnatlink
8
O=0
dbarbera's avatar
dbarbera committed
9

dbarbera's avatar
dbarbera committed
10
clean:
11
	rm -rf *.adb *.ads *.pyc runSpark.sh spark.idx *.o *.so *.ali gnat.cfg \
dbarbera's avatar
dbarbera committed
12 13 14
	       examiner bin *.wrn *.gpr *.ll *.s dataview-uniq.c dataview-uniq.h \
	       real.c xer.c ber.c acn.c asn1crt.c asn1crt.h test_ada test_llvm \
	       *.autosave
dbarbera's avatar
dbarbera committed
15

dbarbera's avatar
dbarbera committed
16
%.o: %.pr FORCE
17
	$(OPENGEODE) $< system_structure.pr --llvm -O$(O)
dbarbera's avatar
dbarbera committed
18
	$(LLC) $*.ll
19
	$(CC) -O$(O) -c $*.s
dbarbera's avatar
dbarbera committed
20 21 22 23

%.ali: %.pr FORCE
	$(OPENGEODE) $< system_structure.pr --toAda
	$(ASN1SCC) -Ada dataview-uniq.asn -typePrefix asn1Scc -equal
24
	$(GNATMAKE) -O$(O) -c *.adb
dbarbera's avatar
dbarbera committed
25 26 27

%.o: %.asn FORCE
	$(ASN1SCC) -c $< -typePrefix asn1Scc -equal
28
	$(CC) -O$(O) -c $*.c
dbarbera's avatar
dbarbera committed
29 30

%.o: %.c FORCE
31
	$(CC) -O$(O) -c $<
dbarbera's avatar
dbarbera committed
32 33 34

FORCE:

35
.PHONY: clean