-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmakefile
More file actions
39 lines (26 loc) · 661 Bytes
/
Copy pathmakefile
File metadata and controls
39 lines (26 loc) · 661 Bytes
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
include Makefile.os
JC = javac
JFLAGS = -g -deprecation -Xlint:unchecked -source 1.6
# -target 1.6
ifeq "$(PLATFORM)" "win32"
LIBS = $(IMAGEJ)
SHELL = sh.exe
else
LIBS = /home/ImageJ/jars
endif
SOURCEFILES = $(wildcard *.java)
CLASSFILES = $(SOURCEFILES:.java=.class)
DEST = ..
.SUFFIXES: .java .class
%.class:
$(JC) $(JFLAGS) -extdirs $(LIBS) $*.java
# begin ---- JAR support ----------
JARFILE = Barcode_Codec.jar
$(JARFILE): $(CLASSFILES) $(SOURCEFILES)
jar cf $(JARFILE) <<manifest.tmp *.class licence.txt COPYING.txt
default: $(CLASSFILES)
all: $(JARFILE) $(CLASSFILES) install clean
install:
mv $(JARFILE) $(DEST)
clean:
$(RM) *.class