forked from prismmodelchecker/prism-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
35 lines (22 loc) · 887 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Need to link to a PRISM distribution
PRISM_DIR = ../prism
# For compilation, just need access to classes/jars in the PRISM distribution
# We look in both the top-level and the prism sub-directory
# (currently svn/git repos and downloaded distributions differ in structure)
PRISM_CLASSPATH = "$(PRISM_DIR)/classes:$(PRISM_DIR)/lib/*:$(PRISM_DIR)/prism/classes:$(PRISM_DIR)/prism/lib/*"
# This Makefile just builds all java files in src and puts the class files in classes
JAVA_FILES := $(shell cd src && find . -name '*.java')
CLASS_FILES = $(JAVA_FILES:%.java=classes/%.class)
default: all
all: init $(CLASS_FILES)
init:
@mkdir -p classes
classes/%.class: src/%.java
(javac -classpath $(PRISM_CLASSPATH) -d classes $<)
# Test execution
test:
PRISM_DIR=$(PRISM_DIR) PRISM_MAINCLASS=demos.ModelCheckFromFiles bin/run
# Clean up
clean:
@rm -f $(CLASS_FILES)
celan: clean