mirror of
https://github.com/KhronosGroup/glslang
synced 2024-11-15 06:10:05 +00:00
8922da24a4
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@25408 e7fa87d3-cd2b-0410-9028-fcbf551c1848
33 lines
723 B
Makefile
33 lines
723 B
Makefile
SRCS := StandAlone.cpp
|
|
OBJECTS := $(SRCS:.cpp=.o)
|
|
DEPS := $(addprefix ., $(SRCS:.cpp=.d))
|
|
|
|
OBJECTPATH=./../glslang/MachineIndependent
|
|
LIBPATH=./../glslang/MachineIndependent/lib
|
|
SRCS=StandAlone.cpp
|
|
|
|
CXXFLAGS += -fPIC -I../glslang/OSDependent/Linux
|
|
|
|
all: glslangValidator
|
|
|
|
glslangValidator: $(OBJECTS) regenlib
|
|
$(CC) -g -o $@ $(OBJECTS) -L $(LIBPATH) -lglslang -lpthread -lm -lstdc++
|
|
cp $@ ../Test
|
|
cp $@ ../Install/Linux
|
|
|
|
-include $(DEPS)
|
|
|
|
%.o : %.cpp
|
|
$(CXX) $(CXXFLAGS) -MMD -MP -MF $(addprefix ., $(<:.cpp=.d)) -c -o $@ $<
|
|
|
|
regenlib:
|
|
$(MAKE) -C $(OBJECTPATH)
|
|
|
|
#
|
|
# Cleanup
|
|
#
|
|
.PHONY : clean glslangValidator regenlib
|
|
clean :
|
|
$(RM) *.o glslangValidator ../Install/Linux/glslangValidator
|
|
$(MAKE) -C $(OBJECTPATH) clean
|