37de26032b875a2bb9c290b03fcec9d5be989959
Christian Heimke Blimp v.0.2 (2004-11-10)

Christian Heimke authored 13 years ago

1) # BlinkenLightsInteractiveMovieProgram
Stefan Schuermans add MCUF file/device output

Stefan Schuermans authored 11 years ago

2) # Copyright (C) 2004-2013: Stefan Schuermans <stefan@blinkenarea.org>
Christian Heimke Blimp v.0.2 (2004-11-10)

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 fix dependencies in Makefil...

Stefan Schuermans authored 10 years ago

6) BLINKENLIB:=../BlinkenLibJava/BlinkenLib.jar
7) JFLEXIPIX:=../JFlexiPix/JFlexiPix.jar
8) 
9) VERSION_MAJOR:=1
10) VERSION_MINOR:=4
11) VERSION_REVISION:=4
12) 
13) JAVAC:=javac
14) JAR:=jar
15) KEYTOOL:=keytool
16) JARSIGNER:=jarsigner
17) KEYPASS:=BlinkenLightsInteractiveMovieProgram
18) JAVA:=java
19) P:=org/blinkenarea/Blimp
20) IMG:=$(P)/images
21) 
22) GENJAVA:=$(P)/Version.java
23) 
24) CLASSPATH:=.:$(BLINKENLIB):$(JFLEXIPIX)
25) 
26) CLASS_FILES:=$(P)/BlinkenFileFilter.class $(P)/BlinkenFrameDisplay.class \
27)              $(P)/BlinkenFrameDisplayListener.class $(P)/BlinkenFrameDisplayInterceptor.class \
28)              $(P)/BlinkenFrameEditor.class $(P)/BlinkenFrameEditorListener.class \
29)              $(P)/Blimp.class $(P)/Version.class
30) 
31) IMAGE_FILES:=$(IMG)/ColorPicker.png $(IMG)/Dot.png $(IMG)/Line.png \
32)              $(IMG)/Rectangle.png $(IMG)/FilledRectangle.png \
33)              $(IMG)/Circle.png $(IMG)/FilledCircle.png \
34)              $(IMG)/Copy.png $(IMG)/Paste.png \
35)              $(IMG)/Invert.png $(IMG)/MirrorHor.png $(IMG)/RollLeft.png \
36)              $(IMG)/Rotate90.png $(IMG)/MirrorVer.png $(IMG)/RollRight.png \
37)              $(IMG)/Rotate180.png $(IMG)/MirrorDiag.png $(IMG)/RollUp.png \
38)              $(IMG)/Rotate270.png $(IMG)/MirrorDiag2.png $(IMG)/RollDown.png \
39)              $(IMG)/Undo.png $(IMG)/Redo.png \
40)              $(IMG)/InsertFrame.png $(IMG)/DuplicateFrame.png $(IMG)/DeleteFrame.png
Christian Heimke Blimp v.0.2 (2004-11-10)

Christian Heimke authored 13 years ago

41) 
42) .phony: all clean jar run
43) 
Christian Heimke Blimp v.1.3 (2006-10-10)

Christian Heimke authored 13 years ago

44) all: jar
Christian Heimke Blimp v.0.2 (2004-11-10)

Christian Heimke authored 13 years ago

45) 
46) clean:
Stefan Schuermans version available in class...

Stefan Schuermans authored 13 years ago

47) 	rm -f $(P)/Version.java $(CLASS_FILES) BlinkenLib.jar Blimp.jar
Christian Heimke Blimp v.0.2 (2004-11-10)

Christian Heimke authored 13 years ago

48) 
49) jar: Blimp.jar
50) 
Christian Heimke Blimp v.1.3 (2006-10-10)

Christian Heimke authored 13 years ago

51) run: Blimp.jar
Stefan Schuermans minor makefile fixes

Stefan Schuermans authored 13 years ago

52) 	$(JAVA) -jar $<
Christian Heimke Blimp v.1.3 (2006-10-10)

Christian Heimke authored 13 years ago

53) 
Stefan Schuermans version available in class...

Stefan Schuermans authored 13 years ago

54) $(P)/Version.java: Makefile
55) 	echo "package org.blinkenarea.Blimp;" >$@
56) 	echo "public class Version {" >>$@
57) 	echo "  public static int Major = $(VERSION_MAJOR);" >>$@
58) 	echo "  public static int Minor = $(VERSION_MINOR);" >>$@
59) 	echo "  public static int Revision = $(VERSION_REVISION);" >>$@
60) 	echo "}" >>$@
61) 
Stefan Schuermans fix dependencies in Makefil...

Stefan Schuermans authored 10 years ago

62) %.class: %.java $(GENJAVA)
Christian Heimke Blimp v.1.3 (2006-10-10)

Christian Heimke authored 13 years ago

63) 	$(JAVAC) -classpath $(CLASSPATH) $<
64) 
Christian Heimke Blimp v.0.2 (2004-11-10)

Christian Heimke authored 13 years ago

65) Blimp.keystore:
Stefan Schuermans minor makefile fixes

Stefan Schuermans authored 13 years ago

66) 	$(KEYTOOL) -genkey -alias Blimp -dname CN=Blimp,O=blinkenarea,C=org -keypass $(KEYPASS) -keystore Blimp.keystore -storepass $(KEYPASS) -validity 3652
Christian Heimke Blimp v.0.2 (2004-11-10)

Christian Heimke authored 13 years ago

67) 
Stefan Schuermans undo inclusion of jar in ja...

Stefan Schuermans authored 13 years ago

68) Blimp.jar: Blimp.mf Blimp.keystore $(CLASS_FILES) $(IMAGE_FILES)
69) 	rm -rf tmp
70) 	mkdir tmp
71) 	for FILE in $(CLASS_FILES) $(IMAGE_FILES); \
72) 	  do \
73) 	    mkdir -p tmp/$$(dirname $$FILE) || exit; \
74) 	    cp $$FILE tmp/$$FILE || exit; \
75) 	  done
76) 	for JAR in $(filter %.jar,$(subst :, ,$(CLASSPATH))); \
Stefan Schuermans fix error message in buildi...

Stefan Schuermans authored 13 years ago

77) 	  do ( \
78) 	    cd tmp || exit; \
79) 	    $(JAR) xf ../$$JAR || exit; \
Stefan Schuermans undo inclusion of jar in ja...

Stefan Schuermans authored 13 years ago

80) 	    rm -rf META-INF; \
Stefan Schuermans fix error message in buildi...

Stefan Schuermans authored 13 years ago

81) 	  ) done
Stefan Schuermans undo inclusion of jar in ja...

Stefan Schuermans authored 13 years ago

82) 	cd tmp; $(JAR) cmf ../Blimp.mf ../Blimp.jar .
83) 	rm -rf tmp