File: Makefile.macos

package info (click to toggle)
mujoco 2.2.2-3.2
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 39,796 kB
  • sloc: ansic: 28,947; cpp: 28,897; cs: 14,241; python: 10,465; xml: 5,104; sh: 93; makefile: 34
file content (19 lines) | stat: -rw-r--r-- 917 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# This Makefile assumes that GLFW is installed via Homebrew.
# If your setup is different, you will need to set GLFWROOT manually.

# This Makefile also assumes that MuJoCo.app is present in /Applications.

GLFWROOT?=$(shell brew --prefix)
MUJOCOPATH?=/Applications/MuJoCo.app/Contents/Frameworks

CFLAGS=-O2 -F$(MUJOCOPATH) -I$(GLFWROOT)/include -pthread
CXXFLAGS=$(CFLAGS) -std=c++17 -stdlib=libc++
ALLFLAGS=$(CXXFLAGS) -L$(GLFWROOT)/lib -Wl,-rpath,$(MUJOCOPATH)

all:
	clang++ $(ALLFLAGS)    testxml.cc    -framework mujoco        -o testxml
	clang++ $(ALLFLAGS)    testspeed.cc  -framework mujoco        -o testspeed
	clang++ $(ALLFLAGS)    compile.cc    -framework mujoco        -o compile
	clang++ $(ALLFLAGS)    derivative.cc -framework mujoco        -o derivative
	clang++ $(ALLFLAGS)    basic.cc      -framework mujoco -lglfw -o basic
	clang++ $(ALLFLAGS)    record.cc     -framework mujoco -lglfw -o record