Remove legacy build system
This commit is contained in:
parent
876a0e392e
commit
5100d5603f
18 changed files with 0 additions and 3285 deletions
|
|
@ -1,36 +0,0 @@
|
|||
CC = g++
|
||||
|
||||
OBJECTS = CodeGen.o Link.o
|
||||
AR=ar
|
||||
|
||||
SRCS=CodeGen.cpp Link.cpp
|
||||
|
||||
CPPFLAGS = -fPIC
|
||||
|
||||
default : all
|
||||
all : libCodeGen.a
|
||||
|
||||
libCodeGen.a : $(OBJECTS)
|
||||
$(AR) rvu $@ $(OBJECTS)
|
||||
ranlib $@
|
||||
|
||||
%.o : %.cpp
|
||||
$(CC) -c $(CPPFLAGS) $<
|
||||
|
||||
#
|
||||
# Cleanup
|
||||
#
|
||||
.PHONY : clean
|
||||
clean :
|
||||
$(RM) *.o *.a
|
||||
|
||||
depend:
|
||||
makedepend -- $(CFLAGS) -- $(SRCS)
|
||||
# DO NOT DELETE
|
||||
|
||||
CodeGen.o: ../Include/Common.h ../Include/PoolAlloc.h ../Include/ShHandle.h
|
||||
CodeGen.o: ../Public/ShaderLang.h
|
||||
CodeGen.o: ../Include/InfoSink.h
|
||||
Link.o: ../Include/Common.h ../Include/PoolAlloc.h ../Include/ShHandle.h
|
||||
Link.o: ../Public/ShaderLang.h
|
||||
Link.o: ../Include/InfoSink.h
|
||||
|
|
@ -1,66 +0,0 @@
|
|||
INCLUDE = -I. -I.. -I../.. -I../Include -I../Public -I../OSDependent/Linux -I../../OGLCompilersDLL
|
||||
INCPREPROCESSOR=./preprocessor
|
||||
INCCODEGEN=./../GenericCodeGen
|
||||
INCOSDEPENDENT=./../OSDependent/Linux/
|
||||
INCINITIALISATION=./../../OGLCompilersDLL/
|
||||
LIBPREPROCESSOR=./preprocessor/libPreprocessor.a
|
||||
LIBOSDEPENDENT=./../OSDependent/Linux/libOssource.a
|
||||
LIBINITIALISATION=./../../OGLCompilersDLL/libInitializeDll.a
|
||||
LIBCODEGEN=./../GenericCodeGen/libCodeGen.a
|
||||
|
||||
CXXFLAGS += $(DEFINE) $(INCLUDE) -fPIC
|
||||
SHAREDOBJECT=./lib/libglslang.so
|
||||
|
||||
SRCS= gen_glslang_tab.cpp Initialize.cpp IntermTraverse.cpp \
|
||||
Intermediate.cpp ParseHelper.cpp PoolAlloc.cpp limits.cpp \
|
||||
RemoveTree.cpp ShaderLang.cpp SymbolTable.cpp intermOut.cpp \
|
||||
parseConst.cpp InfoSink.cpp Versions.cpp Constant.cpp Scan.cpp \
|
||||
linkValidate.cpp reflection.cpp
|
||||
OBJECTS := $(SRCS:.cpp=.o)
|
||||
DEPS := $(addprefix ., $(SRCS:.cpp=.d))
|
||||
|
||||
all: $(SHAREDOBJECT)
|
||||
|
||||
$(SHAREDOBJECT): $(OBJECTS) $(LIBPREPROCESSOR) $(LIBCODEGEN) $(LIBOSDEPENDENT) $(LIBINITIALISATION)
|
||||
$(CXX) -fPIC -shared -o $@ -rdynamic -Wl,-whole-archive $(OBJECTS) $(LIBPREPROCESSOR) $(LIBCODEGEN) $(LIBOSDEPENDENT) $(LIBINITIALISATION) -Wl,-no-whole-archive
|
||||
cp $@ ../../Test
|
||||
cp $@ ../../Install/Linux
|
||||
|
||||
gen_glslang_tab.o : gen_glslang_tab.cpp
|
||||
$(CXX) -fPIC -c $(INCLUDE) gen_glslang_tab.cpp -o $@
|
||||
|
||||
gen_glslang_tab.cpp glslang_tab.h: glslang.y
|
||||
@echo Generating gen_glslang_tab.cpp
|
||||
bison -t -v -d glslang.y
|
||||
mv glslang.tab.c gen_glslang_tab.cpp
|
||||
mv glslang.tab.h glslang_tab.cpp.h
|
||||
|
||||
-include $(DEPS)
|
||||
|
||||
%.o : %.cpp
|
||||
$(CXX) $(CXXFLAGS) -MMD -MP -MF $(addprefix ., $(<:.cpp=.d)) -c -o $@ $<
|
||||
|
||||
$(LIBPREPROCESSOR):
|
||||
$(MAKE) -C $(INCPREPROCESSOR)
|
||||
|
||||
$(LIBCODEGEN):
|
||||
$(MAKE) -C $(INCCODEGEN)
|
||||
|
||||
$(LIBINITIALISATION):
|
||||
$(MAKE) -C $(INCINITIALISATION)
|
||||
|
||||
$(LIBOSDEPENDENT):
|
||||
$(MAKE) -C $(INCOSDEPENDENT)
|
||||
|
||||
#
|
||||
# Cleanup
|
||||
#
|
||||
clean :
|
||||
$(RM) *.o *.a gen_glslang_tab.cpp glslang_tab.cpp glslang_tab.cpp.h glslang_tab.h glslang.output
|
||||
$(RM) ./lib/*.so
|
||||
$(MAKE) -C $(INCPREPROCESSOR) clean
|
||||
$(MAKE) -C $(INCCODEGEN) clean
|
||||
$(MAKE) -C $(INCINITIALISATION) clean
|
||||
$(MAKE) -C $(INCOSDEPENDENT) clean
|
||||
|
||||
.PHONY : clean $(LIBPREPROCESSOR) $(LIBCODEGEN) $(LIBOSDEPENDENT) $(LIBINITIALISATION)
|
||||
|
|
@ -1,25 +0,0 @@
|
|||
INCLUDE = -I../
|
||||
|
||||
CXXFLAGS=$(DEFINE) $(INCLUDE) -fPIC
|
||||
|
||||
SRCS := PpAtom.cpp PpScanner.cpp PpTokens.cpp Pp.cpp PpContext.cpp PpMemory.cpp PpSymbols.cpp
|
||||
OBJECTS := $(SRCS:.cpp=.o)
|
||||
DEPS := $(addprefix ., $(SRCS:.cpp=.d))
|
||||
|
||||
all : libPreprocessor.a
|
||||
|
||||
libPreprocessor.a : $(OBJECTS)
|
||||
$(AR) rvu $@ $(OBJECTS)
|
||||
ranlib $@
|
||||
|
||||
-include $(DEPS)
|
||||
|
||||
%.o : %.cpp
|
||||
$(CXX) $(CXXFLAGS) -MMD -MP -MF $(addprefix ., $(<:.cpp=.d)) -c -o $@ $<
|
||||
|
||||
#
|
||||
# Cleanup
|
||||
#
|
||||
.PHONY : clean
|
||||
clean :
|
||||
$(RM) *.o *.a
|
||||
|
|
@ -1,61 +0,0 @@
|
|||
####
|
||||
#### This Makefile should be used in the Linux Compiler build. This Makefile build the OSDependent
|
||||
#### component as a static library.
|
||||
####
|
||||
|
||||
#
|
||||
# Compilation related
|
||||
#
|
||||
INCLUDE = -I. -I../.. -I../../Include -I../../../OGLCompilersDLL
|
||||
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 = ossource.cpp
|
||||
OSOBJS = ossource.o
|
||||
|
||||
LIBNAME = libOssource.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
|
||||
Loading…
Add table
Add a link
Reference in a new issue