From 38daceee18260e584ec0326db92e3ae238055827 Mon Sep 17 00:00:00 2001 From: gywhitel Date: Fri, 16 Jun 2023 10:16:44 +0800 Subject: [PATCH] [Fix]: Fix simulate/Makefile commit message 1. Change deprecated `uitools.c` to `platform_ui_adapter.cc` 2. Add other missing source files --- simulate/Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/simulate/Makefile b/simulate/Makefile index f0834cbee1..73fb99c0d1 100644 --- a/simulate/Makefile +++ b/simulate/Makefile @@ -6,6 +6,8 @@ COMMON=-O2 -I../include -L../lib -pthread -Wl,-no-as-needed -Wl,-rpath,'$$ORIGIN 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 + $(CC) $(COMMON) -std=c++17 -c platform_ui_adapter.cc + $(CC) $(COMMON) -std=c++17 -c glfw_adapter.cc + $(CC) $(COMMON) -std=c++17 -c glfw_dispatch.cc + $(CXX) $(COMMON) -std=c++17 main.cc simulate.o platform_ui_adapter.o glfw_adapter.o glfw_dispatch.o -lmujoco -lglfw -o ../bin/simulate2 + rm platform_ui_adapter.o simulate.o glfw_adapter.o glfw_dispatch.o