mirror of
https://github.com/RPCS3/glslang.git
synced 2024-12-04 17:26:47 +00:00
54f6e5661d
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@22593 e7fa87d3-cd2b-0410-9028-fcbf551c1848
42 lines
948 B
Makefile
42 lines
948 B
Makefile
CC=g++
|
|
OBJECTPATH=./../glslang/MachineIndependent
|
|
LIBPATH=./../glslang/MachineIndependent/lib
|
|
SRCS=StandAlone.cpp
|
|
|
|
TARGETOBJECT=StandAlone.o
|
|
|
|
default: all
|
|
|
|
all: glslangValidator
|
|
|
|
glslangValidator: $(TARGETOBJECT) SHAREDOBJECT
|
|
$(CC) -g -o $@ $(TARGETOBJECT) -L $(LIBPATH) -lglslang -lpthread -lm -lstdc++
|
|
cp $@ ../Test
|
|
cp $@ ../Install/Linux
|
|
|
|
SHAREDOBJECT:
|
|
cd $(OBJECTPATH); make all
|
|
|
|
%.o : %.cpp
|
|
$(CC) -g -c -I../glslang/OSDependent/Linux $<
|
|
|
|
#
|
|
# Cleanup
|
|
#
|
|
.PHONY : clean
|
|
clean :
|
|
$(RM) *.o glslangValidator ../Install/Linux/glslangValidator
|
|
cd $(OBJECTPATH); make clean
|
|
|
|
depend:
|
|
cd $(OBJECTPATH); make depend
|
|
makedepend -Y -- $(SRCS)
|
|
# DO NOT DELETE
|
|
|
|
StandAlone.o: ./../glslang/Include/ShHandle.h
|
|
StandAlone.o: ./../glslang/Public/ShaderLang.h
|
|
StandAlone.o: ./../glslang/Include/InfoSink.h ./../glslang/Include/Common.h
|
|
StandAlone.o: ./../glslang/Include/PoolAlloc.h
|
|
StandAlone.o: ./../glslang/Public/ShaderLang.h
|
|
StandAlone.o: Worklist.h
|