1 uname_O
:= $(shell sh
-c
'uname -o 2>/dev/null || echo not')
2 ifeq ($(uname_O
),Cygwin
)
8 PLUGINSDIR ?
= ..
/plugins
10 EXTJARS
=$(wildcard $(PLUGINSDIR
)/*.jar
) $(wildcard $(JARSDIR
)/*.jar
)
11 JAVACOPTSJARS
=$(shell echo
"$(EXTJARS)" | tr \
$(CPSEP
))
12 JAVACOPTS
=-classpath ..
/ij.jar
$(CPSEP
)$(JAVACOPTSJARS
) -target
1.5 -source
1.5
14 JAVAS
=$(wildcard ini
/*/*.java ini
/*/*/*.java mpi
/*/*/*.java mpi
/*/*/*/*.java
)
15 CLASSES
=$(patsubst %.java
,%.class
,$(JAVAS
))
16 ALL_CLASSES
=$(patsubst %.java
,%*.class
,$(JAVAS
))
19 # does not work yet...
20 SIFT_JAVAS
=$(wildcard *.java
)
21 SIFT_CLASSES
=$(patsubst %.java
,%.class
,$(SIFT_JAVAS
))
22 SIFT_TARGET
=SIFT_Matcher_new.jar
29 $(TARGET
): plugins.config
$(CLASSES
)
30 jar cvf
$@
$< $(ALL_CLASSES
)
32 $(CLASSES
): %.class
: %.java
33 javac
-O
$(JAVACOPTS
) $(JAVAS
)
35 $(SIFT_TARGET
): $(SIFT_CLASSES
)
38 $(SIFT_CLASSES
): %.class
: %.java
39 javac
-O
$(JAVACOPTS
) $(SIFT_JAVAS
)