53 UNIX_PATH_PREFIX :=
54 endif
55
56 # This pattern is used to transform the output of the microsoft CL compiler
57 # into a make syntax dependency file (.d)
58 WINDOWS_SHOWINCLUDE_SED_PATTERN := \
59 -e '/^Note: including file:/!d' \
60 -e 's|Note: including file: *||' \
61 -e 's|\\|/|g' \
62 -e 's|^\([a-zA-Z]\):|$(UNIX_PATH_PREFIX)/\1|g' \
63 -e '\|$(TOPDIR)|I !d' \
64 -e 's|$$$$| \\|g' \
65 #
66
67 # This pattern is used to transform a dependency file (.d) to a list
68 # of make targets for dependent files (.d.targets)
69 DEPENDENCY_TARGET_SED_PATTERN := \
70 -e 's/\#.*//' \
71 -e 's/^[^:]*: *//' \
72 -e 's/ *\\$$$$//' \
73 -e '/^$$$$/ d' \
74 -e 's/$$$$/ :/' \
75 #
76
77 define add_native_source
78 # param 1 = BUILD_MYPACKAGE
79 # parma 2 = the source file name (..../alfa.c or .../beta.cpp)
80 # param 3 = the bin dir that stores all .o (.obj) and .d files.
81 # param 4 = the c flags to the compiler
82 # param 5 = the c compiler
83 # param 6 = the c++ flags to the compiler
84 # param 7 = the c++ compiler
85 # param 8 = the flags to the assembler
86
87 ifneq (,$$(filter %.c,$2))
88 # Compile as a C file
89 $1_$2_FLAGS=$(CFLAGS_CCACHE) $4 $$($1_$(notdir $2)_CFLAGS) -DTHIS_FILE='"$$(<F)"' -c
90 $1_$2_COMP=$5
91 $1_$2_DEP_FLAG:=$(C_FLAG_DEPS)
92 else ifneq (,$$(filter %.m,$2))
|
53 UNIX_PATH_PREFIX :=
54 endif
55
56 # This pattern is used to transform the output of the microsoft CL compiler
57 # into a make syntax dependency file (.d)
58 WINDOWS_SHOWINCLUDE_SED_PATTERN := \
59 -e '/^Note: including file:/!d' \
60 -e 's|Note: including file: *||' \
61 -e 's|\\|/|g' \
62 -e 's|^\([a-zA-Z]\):|$(UNIX_PATH_PREFIX)/\1|g' \
63 -e '\|$(TOPDIR)|I !d' \
64 -e 's|$$$$| \\|g' \
65 #
66
67 # This pattern is used to transform a dependency file (.d) to a list
68 # of make targets for dependent files (.d.targets)
69 DEPENDENCY_TARGET_SED_PATTERN := \
70 -e 's/\#.*//' \
71 -e 's/^[^:]*: *//' \
72 -e 's/ *\\$$$$//' \
73 -e 's/^[ ]*//' \
74 -e '/^$$$$/ d' \
75 -e 's/$$$$/ :/' \
76 #
77
78 define add_native_source
79 # param 1 = BUILD_MYPACKAGE
80 # parma 2 = the source file name (..../alfa.c or .../beta.cpp)
81 # param 3 = the bin dir that stores all .o (.obj) and .d files.
82 # param 4 = the c flags to the compiler
83 # param 5 = the c compiler
84 # param 6 = the c++ flags to the compiler
85 # param 7 = the c++ compiler
86 # param 8 = the flags to the assembler
87
88 ifneq (,$$(filter %.c,$2))
89 # Compile as a C file
90 $1_$2_FLAGS=$(CFLAGS_CCACHE) $4 $$($1_$(notdir $2)_CFLAGS) -DTHIS_FILE='"$$(<F)"' -c
91 $1_$2_COMP=$5
92 $1_$2_DEP_FLAG:=$(C_FLAG_DEPS)
93 else ifneq (,$$(filter %.m,$2))
|