90dea1bdfb
PiperOrigin-RevId: 439277749 Change-Id: I741d1c499ae88753338fcc6d141a65e92e13023e
24 lines
1.2 KiB
Makefile
24 lines
1.2 KiB
Makefile
# This Makefile assumes that GLFW is installed via Homebrew, and that Homebrew
|
|
# packages are installed in /usr/local. If your setup is different, you will
|
|
# need to adjust the HOMEBREW variable accordingly.
|
|
|
|
# This Makefile also assumes that MuJoCo.app is present in /Applications.
|
|
|
|
HOMEBREW?=/usr/local
|
|
|
|
MUJOCO_LIBDIR=/Applications/MuJoCo.app/Contents/Frameworks/MuJoCo.Framework/Versions/A
|
|
MUJOCO_INCLUDEDIR=/Applications/MuJoCo.app/Contents/Frameworks/MuJoCo.Framework/Versions/A/Headers
|
|
CFLAGS=-O2 -I$(MUJOCO_INCLUDEDIR) -I$(HOMEBREW)/include -pthread
|
|
ALLFLAGS=$(CFLAGS) -L$(MUJOCO_LIBDIR) -L$(HOMEBREW)/lib -std=c++11 -stdlib=libc++ -Wl,-rpath,/Applications/MuJoCo.app/Contents/Frameworks
|
|
|
|
all:
|
|
clang++ $(ALLFLAGS) testxml.cc -lmujoco.2.1.4 -o testxml
|
|
clang++ $(ALLFLAGS) testspeed.cc -lmujoco.2.1.4 -o testspeed
|
|
clang++ $(ALLFLAGS) compile.cc -lmujoco.2.1.4 -o compile
|
|
clang++ $(ALLFLAGS) derivative.cc -lmujoco.2.1.4 -o derivative
|
|
clang++ $(ALLFLAGS) basic.cc -lmujoco.2.1.4 -lglfw -o basic
|
|
clang++ $(ALLFLAGS) record.cc -lmujoco.2.1.4 -lglfw -o record
|
|
clang -c $(CFLAGS) uitools.c
|
|
clang++ $(ALLFLAGS) uitools.o simulate.cc -lmujoco.2.1.4 -lglfw -o simulate
|
|
rm *.o
|