63 |
63 |
64 |
64 |
65 $(linux_gcc_defs_inc): $(linux_gcc_ver_inc_path) |
65 $(linux_gcc_defs_inc): $(linux_gcc_ver_inc_path) |
66 printf "#ifndef HACK_DEFS_H\n"\ |
66 printf "#ifndef HACK_DEFS_H\n"\ |
67 "#define HACK_DEFS_H\n"\ |
67 "#define HACK_DEFS_H\n"\ |
68 "#define DIMPORT_C\n"\ |
68 "#define IMPORT_C\n"\ |
69 "#define __NO_THROW\n"\ |
69 "#define __NO_THROW\n"\ |
70 "#define NONSHARABLE_CLASS(x) class x\n"\ |
70 "#define NONSHARABLE_CLASS(x) class x\n"\ |
71 "#undef _FOFF\n"\ |
71 "#undef _FOFF\n"\ |
72 "#define _FOFF(c,f) (((TInt)&(((c *)0x1000)->f))-0x1000)\n"\ |
72 "#define _FOFF(c,f) (((TInt)&(((c *)0x1000)->f))-0x1000)\n"\ |
73 "#define TEMPLATE_SPECIALIZATION template<>\n"\ |
73 "#define TEMPLATE_SPECIALIZATION template<>\n"\ |
74 "#undef __ASSERT_COMPILE\n"\ |
74 "#undef __ASSERT_COMPILE\n"\ |
75 "#define __ASSERT_COMPILE(x)\n"\ |
75 "#define __ASSERT_COMPILE(x)\n"\ |
76 "#define TAny void\n"\ |
76 "#define TAny void\n"\ |
77 "#endif\n" >> $@ |
77 "#endif\n" > $@ |
78 |
78 |
79 endif |
79 endif |
80 # End: make the global preinclude.h file |
80 # End: make the global preinclude.h file |
81 |
81 |
82 endif |
82 endif |
83 # End: included only once |
83 # End: included only once |
84 |
84 |
85 ifdef query |
85 ifdef call_in |
86 # Running one of the query targets |
86 # Running one of the call_in targets |
87 |
87 |
88 hacks: |
88 _list_fixes: |
89 @if [ "$(fixfiles)" != "" ]; then \ |
89 @if [ "$(fixfiles)" != "" ]; then \ |
90 echo $(targ): hacks for:-; \ |
90 echo $(targ): fixups for:-; \ |
91 for file in $(fixfiles); do echo " $$file"; done; \ |
91 for file in $(fixfiles); do echo " $$file"; done; \ |
92 fi |
92 fi |
93 |
93 |
94 prereqs: |
94 _list_prereqs: |
95 @if [ "$(prereqs)" != "" ]; then \ |
95 @if [ "$(prereqs)" != "" ]; then \ |
96 echo $(targ): needs:-; \ |
96 echo $(targ): needs:-; \ |
97 for prereq in $(prereqs); do echo " $$prereq"; done; \ |
97 for prereq in $(prereqs); do echo " $$prereq"; done; \ |
98 fi |
98 fi |
|
99 |
|
100 _what: |
|
101 @if [ "$(exe)" != "" ]; then \ |
|
102 targfile=`pwd`/$(exe); \ |
|
103 elif [ "$(lib)" != "" ]; then \ |
|
104 targfile=`pwd`/$(lib); \ |
|
105 fi; \ |
|
106 if [ "$$targfile" != "" ]; then \ |
|
107 printf "Target $(targ) builds $$targfile"; \ |
|
108 if [ ! -f $$targfile ]; then printf " (*** Missing ***)"; fi; \ |
|
109 printf "\n"; \ |
|
110 fi |
|
111 |
|
112 _missing: |
|
113 @if [ "$(exe)" != "" ]; then \ |
|
114 targfile=`pwd`/$(exe); \ |
|
115 elif [ "$(lib)" != "" ]; then \ |
|
116 targfile=`pwd`/$(lib); \ |
|
117 fi; \ |
|
118 if [ "$$targfile" != "" ]; then \ |
|
119 if [ ! -f $$targfile ]; then printf "Target $(targ) is missing $$targfile\n"; fi; \ |
|
120 fi |
|
121 |
|
122 |
|
123 fixes:: |
99 |
124 |
100 endif |
125 endif |
101 # End: Running one of the query targets |
126 # End: Running one of the call_in targets |
|
127 |
|
128 |
102 |
129 |