mirror of
https://github.com/Drezil/imgui.git
synced 2024-11-22 20:07:01 +00:00
Makefile: updated sdl_opengl3_example with all changes from #885.
This commit is contained in:
parent
124d8522b1
commit
b37ef20c5c
@ -15,9 +15,10 @@
|
|||||||
#CXX = clang++
|
#CXX = clang++
|
||||||
|
|
||||||
EXE = sdl_opengl3_example
|
EXE = sdl_opengl3_example
|
||||||
OBJS = main.o imgui_impl_sdl_gl3.o
|
SOURCES = main.cpp imgui_impl_sdl_gl3.cpp
|
||||||
OBJS += ../../imgui.o ../../imgui_demo.o ../../imgui_draw.o
|
SOURCES += ../../imgui.cpp ../../imgui_demo.cpp ../../imgui_draw.cpp
|
||||||
OBJS += ../libs/gl3w/GL/gl3w.o
|
SOURCES += ../libs/gl3w/GL/gl3w.c
|
||||||
|
OBJS = $(addsuffix .o, $(basename $(notdir $(SOURCES))))
|
||||||
|
|
||||||
UNAME_S := $(shell uname -s)
|
UNAME_S := $(shell uname -s)
|
||||||
|
|
||||||
@ -50,14 +51,20 @@ ifeq ($(findstring MINGW,$(UNAME_S)),MINGW)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
.cpp.o:
|
%.o:%.cpp
|
||||||
$(CXX) $(CXXFLAGS) -c -o $@ $<
|
$(CXX) $(CXXFLAGS) -c -o $@ $<
|
||||||
|
|
||||||
|
%.o:../../%.cpp
|
||||||
|
$(CXX) $(CXXFLAGS) -c -o $@ $<
|
||||||
|
|
||||||
|
%.o:../libs/gl3w/GL/%.c
|
||||||
|
$(CC) $(CFLAGS) -c -o $@ $<
|
||||||
|
|
||||||
all: $(EXE)
|
all: $(EXE)
|
||||||
@echo Build complete for $(ECHO_MESSAGE)
|
@echo Build complete for $(ECHO_MESSAGE)
|
||||||
|
|
||||||
$(EXE): $(OBJS)
|
$(EXE): $(OBJS)
|
||||||
$(CXX) -o $(EXE) $(OBJS) $(CXXFLAGS) $(LIBS)
|
$(CXX) -o $@ $^ $(CXXFLAGS) $(LIBS)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm $(EXE) $(OBJS)
|
rm -f $(EXE) $(OBJS)
|
||||||
|
Loading…
Reference in New Issue
Block a user