Merge pull request #201 from aftersomemath:refactor-simulate

PiperOrigin-RevId: 465044152
Change-Id: I54e65a30764a444dbd175260314d685fd7ffa6a1
This commit is contained in:
Saran Tunyasuvunakool
2022-08-03 15:32:15 +01:00
25 changed files with 3351 additions and 2286 deletions
+11
View File
@@ -0,0 +1,11 @@
# This Makefile assumes that you have GLFW libraries and headers installed on,
# which is commonly available through your distro's package manager.
# On Debian and Ubuntu, GLFW can be installed via `apt install libglfw3-dev`.
COMMON=-O2 -I../include -L../lib -pthread -Wl,-no-as-needed -Wl,-rpath,'$$ORIGIN'/../lib
all:
$(CXX) $(COMMON) -std=c++17 -c simulate.cc
$(CC) $(COMMON) -std=c11 -c uitools.c
$(CXX) $(COMMON) -std=c++17 main.cc simulate.o uitools.o -lmujoco -lglfw -o ../bin/simulate
rm uitools.o simulate.o