Permalink
Browse files

Remove remnants of the old make-based build system. Long live CMake!

git-svn-id: https://openshadinglanguage.googlecode.com/svn/trunk@104 a3683778-fedd-11de-87c3-653bb6514e15
  • Loading branch information...
1 parent ec1621c commit e3fec932ccbcbe44f7cf6df5d4fcc085dc9930d4 @lgritzecho lgritzecho committed Jul 11, 2009
View
13 Makefile
@@ -9,15 +9,6 @@
#########################################################################
-ifdef NOCMAKE
-#########################################################################
-# When not using CMake, the top-level Makefile is just a stub that
-# merely includes src/make/master.mk
-#########################################################################
-include src/make/master.mk
-
-else
-
.PHONY: all debug profile clean realclean nuke doxygen
working_dir := ${shell pwd}
@@ -168,7 +159,3 @@ help:
@echo " make VERBOSE=1 ... Show all compilation commands"
@echo " make MYCC=xx MYCXX=yy ... Use custom compilers"
@echo ""
-
-
-
-endif
View
66 src/liboslcomp/module.mk
@@ -1,66 +0,0 @@
-# Template for the makefile for an individual src/* directory.
-# Fill in the blanks below.
-
-# License and copyright goes here
-
-# Name of the binary or library whose source is in this directory.
-# Do NOT include .exe or any other suffix.
-local_name := liboslcomp
-
-# Name of all source files in this directory
-local_src := ast.cpp codegen.cpp oslcomp.cpp symtab.cpp typecheck.cpp
-#sllex.l slgram.y
-
-# Extra static libs needed to compile this binary (leave blank if this
-# module is not for a binary executable)
-local_libs :=
-
-# Grammar and lexer object files
-COMPILER_HEADERS := ${wildcard ${src_dir}/${local_name}/*.h}
-LEXL := ${src_dir}/${local_name}/osllex.l
-LEXO := ${build_obj_dir}/${local_name}/osllex${OEXT}
-LEXC := ${build_obj_dir}/${local_name}/osllex.cpp
-GRAMY := ${src_dir}/${local_name}/oslgram.y
-GRAMO := ${build_obj_dir}/${local_name}/oslgram${OEXT}
-GRAMC := ${build_obj_dir}/${local_name}/oslgram.cpp
-GRAMH := ${build_obj_dir}/${local_name}/oslgram.hpp
-
-# Extra objects from other libs we need to compile this library
-local_extra_objs := ${GRAMO} ${LEXO} \
- ${build_obj_dir}/liboslexec/oslexec${OEXT}
-
-# Extra shared libs needed to compile this binary (leave blank if this
-# module is not for a binary executable)
-local_shlibs :=
-
-# ld flags needed for this library
-local_ldflags := ${OPENIMAGEIO_LINK} ${LINK_BOOST}
-
-
-#
-${LEXC}: ${LEXL} ${GRAMH} ${COMPILER_HEADERS}
- @ echo " Compiling $@ ..."
- ${FLEX} -+ -t ${LEXL} > $@
-
-${LEXO}: ${LEXC} ${GRAMH}
- @ ${CXX} ${CFLAGS} ${CINCL}${src_dir}/liboslcomp ${PROJECT_EXTRA_CXX} ${DASHC} ${LEXC} ${DASHO}$@
-
-# Action to build the object files
-${GRAMC}: ${GRAMY} ${COMPILER_HEADERS}
- @ echo " Compiling $@ from $< ..."
- ${BISON} -dv -p osl -o $@ ${GRAMY}
-
-${GRAMO}: ${GRAMC} ${GRAMH}
- @ echo " Compiling $@ ..."
- ${CXX} ${CFLAGS} ${CINCL}${src_dir}/liboslcomp ${PROJECT_EXTRA_CXX} ${DASHC} ${GRAMC} ${DASHO}$@
-
-${GRAMH}: ${GRAMY}
-
-
-## Include ONE of the includes below, depending on whether this module
-## constructs a binary executable, a static library, or a shared library
-## (DLL).
-
-#include ${src_make_dir}/bin.mk
-#include ${src_make_dir}/lib.mk
-include ${src_make_dir}/shlib.mk
View
67 src/liboslexec/module.mk
@@ -1,67 +0,0 @@
-# Template for the makefile for an individual src/* directory.
-# Fill in the blanks below.
-
-# License and copyright goes here
-
-# Name of the binary or library whose source is in this directory.
-# Do NOT include .exe or any other suffix.
-local_name := liboslexec
-
-# Name of all source files in this directory
-local_src := instance.cpp loadshader.cpp master.cpp \
- oslexec.cpp osoreader.cpp \
- shadingsys.cpp
-#sllex.l slgram.y
-
-# Extra static libs needed to compile this binary (leave blank if this
-# module is not for a binary executable)
-local_libs :=
-
-# Grammar and lexer object files
-COMPILER_HEADERS := ${wildcard ${src_dir}/${local_name}/*.h}
-OSOLEXL := ${src_dir}/${local_name}/osolex.l
-OSOLEXO := ${build_obj_dir}/${local_name}/osolex${OEXT}
-OSOLEXC := ${build_obj_dir}/${local_name}/osolex.cpp
-OSOGRAMY := ${src_dir}/${local_name}/osogram.y
-OSOGRAMO := ${build_obj_dir}/${local_name}/osogram${OEXT}
-OSOGRAMC := ${build_obj_dir}/${local_name}/osogram.cpp
-OSOGRAMH := ${build_obj_dir}/${local_name}/osogram.hpp
-
-# Extra objects from other libs we need to compile this library
-local_extra_objs := ${OSOGRAMO} ${OSOLEXO}
-
-# Extra shared libs needed to compile this binary (leave blank if this
-# module is not for a binary executable)
-local_shlibs := liboslcomp
-
-# ld flags needed for this library
-local_ldflags := ${OPENIMAGEIO_LINK} ${LINK_BOOST}
-
-
-#
-${OSOLEXC}: ${OSOLEXL} ${OSOGRAMH} ${COMPILER_HEADERS}
- @ echo " Compiling $@ ..."
- ${FLEX} -+ -t ${OSOLEXL} > $@
-
-${OSOLEXO}: ${OSOLEXC} ${OSOGRAMH}
- @ ${CXX} ${CFLAGS} ${CINCL}${src_dir}/liboslexec ${PROJECT_EXTRA_CXX} ${DASHC} ${OSOLEXC} ${DASHO}$@
-
-# Action to build the object files
-${OSOGRAMC}: ${OSOGRAMY} ${COMPILER_HEADERS}
- @ echo " Compiling $@ from $< ..."
- ${BISON} -dv -p oso -o $@ ${OSOGRAMY}
-
-${OSOGRAMO}: ${OSOGRAMC} ${OSOGRAMH}
- @ echo " Compiling $@ ..."
- ${CXX} ${CFLAGS} ${CINCL}${src_dir}/liboslexec ${PROJECT_EXTRA_CXX} ${DASHC} ${OSOGRAMC} ${DASHO}$@
-
-${OSOGRAMH}: ${OSOGRAMY}
-
-
-## Include ONE of the includes below, depending on whether this module
-## constructs a binary executable, a static library, or a shared library
-## (DLL).
-
-#include ${src_make_dir}/bin.mk
-#include ${src_make_dir}/lib.mk
-include ${src_make_dir}/shlib.mk
View
39 src/liboslquery/module.mk
@@ -1,39 +0,0 @@
-# Template for the makefile for an individual src/* directory.
-# Fill in the blanks below.
-
-# License and copyright goes here
-
-# Name of the binary or library whose source is in this directory.
-# Do NOT include .exe or any other suffix.
-local_name := liboslquery
-
-# Name of all source files in this directory
-local_src := oslquery.cpp
-
-# Extra static libs needed to compile this binary (leave blank if this
-# module is not for a binary executable)
-local_libs :=
-
-# Grammar and lexer object files
-OSOLEXO := ${build_obj_dir}/liboslexec/osolex${OEXT}
-OSOGRAMO := ${build_obj_dir}/liboslexec/osogram${OEXT}
-
-# Extra objects from other libs we need to compile this library
-local_extra_objs := ${build_obj_dir}/liboslexec/osoreader${OEXT} \
- ${OSOGRAMO} ${OSOLEXO}
-
-# Extra shared libs needed to compile this binary (leave blank if this
-# module is not for a binary executable)
-local_shlibs := liboslcomp
-
-# ld flags needed for this library
-local_ldflags := ${OPENIMAGEIO_LINK} ${LINK_BOOST}
-
-
-## Include ONE of the includes below, depending on whether this module
-## constructs a binary executable, a static library, or a shared library
-## (DLL).
-
-#include ${src_make_dir}/bin.mk
-#include ${src_make_dir}/lib.mk
-include ${src_make_dir}/shlib.mk
View
104 src/make/bin.mk
@@ -1,104 +0,0 @@
-# License and copyright goes here
-
-
-# This file contains the rules for building a binary executable out
-# of a single local source directory.
-#
-# This is included directly from the module.mk of that local directory.
-
-
-#${info Reading bin.mk for ${local_name}}
-
-# Name for this binary
-name := ${notdir ${local_name}}
-
-# Full path to the directory containing the local source
-${name}_src_dir := ${src_dir}/${name}
-#${info bin.mk ${name} ${name}_src_dir = ${${name}_src_dir}}
-
-# List of all source files, with full paths
-${name}_srcs := ${foreach f,${local_src},${${name}_src_dir}/${f}}
-#${info bin.mk ${name} ${name}_srcs = ${${name}_srcs}}
-
-# Directory where we're going to build the object files for this binary
-${name}_obj_dir := ${build_obj_dir}/${name}
-#${info bin.mk ${name} ${name}_obj_dir = ${${name}_obj_dir}}
-
-# List of all obj files we need to generate for this binary
-${name}_objs := ${patsubst %.cpp,%${OEXT},${foreach f,${local_src},${${name}_obj_dir}/${f}}}
-${name}_objs += ${local_extra_objs}
-#${info bin.mk ${name} ${name}_objs = ${${name}_objs}}
-
-# Full path and name of the executable
-${name}_bin := ${build_dir}/bin/${name}${BINEXT}
-#${info bin.mk ${name} ${name}_bin = ${${name}_bin}}
-
-# Libs we need to build
-${name}_needed_libs := ${foreach f,${local_libs},${build_dir}/lib/${f}${LIBEXT}}
-${name}_needed_libs += ${foreach f,${local_shlibs},${build_dir}/lib/${f}${SHLIBEXT}}
-#${info bin.mk ${name} ${${name}_bin} needs libs ${${name}_needed_libs}}
-
-# Libs to link against
-${name}_linked_libs := ${foreach f,${local_libs},${build_dir}/lib/${f}${LIBEXT}}
-${name}_linked_libs += ${patsubst lib%,-l%,${foreach f,${local_shlibs},${f}}}
-#${name}_linked_libs +=${foreach f,${local_shlibs},${f}${SHLIBEXT}}
-
-# Local linking arguments
-${name}_ldflags := ${local_ldflags}
-#${info bin.mk ${name} ${name}_ldflags = ${${name}_ldflags}}
-
-# Dependency file is build/<platform>/obj/<name>.d
-${name}_depfile := ${${name}_obj_dir}/${name}.d
-#${info ${name} dep file = ${${name}_depfile}}
-
-
-ifneq (${DO_NOT_BUILD},${name})
-
-# Take all the source modules in
-ALL_SRC += ${${name}_srcs}
-ALL_BINS += ${${name}_bin}
-ALL_DEPS += ${${name}_depfile}
-ALL_BUILD_DIRS += ${${name}_obj_dir}
-#${info In bin.mk, now ALL_DEPS = ${ALL_DEPS}}
-#${info In bin.mk, now ALL_BUILD_DIRS = ${ALL_BUILD_DIRS}}
-
-endif
-
-
-
-# Action to build the binary
-${${name}_bin}: ${${name}_srcs} ${${name}_depfile} ${${name}_objs} ${${name}_needed_libs}
- @ echo "Building binary $@ ..."
-ifeq (${SHOWCOMMANDS},)
- @ ${LD} ${LDFLAGS} ${BINOUT}$@ ${${notdir ${basename $@}}_objs} ${LD_LIBPATH}${build_dir}/lib ${${notdir ${basename $@}}_linked_libs} ${${basename ${notdir $@}}_ldflags} ${LINK_OTHER}
-else
- ${LD} ${LDFLAGS} ${BINOUT}$@ ${${notdir ${basename $@}}_objs} ${LD_LIBPATH}${build_dir}/lib ${${notdir ${basename $@}}_linked_libs} ${${basename ${notdir $@}}_ldflags} ${LINK_OTHER}
-endif
-ifndef DEBUG
- @ ${STRIP_BINARY} $@
-endif
-
-# Action to build the object files
-${${name}_obj_dir}/%${OEXT}: ${${name}_src_dir}/%.cpp
- @ echo " Compiling $@ ..."
-ifeq (${SHOWCOMMANDS},)
- @ ${CXX} ${CFLAGS} ${CINCL}${${name}_src_dir} ${PROJECT_EXTRA_CXX} ${DASHC} $< ${DASHO}$@
-else
- ${CXX} ${CFLAGS} ${CINCL}${${name}_src_dir} ${PROJECT_EXTRA_CXX} ${DASHC} $< ${DASHO}$@
-endif
-
-# Action to build the dependency if any of the src files change
-${${name}_depfile}: ${${name}_srcs}
- @ echo "Building bin dependency $@ from $^ ..."
- @ ${MKDIR} ${build_dir} ${build_dir}/obj ${ALL_BUILD_DIRS}
- @ ${MAKEDEPEND} -f- -- ${CFLAGS} ${CINCL}${${notdir ${basename $@}}_src_dir} -- ${${notdir ${basename $@}}_srcs} 2>/dev/null \
- | ${SED} -e 's%^${${notdir ${basename $@}}_src_dir}%${${notdir ${basename $@}}_obj_dir}%g' \
- > ${${notdir ${basename $@}}_depfile}
-
-
-local_name :=
-local_src :=
-local_extra_objs :=
-local_libs :=
-local_shlibs :=
-local_ldflags :=
View
87 src/make/lib.mk
@@ -1,87 +0,0 @@
-# License and copyright goes here
-
-
-# This file contains the rules for building a static library out
-# of a single local source directory.
-#
-# This is included directly from the module.mk of that local directory.
-
-
-#${info Reading lib.mk for ${local_name}}
-
-# Name for this library
-name := ${notdir ${local_name}}
-
-# Full path to the directory containing the local source
-${name}_src_dir := ${src_dir}/${name}
-#${info lib.mk ${name} ${name}_src_dir = ${${name}_src_dir}}
-
-# List of all source files, with full paths
-${name}_srcs := ${foreach f,${local_src},${${name}_src_dir}/${f}}
-#${info lib.mk ${name} ${name}_srcs = ${${name}_srcs}}
-
-# Directory where we're going to build the object files for this library
-${name}_obj_dir := ${build_obj_dir}/${name}
-#${info lib.mk ${name} ${name}_obj_dir = ${${name}_obj_dir}}
-
-# List of all obj files we need to generate for this library
-${name}_objs := ${patsubst %.cpp,%${OEXT},${foreach f,${local_src},${${name}_obj_dir}/${f}}}
-${name}_objs += ${local_extra_objs}
-#${info lib.mk ${name} ${name}_objs = ${${name}_objs}}
-
-# Full path and name of the library
-${name}_lib := ${build_dir}/lib/${name}${LIBEXT}
-#${info lib.mk ${name} ${name}_lib = ${${name}_lib}}
-
-# Dependency file is build/<platform>/obj/<name>.d
-${name}_depfile := ${${name}_obj_dir}/${name}.d
-#${info ${name} dep file = ${${name}_depfile}}
-
-
-ifneq (${DO_NOT_BUILD},${name})
-
-# Take all the source modules in
-ALL_SRC += ${${name}_srcs}
-ALL_LIBS += ${${name}_lib}
-ALL_DEPS += ${${name}_depfile}
-ALL_BUILD_DIRS += ${${name}_obj_dir}
-
-#${info In lib.mk, now ALL_DEPS = ${ALL_DEPS}}
-#${info In lib.mk, now ALL_BUILD_DIRS = ${ALL_BUILD_DIRS}}
-
-endif
-
-
-
-# Action to build the library
-${${name}_lib}: ${${name}_objs} ${${name}_depfile}
- @ echo "Building library ${${name}_lib} $@ ..."
-ifeq (${SHOWCOMMANDS},)
- @ ${AR} ${AROUT}$@ ${${notdir ${basename $@}}_objs}
-else
- ${AR} ${AROUT}$@ ${${notdir ${basename $@}}_objs}
-endif
-
-# Action to build the object files
-${${name}_obj_dir}/%${OEXT}: ${${name}_src_dir}/%.cpp
- @ echo " Compiling $@ ..."
-ifeq (${SHOWCOMMANDS},)
- @ ${CXX} ${CFLAGS} ${CINCL}${${name}_src_dir} ${PROJECT_EXTRA_CXX} ${DASHC} $< ${DASHO}$@
-else
- ${CXX} ${CFLAGS} ${CINCL}${${name}_src_dir} ${PROJECT_EXTRA_CXX} ${DASHC} $< ${DASHO}$@
-endif
-
-# Action to build the dependency if any of the src files change
-${${name}_depfile}: ${${name}_srcs}
- @ echo "Building lib dependency $@ ..."
- @ ${MKDIR} ${build_dir} ${build_dir}/obj ${ALL_BUILD_DIRS}
- @ ${MAKEDEPEND} -f- -- ${CFLAGS} ${CINCL}${${notdir ${basename $@}}_src_dir} -- ${${notdir ${basename $@}}_srcs} 2>/dev/null \
- | ${SED} -e 's%^${${notdir ${basename $@}}_src_dir}%${${notdir ${basename $@}}_obj_dir}%g' \
- > ${${notdir ${basename $@}}_depfile}
-
-
-local_name :=
-local_src :=
-local_extra_objs :=
-local_libs :=
-local_shlibs :=
View
35 src/make/linux.mk
@@ -1,35 +0,0 @@
-# License and copyright goes here
-
-
-# This file contains the Linux-specific macros
-#
-# This is included by platform.mk
-
-
-
-CFLAGS += -DLINUX -Wall
-
-ifdef DEBUG
-CFLAGS += -g
-else
-CFLAGS += -O3 -DNDEBUG
-endif
-
-ifdef PROFILE
-CFLAGS += -pg
-# also -g?
-LDFLAGS += -pg
-STRIP_BINARY := touch
-endif
-
-CP := cp -uvpf
-
-QT_INCLUDE ?= -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtOpenGL \
- -I/usr/include/qt4
-LINK_QT ?= -lQtOpenGL -lQtGui -lQtCore
-
-OPENGL_INCLUDE ?= -I/usr/include/GL
-LINK_OPENGL ?=
-
-LINK_OTHER := -ldl -lpthread
-
View
38 src/make/linux64.mk
@@ -1,38 +0,0 @@
-# License and copyright goes here
-
-
-# This file contains the Linux-specific macros
-#
-# This is included by platform.mk
-
-
-
-CFLAGS += -DLINUX -DLINUX64 -Wall
-# 64-bit Linux should compile using PIC code
-CFLAGS += -fPIC
-
-ifdef DEBUG
-CFLAGS += -g
-else
-CFLAGS += -O3 -funroll-loops -DNDEBUG
-endif
-
-ifdef PROFILE
-CFLAGS += -pg
-# also -g?
-LDFLAGS += -pg
-STRIP_BINARY := touch
-endif
-
-CP := cp -uvpf
-
-QT_PREFIX ?= /usr/include/qt4
-QT_INCLUDE ?= -I${QT_PREFIX}/QtGui -I${QT_PREFIX}/QtOpenGL \
- -I${QT_PREFIX}
-LINK_QT ?= -lQtOpenGL -lQtGui -lQtCore
-
-OPENGL_INCLUDE ?= -I/usr/include/GL
-LINK_OPENGL ?=
-
-LINK_OTHER := -ldl -lpthread
-
View
46 src/make/macosx.mk
@@ -1,46 +0,0 @@
-# License and copyright goes here
-
-
-# This file contains the Mac OS X specific macros
-#
-# This is included by platform.mk
-
-
-
-CFLAGS += -fPIC
-#CFLAGS += -D__APPLE__ # the compiler already does this for us
-#CFLAGS += -arch i386 -arch x86_64 -mmacosx-version-min=10.5
-
-# I don't understand why, but boost::regex crashes when I strip binaries on OSX.
-STRIP_BINARY := touch
-
-ifdef DEBUG
-CFLAGS += -g -Wall
-else
-CFLAGS += -O3 -funroll-loops -DNDEBUG -Wall
-#helpful? -funroll-loops -fomit-frame-pointer
-#unhelpful? -march=pentium4 -ffast-math -msse -mfpmath=sse -msse2
-endif
-
-ifdef PROFILE
-# On OS X, use "Shark", not gprof, so don't bother with -pg
-#CFLAGS += -pg
-#LDFLAGS += -pg
-CFLAGS += -g
-STRIP_BINARY := touch
-endif
-
-# ? -fno-common
-
-#LDFLAGS += -arch x86_64
-SHLIBEXT := .dylib
-SHLIB_LDFLAGS := -dynamiclib
-#SHLIB_LDFLAGS += -arch x86_64
-# -m64
-
-QT_INCLUDE += -I/Library/Frameworks/QtGui.framework/Headers
-QT_INCLUDE += -I/Library/Frameworks/QtOpenGL.framework/Headers
-LINK_QT += -framework QtGui -framework QtOpenGL -framework QtCore
-
-OPENGL_INCLUDE :=
-LINK_OPENGL := -framework OpenGL
View
288 src/make/master.mk
@@ -1,288 +0,0 @@
-# License and copyright goes here
-
-#########################################################################
-# global.mk
-#
-# This is the master makefile.
-# Here we put all the top-level make targets, platform-independent
-# rules, etc.
-#
-# Targets we support:
-#
-# all (default) - build optimized application in build/<platform>, and
-# installers here, if applicable.
-#
-# debug - build unoptimized application with all debug symbols
-# in build/platform.debug
-#
-# profile - build optimized and profiled application in
-# build/platform.profile
-#
-# clean - remove all temporary files used to compile (generally
-# everything in build/platform)
-#
-# realclean - remove both the build and dist for this platform
-#
-# nuke - remove everything but the bare source -- including builds
-# and dists for all platforms
-#
-#########################################################################
-
-
-
-# Phony targets
-.PHONY: all debug profile clean realclean nuke \
- doxygen
-
-# All the suffixes we see and have rules for
-# do we need these?
-#.SUFFIXES: .cpp
-
-
-# Set up variables holding the names of source directories
-working_dir := ${shell pwd}
-top_dir := .
-top_src_dir := ${top_dir}/src
-src_dir := ${top_dir}/src
-src_include_dir := ${top_src_dir}/include
-src_make_dir := ${top_src_dir}/make
-
-
-
-# Figure out which architecture we're on and include any
-# platform-specific makefiles
-include ${src_make_dir}/platform.mk
-
-
-
-# Presence of make variables DEBUG and PROFILE cause us to make special
-# builds, which we put in their own areas.
-ifdef DEBUG
- variant +=.debug
- CFLAGS += -DDEBUG
-endif
-ifdef PROFILE
- variant +=.profile
- CFLAGS += -DNDEBUG
-endif
-
-
-# Set up variables holding the names of platform-dependent directories
-top_build_dir := ${top_dir}/build
-build_dir := ${top_build_dir}/${platform}${variant}
-build_obj_dir := ${build_dir}/obj
-
-top_dist_dir := ${top_dir}/dist
-dist_dir := ${top_dist_dir}/${platform}${variant}
-
-
-
-# Census of the directories containing things to build, the local makefiles
-
-# All directories containing source of binaries or libraries
-#src_dirs := ${wildcard ${src_dir}/*}
-#$(info src_dirs = "${src_dirs}")
-
-# List of all local module.mk files for binaries
-#all_makefiles := ${foreach f,${src_dirs},${wildcard ${f}/module.mk}}
-all_makefiles := ${wildcard src/*/module.mk}
-#$(info all_makefiles = "${makefiles}")
-
-# List of all tests to run, by default testsuite/tests/*, but project.mk
-# may amend this
-all_tests := ${wildcard testsuite/tests/*}
-
-
-
-# Making dist
-build_dirs := bin lib include doc
-
-# Directories to create in the distribution
-dist_dirs := bin lib include doc
-
-# default place where includes go in the dist
-dist_include_dir := include
-
-
-
-# Include the file containing all project-specific info
-include ${src_make_dir}/project.mk
-
-
-
-#########################################################################
-# Include all per-module makefiles
-
-# Initialize variables that the individual module.mk's will append to
-ALL_SRC :=
-ALL_BINS :=
-ALL_LIBS :=
-ALL_SHLIBS :=
-ALL_TESTS :=
-ALL_DEPS :=
-ALL_BUILD_DIRS :=
-
-#
-#########################################################################
-
-
-
-
-#########################################################################
-# Top-level documented targets
-
-all: dist
-
-
-# 'make debug' is implemented via recursive make setting DEBUG
-debug:
- ${MAKE} DEBUG=1 --no-print-directory
-
-# 'make profile' is implemented via recursive make setting PROFILE
-profile:
- ${MAKE} PROFILE=1 --no-print-directory
-
-clean: testclean
- ${RM_ALL} ${build_dir}
-
-realclean: clean
- ${RM_ALL} ${dist_dir}
-
-nuke:
- ${RM_ALL} ${top_build_dir} ${top_dist_dir}
-
-doxygen:
- doxygen src/doc/Doxyfile
-
-test : build ${all_tests}
- @ echo "Running test suite..."
- @ for f in ${all_tests} ; do \
- ( cd $$f ; \
- echo "$$f " ; \
- PATH=../../../${build_dir}/bin:${PATH} \
- LD_LIBRARY_PATH=../../../${build_dir}/lib:${LD_LIBRARY_PATH} \
- DYLD_LIBRARY_PATH=../../../${build_dir}/lib:${DYLD_LIBRARY_PATH} \
- ./run.py ; \
- ) \
- done
-
-testclean : ${all_tests}
- @ for f in ${all_tests} ; do \
- ( cd $$f ; \
- echo "Cleaning test $$f " ; \
- ./run.py -c ; \
- ) \
- done
-
-# end top level targets
-#########################################################################
-
-
-
-#########################################################################
-# Compilation rules
-
-#$(info RULE build_obj_dir=${build_obj_dir} src_bin_dir=${src_bin_dir})
-
-# Old rule for compiling C++ files. This has moved into bin.mk, lib.mk,
-# etc., since it needs to be defined in that context.
-#${build_obj_dir}/%${OEXT}: ${src_dir}/%.cpp
-# @ echo "Compiling $@ ..."
-# ${CXX} ${CFLAGS} ${PROJECT_EXTRA_CXX} ${DASHC} $< ${DASHO}$@
-
-# Rule for using Qt's "moc" preprocessor
-moc_%.cpp: %.h
- @ echo " Running 'moc' on $@ ..."
- @ $(QT_MOC) $< -o $@
-
-# end compilation rules
-#########################################################################
-
-
-
-
-# FIXME
-# This flag is set in the command module.mk files when
-# the command is no longer used. It is defined here so
-# that it doesn't evaluate to the empty string and disable
-# all commands that don't set it at all!
-DO_NOT_BUILD := disabled
-
-# Include the module.mk for each source directory
-include ${all_makefiles}
-
-
-
-#########################################################################
-# Internal targets
-
-build: make_build_dirs ${ALL_DEPS} build_libs build_bins build_docs
-
-# Target to create all build directories
-make_build_dirs:
- @ for f in ${build_dirs}; do ${MKDIR} ${build_dir}/$$f; done
-
-build_libs: ${ALL_LIBS}
-# @ echo "ALL_LIBS = ${ALL_LIBS}"
-
-build_bins: ${ALL_BINS}
-# @ echo "ALL_BINS = ${ALL_BINS}"
-
-build_docs:
-
-dist: build copy_dist_bins copy_dist_libs copy_dist_includes \
- copy_dist_extra_libs copy_dist_docs copy_dist_root
-
-make_dist_dirs:
- @ for f in ${dist_dirs}; do ${MKDIR} ${dist_dir}/$$f; done
-
-copy_dist_bins: make_dist_dirs
-# @ echo "Copying dist_bins = ${dist_bins}"
- @ for f in ${dist_bins}; do \
- ${CP} ${build_dir}/bin/$$f ${dist_dir}/bin; \
- ${CHMOD_RX} ${dist_dir}/bin/$$f ; \
- done
-
-copy_dist_libs: make_dist_dirs
-# @ echo "Copying dist_libs = ${dist_libs}"
- @ for f in ${dist_libs}; do \
- ${CP} ${build_dir}/lib/$$f ${dist_dir}/lib; \
- ${CHMOD_RO} ${dist_dir}/lib/$$f ; \
- done
-
-copy_dist_includes: make_dist_dirs
-# @ echo "Copying dist_includes = ${dist_includes}"
- @ ${MKDIR} ${dist_dir}/${dist_include_dir}
- @ for f in ${dist_includes}; do \
- ${CP} ${src_include_dir}/$$f ${dist_dir}/${dist_include_dir} ; \
- ${CHMOD_RO} ${dist_dir}/${dist_include_dir}/$$f ; \
- done
-
-copy_dist_extra_libs: make_dist_dirs
-# @ echo "Copying dist_extra_libs = ${dist_extra_libs}"
- @ for f in ${dist_extra_libs}; do \
- ${CP} $$f ${dist_dir}/lib; \
- done
-
-copy_dist_docs: make_dist_dirs
-# @ echo "Copying dist_docs = ${dist_docs}"
- @ for f in ${dist_docs}; do \
- ${CPR} $$f ${dist_dir}/doc; \
- done
-
-copy_dist_root: make_dist_dirs
-# @ echo "Copying dist_root = ${dist_root}"
- @ for f in ${dist_root}; do \
- ${CPR} $$f ${dist_dir}; \
- done
-
-
-# end internal targets
-#########################################################################
-
-
-
-# Include all the dependency files
-ifndef NODEP
--include ${ALL_DEPS}
-endif
View
35 src/make/module.mk.template
@@ -1,35 +0,0 @@
-# Template for the makefile for an individual src/* directory.
-# Fill in the blanks below.
-
-# License and copyright goes here
-
-# Name of the binary or library whose source is in this directory.
-# Do NOT include .exe or any other suffix.
-local_name :=
-
-# Name of all source files in this directory
-local_src :=
-
-# Extra objects from other libs we need to compile this library or binary
-local_extra_objs :=
-
-# Extra static libs needed to compile this module (leave blank if this
-# module is not for a binary executable)
-local_libs :=
-
-# Extra shared libs needed to compile this module (leave blank if this
-# module is not for a binary executable)
-local_shlibs :=
-
-# ld flags needed for this module
-local_ldflags :=
-
-
-
-## Include ONE of the includes below, depending on whether this module
-## constructs a binary executable, a static library, or a shared library
-## (DLL).
-
-#include ${src_make_dir}/bin.mk
-#include ${src_make_dir}/lib.mk
-#include ${src_make_dir}/shlib.mk
View
157 src/make/platform.mk
@@ -1,157 +0,0 @@
-# License and copyright goes here
-
-
-#########################################################################
-# platform.mk
-#
-# Figure out which platform we are building on/for, set ${platform} and
-# ${hw}, and include the relevant platform-specific makefiles.
-#
-# This is called from master.mk
-#########################################################################
-
-
-#########################################################################
-# Figure out which platform we are building on/for
-
-# Start with unknown platform
-platform ?= unknown
-
-# Use 'uname -m' to determine the hardware architecture. This should
-# return "x86" or "x86_64"
-hw := ${shell uname -m}
-#$(info hardware = ${hw})
-ifneq (${hw},x86)
- ifneq (${hw},x86_64)
- ifneq (${hw},i386)
- ifneq (${hw},i686)
- $(error "ERROR: Unknown hardware architecture")
- endif
- endif
- endif
-endif
-
-# Use 'uname', lowercased and stripped of pesky stuff, and the hardware
-# architecture in ${hw} to determine the platform that we're building
-# for, and store its name in ${platform}.
-
-uname := ${shell uname | sed 's/_NT-.*//' | tr '[:upper:]' '[:lower:]'}
-#$(info uname = ${uname})
-ifeq (${platform},unknown)
- # Linux
- ifeq (${uname},linux)
- platform := linux
- ifeq (${hw},x86_64)
- platform := linux64
- endif
- endif
-
- # Windows
- ifeq (${uname},cygwin)
- platform := windows
- ifeq (${hw},x86_64)
- platform := windows64
- endif
- endif
-
- # Mac OS X
- ifeq (${uname},darwin)
- platform := macosx
- endif
-
- # If we haven't been able to determine the platform from uname, use
- # whatever is in $ARCH, if it's set.
- ifeq (${platform},unknown)
- ifneq (${ARCH},)
- platform := ${ARCH}
- endif
- endif
-
- # Manual override: if there's an environment variable $BUILDARCH, use that
- # no matter what
- ifneq (${BUILDARCH},)
- platform := ${BUILDARCH}
- endif
-endif
-
-# Throw an error if nothing worked
-ifeq (${platform},unknown)
- $(error "ERROR: Could not determine the platform")
-endif
-
-$(info platform=${platform}, hw=${hw})
-
-# end of section where we figure out the platform
-#########################################################################
-
-
-
-#########################################################################
-# Default macros used by "most" platforms, so the platform-specific
-# makefiles can be minimal
-
-# C and C++ compilation
-CFLAGS += -I${src_include_dir}
-DASHC := -c #
-DASHO := -o #
-CINCL := -I
-OEXT := .o
-
-# Creating static libraries
-LIBPREFIX := lib
-LIBEXT := .a
-AR := ar cr
-AROUT :=
-ARPREREQ = $?
-
-# Linking an executable
-BINEXT :=
-LD := ${CXX}
-BINOUT := -o #
-LD_LIBPATH := -L
-LDFLAGS += -rdynamic
-LINKWITH := -l
-#restrict_syms := -Wl,--version-script=${restrict_syms_file}
-
-# Creating a dynamic/shared library
-SHLIBEXT := .so
-LDSHLIB := ${CXX}
-SHLIB_DASHO := -o #
-SHLIB_LDFLAGS += -Bdynamic -rdynamic -shared ${PIC}
-
-# Making dependency make files (.d)
-MAKEDEPEND := makedepend
-DEPENDFLAGS :=
-DEPENDARGS :=
-
-# Miscellaneous shell commands
-RM := rm
-RM_ALL := rm -rf
-CHMOD_W := chmod +w
-CHMOD_RO := chmod -w
-CHMOD_RX := chmod 555
-STRIP_BINARY := strip
-MKDIR := mkdir -p
-CP := cp -vpf
-CPR := cp -vpfr
-SED := sed
-# ld?
-
-QT_MOC ?= moc
-FLEX := flex
-BISON := bison
-
-#
-#########################################################################
-
-
-#########################################################################
-#
-
-#
-#########################################################################
-
-
-# Include the platform-specific rules
-include ${src_make_dir}/${platform}.mk
-
View
113 src/make/project.mk
@@ -1,113 +0,0 @@
-# License and copyright goes here
-
-#########################################################################
-# project.mk
-#
-# This is where we put all project-specific make commands, including
-# the list of files that becomes our public distribution
-#########################################################################
-
-
-all:
-
-#########################################################################
-# 'make help' prints important make targets
-help:
- @echo "Targets:"
- @echo " make (default target is 'all')"
- @echo " make all Build optimized binaries and libraries in ${dist_dir},"
- @echo " temporary build files in ${build_dir}"
- @echo " make debug Build unoptimized with symbols in ${dist_dir}.debug,"
- @echo " temporary build files in ${build_dir}.debug"
- @echo " make profile Build for profiling in ${dist_dir}.profile,"
- @echo " temporary build files in ${build_dir}.profile"
- @echo " make clean Remove the temporary files in ${build_dir}"
- @echo " make realclean Remove both ${build_dir} AND ${dist_dir}"
- @echo " make nuke Remove ALL of build and dist (not just ${platform})"
- @echo " make test Run test suite"
- @echo "Helpful modifiers:"
- @echo " make SHOWCOMMANDS=1 ... Show all compilation commands"
- @echo ""
-
-
-
-#########################################################################
-# dist_files lists (relative to build) all files that end up in an
-# external distribution
-dist_bins := oslc oslinfo
-dist_libs := liboslcomp${SHLIBEXT} \
- liboslexec${SHLIBEXT} \
- liboslquery${SHLIBEXT}
-
-# include files that get included in the compiled distribution
-dist_includes := oslcomp.h oslexec.h oslquery.h
-
-# make the public distro have a subdirectory in include,
-# to avoid name clashes
-dist_include_dir := include/OSL
-
-# docs files that get copied to dist
-dist_docs :=
-
-# files at the root level that get copied to dist
-dist_root :=
-
-
-
-#########################################################################
-# Project-specific make variables
-
-
-
-
-#########################################################################
-# Path for including things specific to this project
-
-THIRD_PARTY_TOOLS_HOME ?= ../external/dist/${platform}
-
-ILMBASE_VERSION ?= 1.0.1
-ILMBASE_HOME ?= ${THIRD_PARTY_TOOLS_HOME}
-ILMBASE_LIB_AREA ?= ${ILMBASE_HOME}/lib/ilmbase-${ILMBASE_VERSION}
-ILMBASE_CXX ?= -I${ILMBASE_HOME}/include/ilmbase-${ILMBASE_VERSION}/OpenEXR
-LINK_ILMBASE_HALF ?= ${ILMBASE_LIB_AREA}/${LIBPREFIX}Half${LIBEXT}
-LINK_ILMBASE ?= ${LD_LIBPATH}${ILMBASE_LIB_AREA} ${ILMBASE_LIB_AREA}/${LIBPREFIX}Imath${LIBEXT} ${LINK_ILMBASE_HALF} ${ILMBASE_LIB_AREA}/${LIBPREFIX}IlmThread${LIBEXT} ${ILMBASE_LIB_AREA}/${LIBPREFIX}Iex${LIBEXT}
-
-BOOST_VERSION ?= 1_38_0
-BOOST_HOME ?= ${THIRD_PARTY_TOOLS_HOME}
-BOOST_CXX ?= -I${BOOST_HOME}/include/boost_${BOOST_VERSION}
-BOOST_LIB_AREA ?= ${BOOST_HOME}/lib/boost_${BOOST_VERSION}
-GCCVERCODE ?= ${shell gcc --version | grep -o "[0-9]\.[0-9]" | head -1 | tr -d "."}
-ifeq (${platform},macosx)
-#OLD BOOST_SUFFIX ?= -mt-1_35
- BOOST_SUFFIX ?= -xgcc${GCCVERCODE}-mt-1_38
-else
- BOOST_SUFFIX ?= -gcc${GCCVERCODE}-mt-1_38
-endif
-
-LINK_BOOST ?= ${LD_LIBPATH}${BOOST_LIB_AREA} \
- ${BOOST_LIB_AREA}/${LIBPREFIX}boost_filesystem${BOOST_SUFFIX}${LIBEXT} \
- ${BOOST_LIB_AREA}/${LIBPREFIX}boost_program_options${BOOST_SUFFIX}${LIBEXT} \
- ${BOOST_LIB_AREA}/${LIBPREFIX}boost_regex${BOOST_SUFFIX}${LIBEXT} \
- ${BOOST_LIB_AREA}/${LIBPREFIX}boost_system${BOOST_SUFFIX}${LIBEXT} \
- ${BOOST_LIB_AREA}/${LIBPREFIX}boost_thread${BOOST_SUFFIX}${LIBEXT}
-
-# We don't use TBB currently, but if we did, we'd uncomment this:
-#TBB_VERSION ?= 21_20080605oss
-#TBB_HOME ?= ${THIRD_PARTY_TOOLS_HOME}
-#TBB_CXX ?= -I${TBB_HOME}/include/tbb${TBB_VERSION}
-#TBB_LIB_AREA ?= ${TBB_HOME}/lib/tbb${TBB_VERSION}
-#LINK_TBB ?= ${LD_LIBPATH}${TBB_LIB_AREA} -ltbb
-
-
-# Here we put instructions to copy libraries from these external tools into
-# this project's lib directory.
-#dist_extra_libs += $(wildcard ${BOOST_LIB_AREA}/libboost_filesystem${BOOST_SUFFIX}${SHLIBEXT}*) \
-# $(wildcard ${BOOST_LIB_AREA}/libboost_system${BOOST_SUFFIX}${SHLIBEXT}*) \
-# $(wildcard ${BOOST_LIB_AREA}/libboost_thread${BOOST_SUFFIX}${SHLIBEXT}*)
-
-OPENIMAGEIO_HOME ?= ${IMAGEIOHOME}
-OPENIMAGEIO_INCLUDE ?= -I${OPENIMAGEIO_HOME}/include -I${OPENIMAGEIO_HOME}/include/OpenImageIO
-OPENIMAGEIO_LINK ?= ${LD_LIBPATH}${OPENIMAGEIO_HOME}/lib ${LINKWITH}OpenImageIO
-
-# Here we put the ${FOO_CXX} commands for the packages we actually use
-PROJECT_EXTRA_CXX ?= ${OPENIMAGEIO_INCLUDE} ${BOOST_CXX}
View
103 src/make/shlib.mk
@@ -1,103 +0,0 @@
-# License and copyright goes here
-
-
-# This file contains the rules for building a shared library (DSO/DLL)
-# out of a single local source directory.
-#
-# This is included directly from the module.mk of that local directory.
-
-
-#${info Reading shlib.mk for ${local_name}}
-
-# Name for this library
-name := ${notdir ${local_name}}
-
-# Full path to the directory containing the local source
-${name}_src_dir := ${src_dir}/${name}
-#${info shlib.mk ${name} ${name}_src_dir = ${${name}_src_dir}}
-
-# List of all source files, with full paths
-${name}_srcs := ${foreach f,${local_src},${${name}_src_dir}/${f}}
-#${info shlib.mk ${name} ${name}_srcs = ${${name}_srcs}}
-
-# Directory where we're going to build the object files for this library
-${name}_obj_dir := ${build_obj_dir}/${name}
-#${info shlib.mk ${name} ${name}_obj_dir = ${${name}_obj_dir}}
-
-# List of all obj files we need to generate for this library
-${name}_objs := ${patsubst %.cpp,%${OEXT},${foreach f,${local_src},${${name}_obj_dir}/${f}}}
-${name}_objs += ${local_extra_objs}
-#${info shlib.mk ${name} ${name}_objs = ${${name}_objs}}
-
-# Full path and name of the library
-${name}_lib := ${build_dir}/lib/${name}${SHLIBEXT}
-#${info shlib.mk ${name} ${name}_lib = ${${name}_lib}}
-
-# Libs we need to build
-${name}_needed_libs := ${foreach f,${local_libs},${build_dir}/lib/${f}${LIBEXT}}
-${name}_needed_libs += ${foreach f,${local_shlibs},${build_dir}/lib/${f}${SHLIBEXT}}
-#${info shlib.mk ${name} ${${name}_lib} needs libs ${${name}_needed_libs}}
-
-# Libs to link against
-${name}_linked_libs := ${foreach f,${local_libs},${build_dir}/lib/${f}${LIBEXT}}
-${name}_linked_libs += ${patsubst lib%,-l%,${foreach f,${local_shlibs},${f}}}
-#${info shlib.mk ${name} ${${name}_lib} links libs ${${name}_linked_libs}}
-
-# Local linking arguments
-${name}_ldflags := ${local_ldflags}
-#${info shlib.mk ${name} ${name}_ldflags = ${${name}_ldflags}}
-
-# Dependency file is build/<platform>/obj/<name>.d
-${name}_depfile := ${${name}_obj_dir}/${name}.d
-#${info ${name} dep file = ${${name}_depfile}}
-
-
-ifneq (${DO_NOT_BUILD},${name})
-
-# Take all the source modules in
-ALL_SRC += ${${name}_srcs}
-ALL_LIBS += ${${name}_lib}
-ALL_DEPS += ${${name}_depfile}
-ALL_BUILD_DIRS += ${${name}_obj_dir}
-
-#${info In shlib.mk, now ALL_DEPS = ${ALL_DEPS}}
-#${info In shlib.mk, now ALL_BUILD_DIRS = ${ALL_BUILD_DIRS}}
-
-endif
-
-
-
-# Action to build the library
-${${name}_lib}: ${${name}_srcs} ${${name}_depfile} ${${name}_objs} ${${name}_needed_libs}
- @ echo "Building shared library $@ ..."
-ifeq (${SHOWCOMMANDS},)
- @ ${LDSHLIB} ${SHLIB_LDFLAGS} ${${notdir ${basename $@}}_objs} ${LD_LIBPATH}${build_dir}/lib ${${notdir ${basename $@}}_linked_libs} ${${basename ${notdir $@}}_ldflags} ${SHLIB_DASHO}$@
-else
- ${LDSHLIB} ${SHLIB_LDFLAGS} ${${notdir ${basename $@}}_objs} ${LD_LIBPATH}${build_dir}/lib ${${notdir ${basename $@}}_linked_libs} ${${basename ${notdir $@}}_ldflags} ${SHLIB_DASHO}$@
-endif
-
-# Action to build the object files
-${${name}_obj_dir}/%${OEXT}: ${${name}_src_dir}/%.cpp
- @ echo " Compiling $@ ..."
-ifeq (${SHOWCOMMANDS},)
- @ ${CXX} ${CFLAGS} ${CINCL}${${name}_src_dir} ${PROJECT_EXTRA_CXX} ${DASHC} $< ${DASHO}$@
-else
- ${CXX} ${CFLAGS} ${CINCL}${${name}_src_dir} ${PROJECT_EXTRA_CXX} ${DASHC} $< ${DASHO}$@
-endif
-
-
-# Action to build the dependency if any of the src files change
-${${name}_depfile}: ${${name}_srcs}
- @ echo "Building lib dependency $@ ..."
- @ ${MKDIR} ${build_dir} ${build_dir}/obj ${ALL_BUILD_DIRS}
- @ ${MAKEDEPEND} ${DEPENDFLAGS} -f- -- ${CFLAGS} ${CINCL}${${notdir ${basename $@}}_src_dir} -- ${${notdir ${basename $@}}_srcs} 2>/dev/null \
- | ${SED} -e 's%^${${notdir ${basename $@}}_src_dir}%${${notdir ${basename $@}}_obj_dir}%g' \
- > ${${notdir ${basename $@}}_depfile}
-
-
-local_name :=
-local_src :=
-local_extra_objs :=
-local_libs :=
-local_shlibs :=
-local_ldflags :=
View
98 src/make/srcpackage.mk
@@ -1,98 +0,0 @@
-# License and copyright goes here
-
-
-# This file contains the rules for building a third party package from
-# source contained in a .tar.gz file.
-#
-# This is included directly from the module.mk of that local directory.
-#
-# The module.mk file should set the following variables:
-# local_name base name of the package
-# local_src package tar filename
-# local_config any special flags to give ./configure
-# local_make_extras any special flags for make when building the package
-# local_patches any commands to run after untar but before configure
-
-${info Reading srcpackage.mk for ${local_name}}
-
-# Name for this library
-name := ${notdir ${local_name}}
-
-# Full path to the directory containing the local source
-${name}_src_dir := ${src_dir}/${name}
-#${info srcpackage.mk ${name} ${name}_src_dir = ${${name}_src_dir}}
-
-# List of all source files, with full paths
-${name}_srcs := ${foreach f,${local_src},${${name}_src_dir}/${f}}
-#${info srcpackage.mk ${name} ${name}_srcs = ${${name}_srcs}}
-
-# Directory where we're going to build the object files for this library
-${name}_obj_dir := ${build_obj_dir}/${name}
-#${name}_obj_dir := ${build_dir}/${name}
-#${info srcpackage.mk ${name} ${name}_obj_dir = ${${name}_obj_dir}}
-
-# Config flags
-${name}_config := ${local_config}
-#${info srcpackage.mk ${name} ${name}_config = ${${name}_config}}
-
-# Patch commands
-ifneq (${local_patches},)
-${name}_patches := ${local_patches}
-else
-${name}_patches := echo "no patches"
-endif
-
-# Extra make flags flags
-${name}_make_extras := ${local_make_extras}
-#${info srcpackage.mk ${name} ${name}_make_extras = ${${name}_make_extras}}
-
-# Build dependency file is build/<platform>/obj/<name>.d
-${name}_depfile := ${${name}_obj_dir}/${name}.d
-#${info ${name} dep file = ${${name}_depfile}}
-
-# Dist dependency file is dist/<platform>/<name>/<name>.d
-${name}_dist_depfile := ${dist_dir}/${name}.d
-#${info ${name} dist dep file = ${${name}_dist_depfile}}
-
-ALL_DEPS += ${${name}_depfile} ${${name}_dist_depfile}
-ALL_BUILD_DIRS += ${${name}_obj_dir}
-
-
-# Rule to make the build dependency -- which, as a side effect, untars
-# the package in the 'obj' area and builds it there.
-${${name}_depfile}: ${${name}_srcs}
- @ echo "Building $@ ..."
- ${MKDIR} ${build_dir} ${build_obj_dir} ${${notdir ${basename $@}}_obj_dir} ${ALL_BUILD_DIRS}
- tar -x -z -f ${${notdir ${basename $@}}_srcs} \
- -C ${build_obj_dir}
- ${${notdir ${basename $@}}_patches}
- (cd ${${notdir ${basename $@}}_obj_dir} ; if [ -e ./configure ] ; then ./configure --prefix=${working_dir}/${build_obj_dir}/${notdir ${basename $@}} ${${notdir ${basename $@}}_config} ; fi ; make ${${notdir ${basename $@}}_make_extras} )
- touch $@
-
-
-# Make a target that does the build of just this package
-${local_name} : ${${local_name}_dist_depfile}
-
-
-# The file to copy the build to the dist area, i.e. the target of
-# ${name}_dist_depfile, is given back in the module.mk file that called
-# this file. That's because it's totally custom for each package.
-#
-# But as an example, it might look something like this:
-#
-# ${${name}_dist_depfile}: ${${name}_depfile}
-# ${MKDIR} ${dist_dir}
-# ${MKDIR} ${dist_dir}/include
-# ${MKDIR} ${dist_dir}/include/${notdir ${basename $@}}
-# ${MKDIR} ${dist_dir}/lib
-# ${MKDIR} ${dist_dir}/lib/${notdir ${basename $@}}
-# ${CP} ${${notdir ${basename $@}}_obj_dir}/include/*.h ${dist_dir}/include/${notdir ${basename $@}}
-# ${CP} ${${notdir ${basename $@}}_obj_dir}/lib/*${LIBEXT} ${dist_dir}/include/${notdir ${basename $@}}
-#
-
-
-local_name :=
-local_src :=
-local_config :=
-local_make_extras :=
-local_patches :=
View
33 src/oslc/module.mk
@@ -1,33 +0,0 @@
-# Template for the makefile for an individual src/* directory.
-# Fill in the blanks below.
-
-# License and copyright goes here
-
-# Name of the binary or library whose source is in this directory.
-# Do NOT include .exe or any other suffix.
-local_name := oslc
-
-# Name of all source files in this directory
-local_src := oslcmain.cpp
-
-# Extra objects from other libs we need to compile this library or binary
-local_extra_objs :=
-
-# Extra static libs needed to compile this module (leave blank if this
-# module is not for a binary executable)
-local_libs :=
-
-# Extra shared libs needed to compile this module (leave blank if this
-# module is not for a binary executable)
-local_shlibs := liboslcomp
-
-# ld flags needed for this module
-local_ldflags := ${OPENIMAGEIO_LINK} ${LINK_BOOST}
-
-
-
-## Include ONE of the includes below, depending on whether this module
-## constructs a binary executable, a static library, or a shared library
-## (DLL).
-
-include ${src_make_dir}/bin.mk
View
33 src/oslinfo/module.mk
@@ -1,33 +0,0 @@
-# Template for the makefile for an individual src/* directory.
-# Fill in the blanks below.
-
-# License and copyright goes here
-
-# Name of the binary or library whose source is in this directory.
-# Do NOT include .exe or any other suffix.
-local_name := oslinfo
-
-# Name of all source files in this directory
-local_src := oslinfo.cpp
-
-# Extra objects from other libs we need to compile this library or binary
-local_extra_objs :=
-
-# Extra static libs needed to compile this module (leave blank if this
-# module is not for a binary executable)
-local_libs :=
-
-# Extra shared libs needed to compile this module (leave blank if this
-# module is not for a binary executable)
-local_shlibs := liboslquery
-
-# ld flags needed for this module
-local_ldflags := ${OPENIMAGEIO_LINK} ${LINK_BOOST}
-
-
-
-## Include ONE of the includes below, depending on whether this module
-## constructs a binary executable, a static library, or a shared library
-## (DLL).
-
-include ${src_make_dir}/bin.mk
View
33 src/testshade/module.mk
@@ -1,33 +0,0 @@
-# Template for the makefile for an individual src/* directory.
-# Fill in the blanks below.
-
-# License and copyright goes here
-
-# Name of the binary or library whose source is in this directory.
-# Do NOT include .exe or any other suffix.
-local_name := testshade
-
-# Name of all source files in this directory
-local_src := testshade.cpp
-
-# Extra objects from other libs we need to compile this library or binary
-local_extra_objs :=
-
-# Extra static libs needed to compile this module (leave blank if this
-# module is not for a binary executable)
-local_libs :=
-
-# Extra shared libs needed to compile this module (leave blank if this
-# module is not for a binary executable)
-local_shlibs := liboslexec liboslcomp
-
-# ld flags needed for this module
-local_ldflags := ${OPENIMAGEIO_LINK} ${LINK_BOOST}
-
-
-
-## Include ONE of the includes below, depending on whether this module
-## constructs a binary executable, a static library, or a shared library
-## (DLL).
-
-include ${src_make_dir}/bin.mk

0 comments on commit e3fec93

Please sign in to comment.