2014-02-19 01:00:58 +00:00
|
|
|
SRCS := StandAlone.cpp
|
|
|
|
OBJECTS := $(SRCS:.cpp=.o)
|
|
|
|
DEPS := $(addprefix ., $(SRCS:.cpp=.d))
|
|
|
|
|
2012-12-12 21:15:54 +00:00
|
|
|
OBJECTPATH=./../glslang/MachineIndependent
|
|
|
|
LIBPATH=./../glslang/MachineIndependent/lib
|
|
|
|
SRCS=StandAlone.cpp
|
|
|
|
|
2014-02-19 01:00:58 +00:00
|
|
|
CXXFLAGS += -fPIC -I../glslang/OSDependent/Linux
|
2012-12-12 21:15:54 +00:00
|
|
|
|
2013-08-03 00:04:10 +00:00
|
|
|
all: glslangValidator
|
2012-12-12 21:15:54 +00:00
|
|
|
|
2014-02-19 01:00:58 +00:00
|
|
|
glslangValidator: $(OBJECTS) regenlib
|
|
|
|
$(CC) -g -o $@ $(OBJECTS) -L $(LIBPATH) -lglslang -lpthread -lm -lstdc++
|
2013-08-03 00:04:10 +00:00
|
|
|
cp $@ ../Test
|
|
|
|
cp $@ ../Install/Linux
|
2012-12-12 21:15:54 +00:00
|
|
|
|
2014-02-19 01:00:58 +00:00
|
|
|
-include $(DEPS)
|
2012-12-12 21:15:54 +00:00
|
|
|
|
|
|
|
%.o : %.cpp
|
2014-02-19 01:00:58 +00:00
|
|
|
$(CXX) $(CXXFLAGS) -MMD -MP -MF $(addprefix ., $(<:.cpp=.d)) -c -o $@ $<
|
|
|
|
|
|
|
|
regenlib:
|
|
|
|
$(MAKE) -C $(OBJECTPATH)
|
2012-12-12 21:15:54 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Cleanup
|
|
|
|
#
|
2014-02-19 01:00:58 +00:00
|
|
|
.PHONY : clean glslangValidator regenlib
|
2012-12-12 21:15:54 +00:00
|
|
|
clean :
|
2013-08-03 00:04:10 +00:00
|
|
|
$(RM) *.o glslangValidator ../Install/Linux/glslangValidator
|
2014-02-19 01:00:58 +00:00
|
|
|
$(MAKE) -C $(OBJECTPATH) clean
|