To protect your data, the CISO officer has suggested users to enable GitLab 2FA as soon as possible.

Commit bef2bc20 authored by Isaac's avatar Isaac
Browse files

Put source files after linker inputs

parent f03ae6a4
Pipeline #4633 failed with stage
in 2 seconds
......@@ -13,10 +13,10 @@
# limitations under the License.
all:
$(CXX) -O3 main.cpp parser/*.cpp -std=gnu++14 -Wall -I$(ANTLR_HOME)/usr/local/include/antlr4-runtime/ -L$(ANTLR_HOME)/usr/local/lib/ -L$(MU_ZEBU)/target/$(ZEBU_BUILD)/deps -lantlr4-runtime -lmu -lgmpxx -lgmp -o muc
$(CXX) -O3 -std=gnu++14 -Wall -I$(ANTLR_HOME)/usr/local/include/antlr4-runtime/ -L$(ANTLR_HOME)/usr/local/lib/ -L$(MU_ZEBU)/target/$(ZEBU_BUILD)/deps -lantlr4-runtime -lmu -lgmpxx -lgmp -o main.cpp parser/*.cpp -o muc
static:
$(CXX) -O3 main.cpp parser/*.cpp -std=gnu++14 -Wall -I$(ANTLR_HOME)/usr/local/include/antlr4-runtime/ $(ANTLR_HOME)/usr/local/lib/libantlr4-runtime.a $(MU_ZEBU)/target/$(ZEBU_BUILD)/deps/libmu.a -lpthread -lm -ldl -lgmpxx -lgmp -o muc
$(CXX) -O3 -std=gnu++14 -Wall -I$(ANTLR_HOME)/usr/local/include/antlr4-runtime/ $(ANTLR_HOME)/usr/local/lib/libantlr4-runtime.a $(MU_ZEBU)/target/$(ZEBU_BUILD)/deps/libmu.a -lpthread -lm -ldl -lgmpxx -lgmp main.cpp parser/*.cpp -o muc
no_mu:
$(CXX) -O3 main.cpp parser/*.cpp -std=gnu++14 -DNO_MU -Wall -I$(ANTLR_HOME)/usr/local/include/antlr4-runtime/ -L$/usr/local/lib/ -lantlr4-runtime -lgmpxx -lgmp -o muc
\ No newline at end of file
$(CXX) -O3 -std=gnu++14 -DNO_MU -Wall -I$(ANTLR_HOME)/usr/local/include/antlr4-runtime/ -L$(ANTLR_HOME)/usr/local/lib/ -lantlr4-runtime -lgmpxx -lgmp main.cpp parser/*.cpp -o muc
......@@ -20,13 +20,7 @@ Translates MuIR in text form and creates a correspondinng boot image, or generat
* You will need a C++14 compiler (tested with clang++6.0.0)
* You will need the GNU Multiple Precision Arithmetic Library (tested with GMP 6.1.0)
* You will need the Antlr4 C++ runtime, use `git clone https://github.com/antlr/antlr4.git` and follow the build instructions in `runtime/Cpp/README.md`.
- Note that on some systems, `cmake` does not recognize the correct toolchain to use. So, we recommand setting both `CC` and `CXX` environment variables, before running the `cmake ..` command.
Once you've done that, copy the include files and the libraries (where `$antlr4` is the root of the antlr4 git repo you just cloned):
```
cp -r $antlr4/runtime/Cpp/run/usr/local/include/antlr4-runtime/* ./include/
cp -r $antlr4/runtime/Cpp/run/usr/local/lib/* ./lib/
```
- Note that on some systems, `cmake` does not recognize the correct toolchain to use. So, we recommand (un)setting both `CC` and `CXX` environment variables, before running the `cmake ..` command.
* If you want to compile directly (as opposed to output C files) you'll need Mu, place your `libmu*` files in `./lib`,
also set the environement variable `MU_ZEBU` to the locatation of the mu-impl-fast source code.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment