-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile.common.mk
84 lines (49 loc) · 3.02 KB
/
Makefile.common.mk
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#
# Note that PATHTOROOT must have been specified prior to including this file
#
PATHTOHOME = /Users/dclunie
JUNITJAR = ${PATHTOROOT}/lib/junit/junit-4.8.1.jar
ADDITIONALJARDIRINROOT = lib/additional
PATHTODCTOOLSUPPORTFROMROOT = ../../dctool.support
PATHTODCTOOLSFROMROOT = ../../dicom3tools
PATHTOSCPECGSAMPLESFROMROOT = ../../../Documents/Medical/stuff/ECG/OpenECG
PATHTOTESTFILESFROMROOT = ./testpaths
PATHTOTESTRESULTSFROMROOT = ./testresults
PATHTOADDITIONAL = ${PATHTOROOT}/${ADDITIONALJARDIRINROOT}
PATHTODCTOOLSUPPORT = ${PATHTOROOT}/${PATHTODCTOOLSUPPORTFROMROOT}
PATHTODCTOOLS = ${PATHTOROOT}/${PATHTODCTOOLSFROMROOT}
# commons-compress for bzip2 not needed for compile, but useful for execution if available ...
COMMONSCOMPRESSJARFILENAME = commons-compress-1.12.jar
COMMONSCOMPRESSADDITIONALJAR = ${PATHTOADDITIONAL}/${COMMONSCOMPRESSJARFILENAME}
BZIP2ADDITIONALJAR = ${COMMONSCOMPRESSADDITIONALJAR}
JIIOADDITIONALJARS = ${PATHTOADDITIONAL}/jai_imageio.jar
VECMATHADDITIONALJAR = ${PATHTOADDITIONAL}/vecmath1.2-1.14.jar
SLF4JCOMPILEADDITIONALJAR = ${PATHTOADDITIONAL}/slf4j-api-1.7.22.jar
SLF4JSIMPLEADDITIONALJAR = ${PATHTOADDITIONAL}/slf4j-api-1.7.22.jar:${PATHTOADDITIONAL}/slf4j-simple-1.7.22.jar
# commons-codec not needed for compile, but useful for execution if available ...
COMMONSCODECJARFILENAME = commons-codec-1.3.jar
COMMONSCODECADDITIONALJAR = ${PATHTOADDITIONAL}/${COMMONSCODECJARFILENAME}
DICOMADDITIONALJARS = ${BZIP2ADDITIONALJAR}:${COMMONSCODECADDITIONALJAR}:${VECMATHADDITIONALJAR}
DISPLAYADDITIONALJARS = ${DICOMADDITIONALJARS}:${JIIOADDITIONALJARS}
DATABASEADDITIONALJARS = ${PATHTOADDITIONAL}/hsqldb.jar
FTPADDITIONALJARS = ${PATHTOADDITIONAL}/commons-net-ftp-2.0.jar
NETWORKADDITIONALJARS = ${PATHTOADDITIONAL}/jmdns.jar
VIEWERADDITIONALJARS = ${DISPLAYADDITIONALJARS}:${DATABASEADDITIONALJARS}:${NETWORKADDITIONALJARS}
SERVERADDITIONALJARS = ${VIEWERADDITIONALJARS}
#JPEGBLOCKREDACTIONJAR = $${HOME}/work/codec/pixelmed_codec.jar
JPEGBLOCKREDACTIONJAR = ${PATHTOADDITIONAL}/pixelmed_codec.jar
#PIXELMEDIMAGEIOJAR = $${HOME}/work/codec/pixelmed_imageio.jar
PIXELMEDIMAGEIOJAR = ${PATHTOADDITIONAL}/pixelmed_imageio.jar
JAVAVERSIONTARGET=1.7
JAVACTARGETOPTIONS=-target ${JAVAVERSIONTARGET} -source ${JAVAVERSIONTARGET} -bootclasspath $${JAVAVERSIONTARGETJARFILE}
.SUFFIXES: .class .java .ico .png .properties .utf-8_properties
# -XDignore.symbol.file needed to find "package com.sun.image.codec.jpeg" ("http://stackoverflow.com/questions/1906673/import-com-sun-image-codec-jpeg")
JAVACOPTIONS = -O ${JAVACTARGETOPTIONS} -encoding "UTF8" -Xlint:deprecation -XDignore.symbol.file -Xdiags:verbose
.java.class:
export JAVAVERSIONTARGETJARFILE=`/usr/libexec/java_home -v ${JAVAVERSIONTARGET} | tail -1`/jre/lib/rt.jar; javac ${JAVACOPTIONS} \
-classpath ${PATHTOROOT}:${SLF4JCOMPILEADDITIONALJAR}:${DICOMADDITIONALJARS}:${VIEWERADDITIONALJARS}:${FTPADDITIONALJARS}:${JUNITJAR} \
-sourcepath ${PATHTOROOT} $<
.utf-8_properties.properties:
native2ascii -encoding UTF8 $< >$@
clean:
rm -f *~ *.class core *.bak test.*