make/common/NativeCompilation.gmk

changeset 2219
cb1203f48728
parent 2215
7a73b8b4ac8a
child 2221
888144400d97
equal deleted inserted replaced
2216:0c4c976612d3 2219:cb1203f48728
41 LINKING_MSG= 41 LINKING_MSG=
42 LINKING_EXE_MSG= 42 LINKING_EXE_MSG=
43 ARCHIVING_MSG= 43 ARCHIVING_MSG=
44 endif 44 endif
45 45
46 ifeq ($(OPENJDK_BUILD_OS_ENV), windows.cygwin)
47 UNIX_PATH_PREFIX := /cygdrive
48 else ifeq ($(OPENJDK_BUILD_OS_ENV), windows.msys)
49 UNIX_PATH_PREFIX :=
50 endif
51
46 define add_native_source 52 define add_native_source
47 # param 1 = BUILD_MYPACKAGE 53 # param 1 = BUILD_MYPACKAGE
48 # parma 2 = the source file name (..../alfa.c or .../beta.cpp) 54 # parma 2 = the source file name (..../alfa.c or .../beta.cpp)
49 # param 3 = the bin dir that stores all .o (.obj) and .d files. 55 # param 3 = the bin dir that stores all .o (.obj) and .d files.
50 # param 4 = the c flags to the compiler 56 # param 4 = the c flags to the compiler
115 $(RM) $$($1_$2_DEP).exitvalue 121 $(RM) $$($1_$2_DEP).exitvalue
116 ($(ECHO) $$@: \\ \ 122 ($(ECHO) $$@: \\ \
117 && $(SED) -e '/^Note: including file:/!d' \ 123 && $(SED) -e '/^Note: including file:/!d' \
118 -e 's|Note: including file: *||' \ 124 -e 's|Note: including file: *||' \
119 -e 's|\\|/|g' \ 125 -e 's|\\|/|g' \
120 -e 's|^\([a-zA-Z]\):|/cygdrive/\1|g' \ 126 -e 's|^\([a-zA-Z]\):|$(UNIX_PATH_PREFIX)/\1|g' \
121 -e '/$(subst /,\/,$(TOPDIR))/!d' \ 127 -e '/$(subst /,\/,$(TOPDIR))/!d' \
122 -e 's|$$$$| \\|g' \ 128 -e 's|$$$$| \\|g' \
123 $$($1_$2_DEP).raw) > $$($1_$2_DEP) 129 $$($1_$2_DEP).raw) > $$($1_$2_DEP)
124 endif 130 endif
125 endif 131 endif

mercurial