git @ Cat's Eye Technologies JaC64 / ac7d5d3
Convert EOLs in Makefile from (mostly) CRLFs to (all) LFs. Chris Pressey 6 years ago
1 changed file(s) with 70 addition(s) and 70 deletion(s). Raw diff Collapse all Expand all
0 # GNU Makefile for JaC64
0 # GNU Makefile for JaC64
11
2 ###############################################################
3 # VARIABLES
4 ###############################################################
2 ###############################################################
3 # VARIABLES
4 ###############################################################
55
6 JAVAC ?= javac -encoding UTF-8
7 JAVACARGS ?= -deprecation
8
9 JAC64PACKAGES := com/dreamfabric/jac64 com/dreamfabric/c64utils resid
10 PACKAGES := com/dreamfabric/jac64 com/dreamfabric/jsidplay
11
12 OBJECTS := $(patsubst %.java,%.class,$(wildcard $(addsuffix /*.java, $(JAC64PACKAGES))))
13
14 OBJECTS_JSID := $(patsubst %.java,%.class,$(wildcard *.java)) com/dreamfabric/gui/DKnob2.class com/dreamfabric/gui/DCheckBox.class $(patsubst %.java,%.class,$(wildcard $(addsuffix /*.java,. $(PACKAGES))))
15
16 SOUNDS ?= sounds/motor.wav sounds/track.wav
17 SMALLUTILS ?= com/dreamfabric/c64utils/AutoStore.class com/dreamfabric/c64utils/C64Script.class
18 UTILS ?= $(SMALLUTILS) com/dreamfabric/c64utils/Debugger.class
6 JAVAC ?= javac -encoding UTF-8
7 JAVACARGS ?= -deprecation
8
9 JAC64PACKAGES := com/dreamfabric/jac64 com/dreamfabric/c64utils resid
10 PACKAGES := com/dreamfabric/jac64 com/dreamfabric/jsidplay
11
12 OBJECTS := $(patsubst %.java,%.class,$(wildcard $(addsuffix /*.java, $(JAC64PACKAGES))))
13
14 OBJECTS_JSID := $(patsubst %.java,%.class,$(wildcard *.java)) com/dreamfabric/gui/DKnob2.class com/dreamfabric/gui/DCheckBox.class $(patsubst %.java,%.class,$(wildcard $(addsuffix /*.java,. $(PACKAGES))))
15
16 SOUNDS ?= sounds/motor.wav sounds/track.wav
17 SMALLUTILS ?= com/dreamfabric/c64utils/AutoStore.class com/dreamfabric/c64utils/C64Script.class
18 UTILS ?= $(SMALLUTILS) com/dreamfabric/c64utils/Debugger.class
1919 DEMOFILES ?= c64programs/games1.d64 c64programs/Bonzieed.prg c64programs/Jeroen_tel_music.prg games.txt
20
21 # Set this to include any other files you want in your jar
22 EXTRAJARFILES ?=
2320
24 ###############################################################
25 # TARGETS
26 ###############################################################
27
28 .PHONY: compile
29
30 all: compile
31
32 sid: $(OBJECTS_JSID)
33
34 compile: $(OBJECTS) $(OBJECTS_JSID)
35
36 jar: jac64.jar
37
38 smalljar: c64small.jar
39
40 jac64.jar: compile $(OBJECTS)
41 jar cvfm $@ JaC64Manifest.txt com/dreamfabric/jac64/*.class JaC64*.class $(UTILS) $(SOUNDS) roms/*.* resid/*.class $(EXTRAJARFILES)
42
43 # Small(er) JaC64 Jarfile
44 c64small.jar: compile $(OBJECTS)
45 jar cvf $@ com/dreamfabric/jac64/*.class C64Applet*.class $(SMALLUTILS) $(SOUNDS) roms/*.* resid/*.class $(EXTRAJARFILES)
46
47
48 # JSIDPlay including GUI, etc.
49 jsidplay.jar: $(OBJECTS_JSID)
50 jar cvf $@ com/dreamfabric/jac64/{MOS6510Core,MOS6510Ops,C64Chips,CIA,DirEntry,Hex,M6510Ops,SID,SID6581,Loader,IMonitor,RS6581Waves,PatchListener,SIDMixer,Observer,SIDMixerListener,SIDMixerSE,SELoader,VICConstants,DefaultIMon}.class com/dreamfabric/c64utils/Assembler.class com/dreamfabric/jsidplay/*.class com/dreamfabric/gui/DKnob*.class com/dreamfabric/gui/DCheck*.class com/dreamfabric/jsidplay/{JSIDPlay,JSIDPlayer,JSCPU,JSIDChipemu,PSID,JSIDListener}.class sidplay.a65 roms/*.c64
51
52 # SIDPlay library
53 jsidlib.jar: $(OBJECTS_JSID)
54 jar cvf $@ com/dreamfabric/jac64/{MOS6510Core,MOS6510Ops,C64Chips,CIA,DirEntry,Hex,M6510Ops,SID,SID6581,Loader,IMonitor,RS6581Waves,PatchListener,SIDMixer,Observer,SIDMixerListener}.class com/dreamfabric/c64utils/Debugger.class com/dreamfabric/jsidplay/{JSIDPlayer,JSCPU,JSIDChipemu,PSID,JSIDListener}.class
55
56 zip: jac64.zip
57 jac64.zip: c64small.jar index_jac64.html
58 zip -r jac64.zip c64small.jar $(DEMOFILES) index_jac64.html
59
60 src: $(OBJECTS)
21 # Set this to include any other files you want in your jar
22 EXTRAJARFILES ?=
23
24 ###############################################################
25 # TARGETS
26 ###############################################################
27
28 .PHONY: compile
29
30 all: compile
31
32 sid: $(OBJECTS_JSID)
33
34 compile: $(OBJECTS) $(OBJECTS_JSID)
35
36 jar: jac64.jar
37
38 smalljar: c64small.jar
39
40 jac64.jar: compile $(OBJECTS)
41 jar cvfm $@ JaC64Manifest.txt com/dreamfabric/jac64/*.class JaC64*.class $(UTILS) $(SOUNDS) roms/*.* resid/*.class $(EXTRAJARFILES)
42
43 # Small(er) JaC64 Jarfile
44 c64small.jar: compile $(OBJECTS)
45 jar cvf $@ com/dreamfabric/jac64/*.class C64Applet*.class $(SMALLUTILS) $(SOUNDS) roms/*.* resid/*.class $(EXTRAJARFILES)
46
47
48 # JSIDPlay including GUI, etc.
49 jsidplay.jar: $(OBJECTS_JSID)
50 jar cvf $@ com/dreamfabric/jac64/{MOS6510Core,MOS6510Ops,C64Chips,CIA,DirEntry,Hex,M6510Ops,SID,SID6581,Loader,IMonitor,RS6581Waves,PatchListener,SIDMixer,Observer,SIDMixerListener,SIDMixerSE,SELoader,VICConstants,DefaultIMon}.class com/dreamfabric/c64utils/Assembler.class com/dreamfabric/jsidplay/*.class com/dreamfabric/gui/DKnob*.class com/dreamfabric/gui/DCheck*.class com/dreamfabric/jsidplay/{JSIDPlay,JSIDPlayer,JSCPU,JSIDChipemu,PSID,JSIDListener}.class sidplay.a65 roms/*.c64
51
52 # SIDPlay library
53 jsidlib.jar: $(OBJECTS_JSID)
54 jar cvf $@ com/dreamfabric/jac64/{MOS6510Core,MOS6510Ops,C64Chips,CIA,DirEntry,Hex,M6510Ops,SID,SID6581,Loader,IMonitor,RS6581Waves,PatchListener,SIDMixer,Observer,SIDMixerListener}.class com/dreamfabric/c64utils/Debugger.class com/dreamfabric/jsidplay/{JSIDPlayer,JSCPU,JSIDChipemu,PSID,JSIDListener}.class
55
56 zip: jac64.zip
57 jac64.zip: c64small.jar index_jac64.html
58 zip -r jac64.zip c64small.jar $(DEMOFILES) index_jac64.html
59
60 src: $(OBJECTS)
6161 zip -r jac64src.zip C64Test.java C64Applet.java com/dreamfabric/jac64/*.java com/dreamfabric/c64utils/*.java \
62 sounds/*.wav roms/*.c64 roms/*.rom readme.txt Makefile index_jac64.html c64small.jar $(DEMOFILES) index_jac64.html
63
64 ###############################################################
65 # CLASS COMPILATION
66 ###############################################################
62 sounds/*.wav roms/*.c64 roms/*.rom readme.txt Makefile index_jac64.html c64small.jar $(DEMOFILES) index_jac64.html
6763
68 %.class : %.java
69 $(JAVAC) $(JAVACARGS) $<
70
71 ###############################################################
72 # CLEAN
73 ###############################################################
64 ###############################################################
65 # CLASS COMPILATION
66 ###############################################################
7467
75 clean:
76 rm -rf *.class $(OBJECTS) $(OBJECTS_JSID) c64.jar c64small.jar
68 %.class : %.java
69 $(JAVAC) $(JAVACARGS) $<
70
71 ###############################################################
72 # CLEAN
73 ###############################################################
74
75 clean:
76 rm -rf *.class $(OBJECTS) $(OBJECTS_JSID) c64.jar c64small.jar