aa899f3120e2aa1d90cd35f457a3fdad9a013903
Christian Heimke BlinkenLibJava v.0.1.1 (200...

Christian Heimke authored 13 years ago

1) # BlinkenLib
Stefan Schuermans removed version information...

Stefan Schuermans authored 13 years ago

2) # Copyright (C) 2004-2011: Stefan Schuermans <stefan@schuermans.info>
Christian Heimke BlinkenLibJava v.0.1.1 (200...

Christian Heimke authored 13 years ago

3) # Copyleft: GNU public license - http://www.gnu.org/copyleft/gpl.html
4) # a blinkenarea.org project
5) 
Stefan Schuermans version information availab...

Stefan Schuermans authored 13 years ago

6) VERSION_MAJOR=0
7) VERSION_MINOR=1
8) VERSION_REVISION=5
9) 
Christian Heimke BlinkenLibJava v.0.1.1 (200...

Christian Heimke authored 13 years ago

10) JAVAC=javac
11) JAR=jar
12) KEYTOOL=keytool
13) JARSIGNER=jarsigner
14) KEYPASS=BlinkenLib
15) JAVA=java
16) P=org/blinkenarea/BlinkenLib
17) 
Stefan Schuermans version information availab...

Stefan Schuermans authored 13 years ago

18) CLASS_FILES=$(P)/BlinkenConstants.class $(P)/BlinkenFrame.class \
19)             $(P)/BlinkenMovie.class $(P)/Version.class
Christian Heimke BlinkenLibJava v.0.1.1 (200...

Christian Heimke authored 13 years ago

20) 
21) .phony: all clean jar
22) 
23) all: jar
24) 
25) clean:
Stefan Schuermans use variable instead of har...

Stefan Schuermans authored 13 years ago

26) 	rm -f $(P).java $(CLASS_FILES) BlinkenLib.jar
Christian Heimke BlinkenLibJava v.0.1.1 (200...

Christian Heimke authored 13 years ago

27) 
28) jar: BlinkenLib.jar
29) 
Stefan Schuermans use variable instead of har...

Stefan Schuermans authored 13 years ago

30) $(P)/Version.java: Makefile
Stefan Schuermans version information availab...

Stefan Schuermans authored 13 years ago

31) 	echo "package org.blinkenarea.BlinkenLib;" >$@
32) 	echo "public class Version {" >>$@
33) 	echo "  public static int Major = $(VERSION_MAJOR);" >>$@
34) 	echo "  public static int Minor = $(VERSION_MINOR);" >>$@
35) 	echo "  public static int Revision = $(VERSION_REVISION);" >>$@
36) 	echo "}" >>$@
37) 
Christian Heimke BlinkenLibJava v.0.1.1 (200...

Christian Heimke authored 13 years ago

38) %.class: %.java
39) 	$(JAVAC) $<
40) 
41) BlinkenLib.keystore:
Stefan Schuermans removed version information...

Stefan Schuermans authored 13 years ago

42) 	$(KEYTOOL) -genkey -alias BlinkenLib -keystore BlinkenLib.keystore -keypass $(KEYPASS) -storepass $(KEYPASS) -dname cn=BlinkenLib -validity 3560
Christian Heimke BlinkenLibJava v.0.1.1 (200...

Christian Heimke authored 13 years ago

43) 
44) BlinkenLib.jar: BlinkenLib.keystore $(CLASS_FILES)
45) 	$(JAR) cf BlinkenLib.jar $(CLASS_FILES)
46) 	$(JARSIGNER) -keystore BlinkenLib.keystore -storepass $(KEYPASS) BlinkenLib.jar BlinkenLib