UNPKG

atscntrb-hx-mysession-g

Version:

This package is for experimenting with MP session types

144 lines (126 loc) 2.12 kB
# # A Simple Makefile # ###### PATSCC=$(PATSHOME)/bin/patscc PATSOPT=$(PATSHOME)/bin/patsopt ###### all:: ###### all:: \ intset intset: \ intset.dats; \ $(PATSCC) -DATS_MEMALLOC_LIBC -o $@ $< cleanall:: ; $(RMF) intset ###### # all:: \ test01-2p test01-2p: \ test01-2p.dats; \ $(PATSCC) -D_GNU_SOURCE -DATS_MEMALLOC_LIBC -o $@ $< -lpthread # regress:: test01-2p; ./$< cleanall:: ; $(RMF) test01-2p # ###### # all:: \ test02-2p test02-2p: \ test02-2p.dats; \ $(PATSCC) --constraint-ignore \ -D_GNU_SOURCE -DATS_MEMALLOC_LIBC -o $@ $< test_mylib.dats -lpthread # regress:: test02-2p; ./$< cleanall:: ; $(RMF) test02-2p # ###### # all:: \ test02-3p test02-3p: \ test02-3p.dats; \ $(PATSCC) --constraint-ignore \ -D_GNU_SOURCE -DATS_MEMALLOC_LIBC -o $@ $< test_mylib.dats -lpthread # regress:: test02-3p; ./$< cleanall:: ; $(RMF) test02-3p # ###### # all:: \ test03-4p test03-4p: \ test03-4p.dats; \ $(PATSCC) --constraint-ignore \ -D_GNU_SOURCE -DATS_MEMALLOC_LIBC -o $@ $< test_mylib.dats -lpthread # regress:: test03-4p; ./$< cleanall:: ; $(RMF) test03-4p # ###### # all:: \ bitstr bitstr: \ bitstr.dats; \ $(PATSCC) -D_GNU_SOURCE \ -DATS_MEMALLOC_LIBC -o $@ $< test_mylib.dats -lpthread # regress:: \ bitstr; ./bitstr 123 987 cleanall:: ; $(RMF) bitstr # ###### # all:: \ sieve sieve: \ sieve.dats; \ $(PATSCC) -D_GNU_SOURCE \ -DATS_MEMALLOC_LIBC -o $@ $< test_mylib.dats -lpthread # regress:: sieve; ./$< cleanall:: ; $(RMF) sieve # ###### # all:: \ S0B1B2 S0B1B2: \ S0B1B2.dats; \ $(PATSCC) --constraint-ignore \ -D_GNU_SOURCE -DATS_MEMALLOC_LIBC -o $@ $< test_mylib.dats -lpthread # regress:: S0B1B2; ./$< cleanall:: ; $(RMF) S0B1B2 # ###### # all:: \ S0B1B2_rec S0B1B2_rec: \ S0B1B2_rec.dats; \ $(PATSCC) --constraint-ignore \ -D_GNU_SOURCE -DATS_MEMALLOC_LIBC -o $@ $< test_mylib.dats -lpthread # regress:: S0B1B2_rec; ./$< cleanall:: ; $(RMF) S0B1B2_rec # ###### RMF=rm -f ###### testall:: all testall:: regress testall:: cleanall ###### ###### clean:: ; $(RMF) *~ clean:: ; $(RMF) *_?ats.c clean:: ; $(RMF) *_?ats.o ###### cleanall:: clean ###### ###### end of [Makefile] ######