all: graph_test entity_test rect2i regions LIBS= # LIBS= ./godot_mockery/libgodot-mockery.a CFLAGS = -I../src/flecs/distr -g CXXFLAGS = -I../src/flecs/distr -I../src/modules/stream/ui -I./godot_mockery -I../src/godot -I../src/godot/platform/x11 -I. -I../src/modules/stream -g #CXXFLAGS = -I../src/flecs/distr -I../src/modules/stream/ui -I../src/godot -I../src/godot/platform/x11 -I. -I../src/modules/stream -g graph_test: graph_module.o flecs.o $(LIBS) $(CXX) -o $@ graph_module.o flecs.o $(LIBS) entity_test: entity_test.o flecs.o $(LIBS) $(CXX) -o $@ entity_test.o flecs.o $(LIBS) flecs.o: ../src/flecs/distr/flecs.c $(CC) -o $@ -c $< rect2i: rect2i.o $(LIBS) $(CXX) -o $@ rect2i.o $(LIBS) region_tree.o: ../src/modules/stream/ui/region_tree.cpp $(CC) $(CFLAGS) $(CXXFLAGS) -DTESTS -o $@ -c $< regions: regions.o flecs.o region_tree.o godot_mockery/core/os/memory.o godot_mockery/core/ustring.o $(LIBS) $(CXX) -o $@ regions.o flecs.o region_tree.o godot_mockery/core/os/memory.o godot_mockery/core/ustring.o $(LIBS) MOCK_OBJS=godot_mockery/core/os/memory.o godot_mockery/core/error_macros.o \ godot_mockery/core/ustring.o godot_mockery/core/array.o \ godot_mockery/core/variant.o godot_mockery/core/variant_op.o \ godot_mockery/core/pool_allocator.o godot_mockery/core/node_path.o \ godot_mockery/core/pool_vector.o godot_mockery/core/reference.o \ godot_mockery/core/object.o godot_mockery/core/ref_ptr.o \ godot_mockery/core/string_name.o godot_mockery/core/method_bind.o \ godot_mockery/core/class_db.o godot_mockery/core/dictionary.o \ godot_mockery/core/color.o godot_mockery/core/math/plane.o \ godot_mockery/core/math/transform.o godot_mockery/core/math/basis.o \ godot_mockery/core/math/vector2.o godot_mockery/core/math/vector3.o \ godot_mockery/core/math/math_funcs.o godot_mockery/core/resource.o \ godot_mockery/core/math/random_pcg.o godot_mockery/core/math/transform_2d.o \ godot_mockery/core/core_string_names.o godot_mockery/core/os/os.o \ ./godot_mockery/libgodot-mockery.a: $(MOCK_OBJS) ar rcs $@ $(MOCK_OBJS) godot_mockery/core/os/memory.o: godot_mockery/core/os/memory.cpp $(CC) $(CFLAGS) $(CXXFLAGS) -DTESTS -o $@ -c $< godot_mockery/core/error_macros.o: godot_mockery/core/error_macros.cpp $(CC) $(CFLAGS) $(CXXFLAGS) -DTESTS -o $@ -c $< godot_mockery/core/ustring.o: godot_mockery/core/ustring.cpp $(CC) $(CFLAGS) $(CXXFLAGS) -DTESTS -o $@ -c $< godot_mockery/core/array.o: ../src/godot/core/array.cpp $(CC) $(CFLAGS) $(CXXFLAGS) -DTESTS -o $@ -c $< godot_mockery/core/%.o: ../src/godot/core/%.cpp $(CC) $(CFLAGS) $(CXXFLAGS) -DTESTS -o $@ -c $< godot_mockery/core/math/%.o: ../src/godot/core/math/%.cpp mkdir -p godot_mockery/core/math $(CC) $(CFLAGS) $(CXXFLAGS) -DTESTS -o $@ -c $< clean: rm -f godot_mockery/core/*.o godot_mockery/core/os/*.o *.o graph_test entity_test rect2i regions .PHONY: all clean