Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Documentation/Compiling.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

====COMPILING.TXT====

On Linux, run the Makefile:
make
or otherwise execute the following individual steps:

1. Get your compiler version:
javac -version
and enter the version on line 19 of B4constants.java where it will become available
Expand Down
21 changes: 21 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Name of the jarfile.
JARNAME=BEAM4.jar

# Java version number.
JAVAVER=$(shell javac -version 2>&1)
STR="s/\(^ static final String COMPILER = \"Compiler was: \).*\(\";.*$$\)/\1${JAVAVER}\2/g"

all:
@# Replace Java version number string in source code.
sed -i ${STR} Sources/B4constants.java

@# Compile java files.
javac -Xlint Sources/*.java

@# Create jar archive.
install -d com/stellarsoftware/beam/
install -D Sources/*.class com/stellarsoftware/beam/
jar cfe "${JARNAME}" com.stellarsoftware.beam.B4 com/

clean:
rm -rf Sources/*.class com/