Now layout build works fine
This commit is contained in:
@@ -1,9 +1,12 @@
|
||||
all: graph_test entity_test rect2i regions
|
||||
LIBS=
|
||||
SDL_LIBS=$(shell pkg-config sdl2 --libs)
|
||||
SDL_CFLAGS=$(shell pkg-config sdl2 --cflags)
|
||||
IMGUI_OBJS= ./imgui/imgui.o ./imgui/imgui_draw.o ./imgui/imgui_tables.o ./imgui/imgui_widgets.o ./imgui/imgui_impl_sdlrenderer2.o ./imgui/imgui_impl_sdl2.o
|
||||
# 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
|
||||
CFLAGS = -I../src/flecs/distr $(SDL_CFLAGS) -I./cglm/include -I./flecs-game/include -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 -I./imgui $(SDL_CFLAGS) -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)
|
||||
@@ -20,8 +23,14 @@ rect2i: 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)
|
||||
#graph_module_growth.o: ../src/modules/stream/ui/graph_module_growth.cpp
|
||||
# $(CC) $(CFLAGS) $(CXXFLAGS) -DTESTS -o $@ -c $<
|
||||
#
|
||||
#graph_module_core.o: ../src/modules/stream/ui/graph_module.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 $(SDL_LIBS) $(IMGUI_OBJS) $(LIBS)
|
||||
$(CXX) -o $@ regions.o flecs.o region_tree.o godot_mockery/core/os/memory.o godot_mockery/core/ustring.o $(IMGUI_OBJS) $(LIBS) $(SDL_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 \
|
||||
@@ -58,7 +67,7 @@ godot_mockery/core/math/%.o: ../src/godot/core/math/%.cpp
|
||||
$(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
|
||||
rm -f godot_mockery/core/*.o godot_mockery/core/os/*.o *.o graph_test entity_test rect2i regions $(FLECS_OBJS)
|
||||
|
||||
|
||||
.PHONY: all clean
|
||||
|
||||
Reference in New Issue
Block a user