2014-04-12 10:41:27 +00:00
|
|
|
#!/bin/bash
|
2015-08-27 10:50:55 +00:00
|
|
|
BLD_FLAGS="-std=gnu99 -Wno-write-strings -DGPAC_CONFIG_LINUX -D_FILE_OFFSET_BITS=64"
|
2016-02-09 15:27:49 +00:00
|
|
|
BLD_INCLUDE="-I../src/lib_ccx/ -I../src/gpacmp4/ -I../src/libpng/ -I../src/zlib/ -I../src/zvbi"
|
2015-08-27 10:50:55 +00:00
|
|
|
SRC_LIBPNG="$(find ../src/libpng/ -name '*.c')"
|
|
|
|
SRC_ZLIB="$(find ../src/zlib/ -name '*.c')"
|
2016-02-09 15:27:49 +00:00
|
|
|
SRC_ZVBI="$(find ../src/zvbi/ -name '*.c')"
|
2015-08-27 10:50:55 +00:00
|
|
|
SRC_CCX="$(find ../src/lib_ccx/ -name '*.c')"
|
|
|
|
SRC_GPAC="$(find ../src/gpacmp4/ -name '*.c')"
|
2016-02-09 15:27:49 +00:00
|
|
|
BLD_SOURCES="../src/ccextractor.c $SRC_CCX $SRC_GPAC $SRC_ZLIB $SRC_ZVBI $SRC_LIBPNG"
|
2015-08-27 10:50:55 +00:00
|
|
|
BLD_LINKER="-lm -zmuldefs"
|
|
|
|
|
2016-02-09 15:27:49 +00:00
|
|
|
gcc $BLD_FLAGS $BLD_INCLUDE -o ccextractor $BLD_SOURCES $BLD_LINKER
|