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/TAppEncoder |
---|
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 | |
---|
18 | ifeq ($(HIGHBITDEPTH), 1) |
---|
19 | HBD=HighBitDepth |
---|
20 | else |
---|
21 | HBD= |
---|
22 | endif |
---|
23 | |
---|
24 | # intermediate directory for object files |
---|
25 | OBJ_DIR = ./objects$(HBD) |
---|
26 | |
---|
27 | # set executable name |
---|
28 | PRJ_NAME = TAppEncoder$(HBD) |
---|
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)/encmain.o \ |
---|
36 | $(OBJ_DIR)/TAppEncCfg.o \ |
---|
37 | $(OBJ_DIR)/TAppEncTop.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 | |
---|
49 | DYN_DEBUG_LIBS = -lTLibEncoder$(HBD)d -lTLibCommon$(HBD)d -lTLibVideoIO$(HBD)d -lTAppCommon$(HBD)d -lTLibRenderer$(HBD)d |
---|
50 | DYN_DEBUG_PREREQS = $(LIB_DIR)/libTLibEncoder$(HBD)d.a $(LIB_DIR)/libTLibCommon$(HBD)d.a $(LIB_DIR)/libTLibVideoIO$(HBD)d.a $(LIB_DIR)/libTAppCommon$(HBD)d.a $(LIB_DIR)/libTLibRenderer$(HBD)d.a |
---|
51 | STAT_DEBUG_LIBS = -lTLibEncoder$(HBD)Staticd -lTLibCommon$(HBD)Staticd -lTLibVideoIO$(HBD)Staticd -lTAppCommon$(HBD)Staticd -lTLibRendererStatic$(HBD)d |
---|
52 | STAT_DEBUG_PREREQS = $(LIB_DIR)/libTLibEncoder$(HBD)Staticd.a $(LIB_DIR)/libTLibCommon$(HBD)Staticd.a $(LIB_DIR)/libTLibVideoIO$(HBD)Staticd.a $(LIB_DIR)/libTAppCommon$(HBD)Staticd.a $(LIB_DIR)/libTLibRendererStatic$(HBD)d.a |
---|
53 | |
---|
54 | DYN_RELEASE_LIBS = -lTLibEncoder$(HBD) -lTLibCommon$(HBD) -lTLibVideoIO$(HBD) -lTAppCommon$(HBD) -lTLibRenderer$(HBD) |
---|
55 | DYN_RELEASE_PREREQS = $(LIB_DIR)/libTLibEncoder$(HBD).a $(LIB_DIR)/libTLibCommon$(HBD).a $(LIB_DIR)/libTLibVideoIO$(HBD).a $(LIB_DIR)/libTAppCommon$(HBD).a $(LIB_DIR)/libTLibRenderer$(HBD).a |
---|
56 | STAT_RELEASE_LIBS = -lTLibEncoder$(HBD)Static -lTLibCommon$(HBD)Static -lTLibVideoIO$(HBD)Static -lTAppCommon$(HBD)Static -lTLibRenderer$(HBD)Static |
---|
57 | STAT_RELEASE_PREREQS = $(LIB_DIR)/libTLibEncoder$(HBD)Static.a $(LIB_DIR)/libTLibCommon$(HBD)Static.a $(LIB_DIR)/libTLibVideoIO$(HBD)Static.a $(LIB_DIR)/libTAppCommon$(HBD)Static.a $(LIB_DIR)/libTLibRenderer$(HBD)Static.a |
---|
58 | |
---|
59 | ifeq ($(EXTENSION_360_VIDEO), 1) |
---|
60 | DYN_DEBUG_LIBS += -lTAppEncHelper360$(HBD)d -lTLib360$(HBD)d |
---|
61 | DYN_DEBUG_PREREQS += $(LIB_DIR)/libTAppEncHelper360$(HBD)d.a $(LIB_DIR)/libTLib360$(HBD)d.a |
---|
62 | STAT_DEBUG_LIBS += -lTAppEncHelper360$(HBD)Staticd -lTLib360$(HBD)Staticd |
---|
63 | STAT_DEBUG_PREREQS += $(LIB_DIR)/libTAppEncHelper360$(HBD)Staticd.a $(LIB_DIR)/libTLib360$(HBD)Staticd.a |
---|
64 | DYN_RELEASE_LIBS += -lTAppEncHelper360$(HBD) -lTLib360$(HBD) |
---|
65 | DYN_RELEASE_PREREQS += $(LIB_DIR)/libTAppEncHelper360$(HBD).a $(LIB_DIR)/libTLib360$(HBD).a |
---|
66 | STAT_RELEASE_LIBS += -lTAppEncHelper360$(HBD)Static -lTLib360$(HBD)Static |
---|
67 | STAT_RELEASE_PREREQS+= $(LIB_DIR)/libTAppEncHelper360$(HBD)Static.a $(LIB_DIR)/libTLib360$(HBD)Static.a |
---|
68 | endif |
---|
69 | |
---|
70 | # name of the base makefile |
---|
71 | MAKE_FILE_NAME = ../../common/makefile.base |
---|
72 | |
---|
73 | # include the base makefile |
---|
74 | include $(MAKE_FILE_NAME) |
---|