bd/dvd create reworks, Makefile updates
[goodguy/history.git] / cinelerra-5.1 / thirdparty / Makefile
index 492063eff0a880c793faef3fe1f73b01a8643682..372759133cf7c65b507d887df38eab98e1e9d528 100644 (file)
 #   make val-<var>
 #
 # to add a new library:
-#   vi configure
-#     add inc_<name> <inc_paths>
-#     add add_library name <lib_paths>
-#     add probe call if the library may be already in system
-#     fix forced_libs list: for lib in $forced_libs; do
-#     add dependencies (order matters): for dep in <pairs>; do
+#   vi ../configure.ac
+#     add PKG_3RD(pkg,<yes/no/auto>, <ver_basename>, <lib_paths>, <inc_paths>)
+#     add CHECK_LIB(pkg, <syslib>, <entry_pt>, [opt libs]) if may be in system
+#     add CHECK_HEADERS(pkg, <title>, <entry_pt>) to check for devel headers
+#     add CHECK_WANT(<want>, <title>, [ checks ]) around tests if conditional
+#     see openexr check for example if c++ lib
+#     add PKG_PROVIDE(pkg,<cond>) to instance pkg if probe succeeds
+#     add to exec > global_config if additional environment needed
 #   vi Makefile
 #     add pkg.<data> (pkg.x = .flags, .vars, .params)
 #     add $(call rules,$(call std-build,<name>,<dep>...))
 
 TOPDIR ?= $(CURDIR)/..
 include $(TOPDIR)/global_config
+-include $(TOPDIR)/cin_config
 BLD := $(THIRDPARTY)/build
 
+# package build flags, if needed
+# need frame pointer for debugs and helps with profiling
+# NOTE: the trailing blank is MANDITORY or the builds fail
+# due to bugs in the build scripts from auto*
+CFLAGS_ ?= -g -O2 -fno-omit-frame-pointer
+CFLAGS ?= $(CFLAGS_) 
+LDFLAGS += $(LDFLAGS_) 
+CXXFLAGS += $(CXXFLAGS_) 
+
 pkg-source=$(BLD)/$(1).source
 pkg-config=$(BLD)/$(1).configure
 pkg-built=$(BLD)/$(1).built