[125] | 1 | # the SOURCE definiton lets you move your makefile to another position |
---|
| 2 | CONFIG = CONSOLE |
---|
| 3 | |
---|
| 4 | # set directories to your wanted values |
---|
| 5 | SRC_DIR = ../../../../source/App/TAppDecoder |
---|
| 6 | INC_DIR = ../../../../source/Lib |
---|
| 7 | LIB_DIR = ../../../../lib |
---|
| 8 | BIN_DIR = ../../../../bin |
---|
| 9 | |
---|
| 10 | SRC_DIR1 = |
---|
| 11 | SRC_DIR2 = |
---|
| 12 | SRC_DIR3 = |
---|
| 13 | SRC_DIR4 = |
---|
| 14 | |
---|
| 15 | USER_INC_DIRS = -I$(SRC_DIR) |
---|
| 16 | USER_LIB_DIRS = |
---|
| 17 | |
---|
[918] | 18 | ifeq ($(HIGHBITDEPTH), 1) |
---|
| 19 | HBD=HighBitDepth |
---|
| 20 | else |
---|
| 21 | HBD= |
---|
| 22 | endif |
---|
| 23 | |
---|
[125] | 24 | # intermediate directory for object files |
---|
[918] | 25 | OBJ_DIR = ./objects$(HBD) |
---|
[125] | 26 | |
---|
| 27 | # set executable name |
---|
[918] | 28 | PRJ_NAME = TAppDecoder$(HBD) |
---|
[125] | 29 | |
---|
| 30 | # defines to set |
---|
| 31 | DEFS = -DMSYS_LINUX -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DMSYS_UNIX_LARGEFILE |
---|
| 32 | |
---|
| 33 | # set objects |
---|
| 34 | OBJS = \ |
---|
| 35 | $(OBJ_DIR)/decmain.o \ |
---|
| 36 | $(OBJ_DIR)/TAppDecCfg.o \ |
---|
| 37 | $(OBJ_DIR)/TAppDecTop.o \ |
---|
| 38 | |
---|
| 39 | # set libs to link with |
---|
| 40 | LIBS = -ldl |
---|
| 41 | |
---|
| 42 | DEBUG_LIBS = |
---|
| 43 | RELEASE_LIBS = |
---|
| 44 | |
---|
| 45 | STAT_LIBS = -lpthread |
---|
| 46 | DYN_LIBS = |
---|
| 47 | |
---|
| 48 | |
---|
[918] | 49 | DYN_DEBUG_LIBS = -lTLibDecoder$(HBD)d -lTLibCommon$(HBD)d -lTLibVideoIO$(HBD)d -lTAppCommon$(HBD)d |
---|
| 50 | DYN_DEBUG_PREREQS = $(LIB_DIR)/libTLibDecoder$(HBD)d.a $(LIB_DIR)/libTLibCommon$(HBD)d.a $(LIB_DIR)/libTLibVideoIO$(HBD)d.a $(LIB_DIR)/libTAppCommon$(HBD)d.a |
---|
| 51 | STAT_DEBUG_LIBS = -lTLibDecoder$(HBD)Staticd -lTLibCommon$(HBD)Staticd -lTLibVideoIO$(HBD)Staticd -lTAppCommon$(HBD)Staticd |
---|
| 52 | STAT_DEBUG_PREREQS = $(LIB_DIR)/libTLibDecoder$(HBD)Staticd.a $(LIB_DIR)/libTLibCommon$(HBD)Staticd.a $(LIB_DIR)/libTLibVideoIO$(HBD)Staticd.a $(LIB_DIR)/libTAppCommon$(HBD)Staticd.a |
---|
[125] | 53 | |
---|
[918] | 54 | DYN_RELEASE_LIBS = -lTLibDecoder$(HBD) -lTLibCommon$(HBD) -lTLibVideoIO$(HBD) -lTAppCommon$(HBD) |
---|
| 55 | DYN_RELEASE_PREREQS = $(LIB_DIR)/libTLibDecoder$(HBD).a $(LIB_DIR)/libTLibCommon$(HBD).a $(LIB_DIR)/libTLibVideoIO$(HBD).a $(LIB_DIR)/libTAppCommon$(HBD).a |
---|
| 56 | STAT_RELEASE_LIBS = -lTLibDecoder$(HBD)Static -lTLibCommon$(HBD)Static -lTLibVideoIO$(HBD)Static -lTAppCommon$(HBD)Static |
---|
| 57 | STAT_RELEASE_PREREQS = $(LIB_DIR)/libTLibDecoder$(HBD)Static.a $(LIB_DIR)/libTLibCommon$(HBD)Static.a $(LIB_DIR)/libTLibVideoIO$(HBD)Static.a $(LIB_DIR)/libTAppCommon$(HBD)Static.a |
---|
[125] | 58 | |
---|
| 59 | |
---|
| 60 | # name of the base makefile |
---|
| 61 | MAKE_FILE_NAME = ../../common/makefile.base |
---|
| 62 | |
---|
| 63 | # include the base makefile |
---|
| 64 | include $(MAKE_FILE_NAME) |
---|