glslang/OGLCompilersDLL/Makefile
2013-03-08 23:14:42 +00:00

53 lines
906 B
Makefile

INCLUDE = -I. -I../glslang -I../glslang/Include -I../glslang/OSDependent/Linux -I../glslang/MachineIndependent
WARNINGS = -Wall -Wwrite-strings -Wpointer-arith -Wcast-align -Wstrict-prototypes \
-Wnested-externs
CPP = g++
CPPOPTIONS = -O3 -Wno-deprecated -D_ALT_NS=1 -fPIC
CPPOPTIONS = -g -Wno-deprecated -D_ALT_NS=1 -fPIC
CPPFLAGS = $(CPPOPTIONS) $(INCLUDE)
#
# Linking related
#
AR = ar
STATIC_OPTION = rcs
#
# Misc
#
export PERL = perl
export RM = rm -f
export MV = mv -f
export DEPEND = g++ -M
#
# Object file variables are defined here.
#
OSSRCS = InitializeDll.cpp
OSOBJS = InitializeDll.o
LIBNAME = libInitializeDll.a
all : $(LIBNAME)
$(LIBNAME) : $(OSOBJS)
$(AR) $(STATIC_OPTION) $(LIBNAME) $(OSOBJS)
%.o : %.cpp
$(CPP) $(CPPFLAGS) -c $<
#
# Dependency
#
depend : $(OSSRCS)
$(DEPEND) $(CPPFLAGS) $(OSSRCS) > depend
include depend
#
# Cleanup
#
.PHONY : clean
clean :
$(RM) *.o *.a