Skip to content

Instantly share code, notes, and snippets.

@uho
Created July 9, 2012 12:44
Show Gist options
  • Save uho/3076265 to your computer and use it in GitHub Desktop.
Save uho/3076265 to your computer and use it in GitHub Desktop.
Skeleton Makefile to work with SPIN/Promela on the command line
# Skeleton Makefile to work with SPIN/Promela on the command line
SRC=philo.pml
check: ./pan
@rm -f $(SRC).trail
./pan -n
log: $(SRC) $(SRC).trail
spin -t -p $(SRC)
pan.c: $(SRC)
spin -a $(SRC)
pan: pan.c
gcc -O2 -o pan pan.c
clean:
rm pan pan.*
rm $(SRC).trail
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment