mirror of
https://github.com/Drezil/imgui.git
synced 2025-07-04 03:58:47 +02:00
Do not store compiled objects outside the project tree.
This commit is contained in:
@ -17,7 +17,7 @@
|
||||
EXE = opengl2_example
|
||||
SOURCES = main.cpp imgui_impl_glfw_gl2.cpp
|
||||
SOURCES += ../../imgui.cpp ../../imgui_demo.cpp ../../imgui_draw.cpp
|
||||
OBJS = $(addsuffix .o, $(basename $(SOURCES)))
|
||||
OBJS = $(addsuffix .o, $(basename $(notdir $(SOURCES))))
|
||||
|
||||
UNAME_S := $(shell uname -s)
|
||||
|
||||
@ -52,7 +52,10 @@ ifeq ($(findstring MINGW,$(UNAME_S)),MINGW)
|
||||
endif
|
||||
|
||||
|
||||
.cpp.o:
|
||||
%.o:%.cpp
|
||||
$(CXX) $(CXXFLAGS) -c -o $@ $<
|
||||
|
||||
%.o:../../%.cpp
|
||||
$(CXX) $(CXXFLAGS) -c -o $@ $<
|
||||
|
||||
all: $(EXE)
|
||||
|
Reference in New Issue
Block a user