restructured some files
This commit is contained in:
22
tools/gl/Makefile.mingw
Executable file
22
tools/gl/Makefile.mingw
Executable file
@ -0,0 +1,22 @@
|
||||
BUILDDIR = build
|
||||
SRC = main.cpp glshader.cpp math.cpp camera.cpp
|
||||
OBJ = $(patsubst %.cpp, $(BUILDDIR)/%.o, $(SRC))
|
||||
DEP = $(patsubst %.cpp, $(BUILDDIR)/%.d, $(SRC))
|
||||
RWDIR=$(HOME)/src/librw
|
||||
LDLIBS=-static -lglfw3 -lglew32 -lopengl32 -lgdi32
|
||||
CFLAGS=-g -I$(RWDIR) -Wall -Wextra -DGLEW_STATIC
|
||||
|
||||
rwtest: $(OBJ) $(RWDIR)/librw-opengl.a
|
||||
$(CXX) $^ $(LDLIBS) -o $@
|
||||
|
||||
$(BUILDDIR)/%.o: %.cpp
|
||||
@mkdir -p $(@D)
|
||||
$(CXX) $(CFLAGS) -c $< -o $@
|
||||
|
||||
$(BUILDDIR)/%.d: %.cpp
|
||||
@mkdir -p $(@D)
|
||||
$(CXX) -MM -MT '$(patsubst %.cpp,$(BUILDDIR)%.o,$<)' $(CFLAGS) $< > $@
|
||||
|
||||
dep: $(DEP)
|
||||
|
||||
-include $(DEP)
|
Reference in New Issue
Block a user