-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
43 lines (31 loc) · 1.24 KB
/
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
36
37
38
39
40
41
42
43
#Makefile for wfdb-java-applications
#NOTE: this make file uses Eclipse and Ant to build the jar file headlessly.
#The Ant build.xml file can be modified from within the Eclipse prooject
#by right clicking on the file and selecting "Run As ..." -> "Ant Build..."
#Using this option allows you to modify the build file in an Eclipse compatible
#way so that any external libraries (ie, jcommon.jar) will be included in the
#headless build process.
#Output Settings (defined in build.xml)
JAR_DIR := ./build/jar/
JAR_NAME := $(JAR_DIR)wfdbapp.jar
#Java Tools
JAVA := /afs/ecg.mit.edu/software/java/amd64_linux26/java_v1.6.0_26/jre/bin/java
BUILDFILE_DIR := /home/ikaro/workspace/wfdb-java-app/build.xml
ECLIPSEPATH := /lib64/eclipse/plugins/
ANTPATH := org.eclipse.ant.core.antRunner
EQUINOXPATH := $(ECLIPSEPATH)org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
JARFLAGS := -jar \
$(EQUINOXPATH) \
-application $(ANTPATH) \
-buildfile $(BUILDFILE_DIR)
#Tests
JTEST := $(JAVA) -cp $(JAR_NAME)
TEST_PHYSIONETDB := $(JTEST) org.physionet.wfdb.physiobank.PhysioNetDB
TEST_RDSAMP := $(JTEST) org.physionet.wfdb.examples.RdsampEx1
#compile the source
.PHONY: jar
jar:
$(JAVA) $(JARFLAGS)
.INTERMEDIATE: test
test: jar
$(TEST_RDSAMP)