/[gm2]/libgm2/Makefile.in
ViewVC logotype

Contents of /libgm2/Makefile.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Thu Oct 17 13:54:15 2013 UTC (11 years ago) by gaius
Branch: MAIN
CVS Tags: cvs-repository-moved-to-git, HEAD
Changes since 1.3: +38 -30 lines
* gm2/libgm2/Makefile.in:  corrected install of iso SYSTEM.def.
  Ensure that we copy form the object directory and avoid the
  template version in the source directory.

1 # Makefile for libgm2.
2 # Copyright 2013 Free Software Foundation, Inc.
3 #
4 # This file is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 3 of the License, or
7 # (at your option) any later version.
8 #
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with this program; see the file COPYING3. If not see
16 # <http://www.gnu.org/licenses/>.
17
18 # Default target; must be first.
19 all: gm2lib
20 $(MULTIDO) $(AM_MAKEFLAGS) DO=all multi-do # $(MAKE)
21
22 .PHONY: all
23
24 ## Multilib support variables.
25 MULTISRCTOP =
26 MULTIBUILDTOP =
27 MULTIDIRS =
28 MULTISUBDIR =
29 MULTIDO = true
30 MULTICLEAN = true
31
32 # Standard autoconf-set variables.
33 SHELL = @SHELL@
34 srcdir = @srcdir@
35 libdir = @libdir@
36 build = @build@
37 target = @target@
38 prefix = @prefix@
39
40 mkinstalldirs = $(srcdir)/../mkinstalldirs
41
42 # Nonstandard autoconf-set variables.
43 enable_shared = @enable_shared@
44
45 LN_S=@LN_S@
46 AWK=@AWK@
47
48 # Variables for the user (or the top level) to override.
49 objext=.o
50 THREAD_KIND=native
51 TRACE=no
52 LDFLAGS=
53
54 # The tedious process of getting CFLAGS right.
55 CFLAGS=-g
56 PICFLAG = @PICFLAG@
57 GM2LIBFLAGS= -W -Wall -nostdinc
58 GM2LIBCFLAGS= -g -O2
59 GM2LIBCFLAGS_FOR_C = -W -Wall $(GM2LIBCFLAGS) \
60 -fexceptions -DIN_RTS @have_getipinfo@
61
62 host_subdir = @host_subdir@
63 GCC_DIR=$(MULTIBUILDTOP)../../$(host_subdir)/gcc
64 GM2_OBJ=$(GCC_DIR)/gm2
65 GCC_SRC=$(srcdir)/../gcc
66 GM2_SRC=$(GCC_SRC)/gm2
67
68 XGM2BUILD1 = $(GCC_DIR)/stage1/gm2
69 XGM2_1 = $(GCC_DIR)/xgm2 -B$(XGM2BUILD1) -B./
70
71 target_noncanonical:=@target_noncanonical@
72 version := $(shell cat $(srcdir)/../gcc/BASE-VER)
73 libsubdir := $(libdir)/gcc/$(target_noncanonical)/$(version)$(MULTISUBDIR)
74
75 GCCINCLUDES = -I$(GCC_SRC)/../include
76
77 GM2_G=-g
78 GM2_CPP=
79
80 GM2_ISO_FLAGS=-fsoft-check-all $(GM2_G) $(GM2_O) \
81 -funbounded-by-reference -fiso -fextended-opaque \
82 -Wpedantic-cast -Wpedantic-param-names -ffunction-sections \
83 -fdata-sections $(GM2_CPP)
84 GM2_MIN_FLAGS=$(GM2_G) $(GM2_OS) \
85 -funbounded-by-reference -fextended-opaque \
86 -Wpedantic-cast -Wpedantic-param-names -fno-exceptions \
87 -ffunction-sections -fdata-sections $(GM2_CPP)
88
89
90 # exeext should not be used because it's the *host* exeext. We're building
91 # a *target* library, aren't we?!? Likewise for CC. Still, provide bogus
92 # definitions just in case something slips through the safety net provided
93 # by recursive make invocations in gcc/ada/Makefile.in
94 LIBGM2_FLAGS_TO_PASS = \
95 "MAKEOVERRIDES=" \
96 "LDFLAGS=$(LDFLAGS)" \
97 "LN_S=$(LN_S)" \
98 "SHELL=$(SHELL)" \
99 "GM2LIBFLAGS=$(GM2LIBFLAGS) $(MULTIFLAGS)" \
100 "GM2LIBCFLAGS=$(GM2LIBCFLAGS) $(MULTIFLAGS)" \
101 "GM2LIBCFLAGS_FOR_C=$(GM2LIBCFLAGS_FOR_C) $(MULTIFLAGS)" \
102 "PICFLAG_FOR_TARGET=$(PICFLAG)" \
103 "THREAD_KIND=$(THREAD_KIND)" \
104 "TRACE=$(TRACE)" \
105 "MULTISUBDIR=$(MULTISUBDIR)" \
106 "libsubdir=$(libsubdir)" \
107 "objext=$(objext)" \
108 "prefix=$(prefix)" \
109 "exeext=.exeext.should.not.be.used " \
110 'CC=the.host.compiler.should.not.be.needed' \
111 "GCC_FOR_TARGET=$(CC)" \
112 "CFLAGS=$(CFLAGS)"
113
114 AR_FOR_TARGET := $(shell \
115 if [ -f $(GCC_DIR)/../binutils/ar ] ; then \
116 echo $(GCC_DIR)/../binutils/ar ; \
117 else \
118 if [ "$(host)" = "$(target)" ] ; then \
119 echo $(AR); \
120 else \
121 t='$(program_transform_name)'; echo ar | sed -e "$$t" ; \
122 fi; \
123 fi)
124 AR_FLAGS_FOR_TARGET =
125 AR_CREATE_FOR_TARGET = $(AR_FOR_TARGET) $(AR_FLAGS_FOR_TARGET) rc
126 AR_EXTRACT_FOR_TARGET = $(AR_FOR_TARGET) $(AR_FLAGS_FOR_TARGET) x
127
128 GM2_LIB_DIR_ULM= $(DESTDIR)$(libsubdir)/gm2/ulm
129 GM2_LIB_DIR_PIM= $(DESTDIR)$(libsubdir)/gm2/pim
130 GM2_LIB_DIR_LOG= $(DESTDIR)$(libsubdir)/gm2/logitech
131 GM2_LIB_DIR_PCO= $(DESTDIR)$(libsubdir)/gm2/pim-coroutine
132 GM2_LIB_DIR_ISO= $(DESTDIR)$(libsubdir)/gm2/iso
133 GM2_LIB_DIR_MIN= $(DESTDIR)$(libsubdir)/gm2/min
134
135 # Rules to build gm2lib.
136 .PHONY: gm2lib gm2lib-plain gm2lib-shared
137 gm2lib: @default_gm2lib_target@
138
139
140 $(GM2_LIB_DIR_PIM):
141 $(mkinstalldirs) $(GM2_LIB_DIR_PIM)
142
143 $(GM2_LIB_DIR_PIM)/O2:
144 $(mkinstalldirs) $(GM2_LIB_DIR_PIM)/O2
145
146 $(GM2_LIB_DIR_PIM)/SO:
147 $(mkinstalldirs) $(GM2_LIB_DIR_PIM)/SO
148
149 $(GM2_LIB_DIR_PIM)/SO_O2:
150 $(mkinstalldirs) $(GM2_LIB_DIR_PIM)/SO_O2
151
152 $(GM2_LIB_DIR_ISO):
153 $(mkinstalldirs) $(GM2_LIB_DIR_ISO)
154
155 $(GM2_LIB_DIR_ISO)/O2:
156 $(mkinstalldirs) $(GM2_LIB_DIR_ISO)/O2
157
158 $(GM2_LIB_DIR_ISO)/SO:
159 $(mkinstalldirs) $(GM2_LIB_DIR_ISO)/SO
160
161 $(GM2_LIB_DIR_ISO)/SO_O2:
162 $(mkinstalldirs) $(GM2_LIB_DIR_ISO)/SO_O2
163
164 $(GM2_LIB_DIR_ULM):
165 $(mkinstalldirs) $(GM2_LIB_DIR_ULM)
166
167 $(GM2_LIB_DIR_ULM)/O2:
168 $(mkinstalldirs) $(GM2_LIB_DIR_ULM)/O2
169
170 $(GM2_LIB_DIR_ULM)/SO:
171 $(mkinstalldirs) $(GM2_LIB_DIR_ULM)/SO
172
173 $(GM2_LIB_DIR_ULM)/SO_O2:
174 $(mkinstalldirs) $(GM2_LIB_DIR_ULM)/SO_O2
175
176 $(GM2_LIB_DIR_MIN):
177 $(mkinstalldirs) $(GM2_LIB_DIR_MIN)
178
179 $(GM2_LIB_DIR_MIN)/O2:
180 $(mkinstalldirs) $(GM2_LIB_DIR_MIN)/O2
181
182 $(GM2_LIB_DIR_MIN)/SO:
183 $(mkinstalldirs) $(GM2_LIB_DIR_MIN)/SO
184
185 $(GM2_LIB_DIR_MIN)/SO_O2:
186 $(mkinstalldirs) $(GM2_LIB_DIR_MIN)/SO_O2
187
188 $(GM2_LIB_DIR_LOG):
189 $(mkinstalldirs) $(GM2_LIB_DIR_LOG)
190
191 $(GM2_LIB_DIR_LOG)/O2:
192 $(mkinstalldirs) $(GM2_LIB_DIR_LOG)/O2
193
194 $(GM2_LIB_DIR_LOG)/SO:
195 $(mkinstalldirs) $(GM2_LIB_DIR_LOG)/SO
196
197 $(GM2_LIB_DIR_LOG)/SO_O2:
198 $(mkinstalldirs) $(GM2_LIB_DIR_LOG)/SO_O2
199
200 $(GM2_LIB_DIR_PCO):
201 $(mkinstalldirs) $(GM2_LIB_DIR_PCO)
202
203 $(GM2_LIB_DIR_PCO)/O2:
204 $(mkinstalldirs) $(GM2_LIB_DIR_PCO)/O2
205
206 $(GM2_LIB_DIR_PCO)/SO:
207 $(mkinstalldirs) $(GM2_LIB_DIR_PCO)/SO
208
209 $(GM2_LIB_DIR_PCO)/SO_O2:
210 $(mkinstalldirs) $(GM2_LIB_DIR_PCO)/SO_O2
211
212 install-gm2lib: $(GM2_LIB_DIR_PIM) $(GM2_LIB_DIR_PIM)/SO \
213 $(GM2_LIB_DIR_PIM)/O2 $(GM2_LIB_DIR_PIM)/SO_O2 \
214 $(GM2_LIB_DIR_ISO) $(GM2_LIB_DIR_ISO)/SO \
215 $(GM2_LIB_DIR_ISO)/O2 $(GM2_LIB_DIR_ISO)/SO_O2 \
216 $(GM2_LIB_DIR_ULM) $(GM2_LIB_DIR_ULM)/SO \
217 $(GM2_LIB_DIR_ULM)/O2 $(GM2_LIB_DIR_ULM)/SO_O2 \
218 $(GM2_LIB_DIR_LOG) $(GM2_LIB_DIR_LOG)/SO \
219 $(GM2_LIB_DIR_LOG)/O2 $(GM2_LIB_DIR_LOG)/SO_O2 \
220 $(GM2_LIB_DIR_PCO) $(GM2_LIB_DIR_PCO)/SO \
221 $(GM2_LIB_DIR_PCO)/O2 $(GM2_LIB_DIR_PCO)/SO_O2 \
222 $(GM2_LIB_DIR_MIN) $(GM2_LIB_DIR_MIN)/SO \
223 $(GM2_LIB_DIR_MIN)/O2 $(GM2_LIB_DIR_MIN)/SO_O2
224 for i in $(GM2_SRC)/gm2-libs/*.def $(GM2_SRC)/gm2-libs/*.mod ; do \
225 if [ "`basename $$i`" != "SYSTEM.def" ] ; then \
226 if [ ! -d $$i ] ; then \
227 rm -f $(GM2_LIB_DIR_PIM)/$$i ; \
228 $(INSTALL_PROGRAM) $$i $(GM2_LIB_DIR_PIM) ; \
229 fi ; \
230 fi ; \
231 done ; \
232 for i in $(GM2_OBJ)/gm2-libs/*.a $(GM2_SRC)/gm2-libs/*.def ; do \
233 rm -f $(GM2_LIB_DIR_PIM)/$$i ; \
234 if [ -f $$i ] ; then \
235 if [ ! -d $$i ] ; then \
236 $(INSTALL_PROGRAM) $$i $(GM2_LIB_DIR_PIM) ; \
237 fi ; \
238 fi ; \
239 done ; \
240 for i in $(GM2_OBJ)/gm2-libs/SO/*.a ; do \
241 rm -f $(GM2_LIB_DIR_PIM)/SO/`basename $$i` ; \
242 if [ -f $$i ] ; then \
243 if [ ! -d $$i ] ; then \
244 $(INSTALL_PROGRAM) $$i $(GM2_LIB_DIR_PIM)/SO ; \
245 fi ; \
246 fi ; \
247 done ; \
248 for i in $(GM2_OBJ)/gm2-libs/O2/*.a ; do \
249 rm -f $(GM2_LIB_DIR_PIM)/O2/`basename $$i` ; \
250 if [ -f $$i ] ; then \
251 if [ ! -d $$i ] ; then \
252 $(INSTALL_PROGRAM) $$i $(GM2_LIB_DIR_PIM)/O2 ; \
253 fi ; \
254 fi ; \
255 done ; \
256 for i in $(GM2_OBJ)/gm2-libs/SO_O2/*.a ; do \
257 rm -f $(GM2_LIB_DIR_PIM)/SO_O2/`basename $$i` ; \
258 if [ -f $$i ] ; then \
259 if [ ! -d $$i ] ; then \
260 $(INSTALL_PROGRAM) $$i $(GM2_LIB_DIR_PIM)/SO_O2 ; \
261 fi ; \
262 fi ; \
263 done ; \
264 for i in $(GM2_SRC)/gm2-libs-pim/*.def $(GM2_SRC)/gm2-libs-pim/*.mod ; do \
265 if [ ! -d $$i ] ; then \
266 rm -f $(GM2_LIB_DIR_LOG)/$$i ; \
267 $(INSTALL_PROGRAM) $$i $(GM2_LIB_DIR_LOG) ; \
268 fi ; \
269 done ; \
270 for i in $(GM2_OBJ)/gm2-libs-pim/*.a ; do \
271 rm -f $(GM2_LIB_DIR_PIM)/$$i ; \
272 if [ -f $$i ] ; then \
273 if [ ! -d $$i ] ; then \
274 $(INSTALL_PROGRAM) $$i $(GM2_LIB_DIR_LOG) ; \
275 fi ; \
276 fi ; \
277 done ; \
278 for i in $(GM2_OBJ)/gm2-libs-pim/SO/*.a ; do \
279 if [ ! -d $$i ] ; then \
280 rm -f $(GM2_LIB_DIR_LOG)/SO/$$i ; \
281 $(INSTALL_PROGRAM) $$i $(GM2_LIB_DIR_LOG)/SO ; \
282 fi ; \
283 done ; \
284 for i in $(GM2_OBJ)/gm2-libs-pim/O2/*.a ; do \
285 if [ ! -d $$i ] ; then \
286 rm -f $(GM2_LIB_DIR_LOG)/O2/$$i ; \
287 $(INSTALL_PROGRAM) $$i $(GM2_LIB_DIR_LOG)/O2 ; \
288 fi ; \
289 done ; \
290 for i in $(GM2_OBJ)/gm2-libs-pim/SO_O2/*.a ; do \
291 if [ ! -d $$i ] ; then \
292 rm -f $(GM2_LIB_DIR_LOG)/SO_O2/$$i ; \
293 $(INSTALL_PROGRAM) $$i $(GM2_LIB_DIR_LOG)/SO_O2 ; \
294 fi ; \
295 done ; \
296 for i in $(GM2_SRC)/gm2-libs-coroutines/*.def \
297 $(GM2_SRC)/gm2-libs-coroutines/*.mod ; do \
298 if [ ! -d $$i ] ; then \
299 rm -f $(GM2_LIB_DIR_PCO)/$$i ; \
300 $(INSTALL_PROGRAM) $$i $(GM2_LIB_DIR_PCO) ; \
301 fi ; \
302 done ; \
303 for i in $(GM2_OBJ)/gm2-libs-coroutines/*.a ; do \
304 rm -f $(GM2_LIB_DIR_PCO)/$$i ; \
305 if [ -f $$i ] ; then \
306 if [ ! -d $$i ] ; then \
307 rm -f $(GM2_LIB_DIR_PCO)/$$i ; \
308 $(INSTALL_PROGRAM) $$i $(GM2_LIB_DIR_PCO) ; \
309 fi ; \
310 fi ; \
311 done ; \
312 for i in $(GM2_OBJ)/gm2-libs-coroutines/O2/*.a ; do \
313 rm -f $(GM2_LIB_DIR_PCO)/$$i ; \
314 if [ -f $$i ] ; then \
315 if [ ! -d $$i ] ; then \
316 rm -f $(GM2_LIB_DIR_PCO)/$$i ; \
317 $(INSTALL_PROGRAM) $$i $(GM2_LIB_DIR_PCO)/O2 ; \
318 fi ; \
319 fi ; \
320 done ; \
321 for i in $(GM2_OBJ)/gm2-libs-coroutines/SO/*.a ; do \
322 rm -f $(GM2_LIB_DIR_PCO)/$$i ; \
323 if [ -f $$i ] ; then \
324 if [ ! -d $$i ] ; then \
325 rm -f $(GM2_LIB_DIR_PCO)/$$i ; \
326 $(INSTALL_PROGRAM) $$i $(GM2_LIB_DIR_PCO)/SO ; \
327 fi ; \
328 fi ; \
329 done ; \
330 for i in $(GM2_OBJ)/gm2-libs-coroutines/SO_O2/*.a ; do \
331 rm -f $(GM2_LIB_DIR_PCO)/$$i ; \
332 if [ -f $$i ] ; then \
333 if [ ! -d $$i ] ; then \
334 rm -f $(GM2_LIB_DIR_PCO)/$$i ; \
335 $(INSTALL_PROGRAM) $$i $(GM2_LIB_DIR_PCO)/SO_O2 ; \
336 fi ; \
337 fi ; \
338 done ; \
339 for i in $(GM2_SRC)/gm2-libs-iso/*.def $(GM2_SRC)/gm2-libs-iso/*.mod ; do \
340 if [ "`basename $$i`" != "SYSTEM.def" ] ; then \
341 if [ ! -d $$i ] ; then \
342 rm -f $(GM2_LIB_DIR_ISO)/$$i ; \
343 $(INSTALL_PROGRAM) $$i $(GM2_LIB_DIR_ISO) ; \
344 fi ; \
345 fi ; \
346 done
347 for i in $(GM2_OBJ)/gm2-libs-iso/*.a $(GM2_OBJ)/gm2-libs-iso/*.def ; do \
348 rm -f $(GM2_LIB_DIR_ISO)/$$i ; \
349 if [ -f $$i ] ; then \
350 if [ ! -d $$i ] ; then \
351 $(INSTALL_PROGRAM) $$i $(GM2_LIB_DIR_ISO) ; \
352 fi ; \
353 fi ; \
354 done ; \
355 for i in $(GM2_OBJ)/gm2-libs-iso/SO/*.a ; do \
356 rm -f $(GM2_LIB_DIR_ISO)/SO/`basename $$i` ; \
357 if [ -f $$i ] ; then \
358 if [ ! -d $$i ] ; then \
359 $(INSTALL_PROGRAM) $$i $(GM2_LIB_DIR_ISO)/SO ; \
360 fi ; \
361 fi ; \
362 done ; \
363 for i in $(GM2_OBJ)/gm2-libs-iso/O2/*.a ; do \
364 rm -f $(GM2_LIB_DIR_ISO)/O2/`basename $$i` ; \
365 if [ -f $$i ] ; then \
366 if [ ! -d $$i ] ; then \
367 $(INSTALL_PROGRAM) $$i $(GM2_LIB_DIR_ISO)/O2 ; \
368 fi ; \
369 fi ; \
370 done ; \
371 for i in $(GM2_SRC)/ulm-lib-gm2/sys/*.def \
372 $(GM2_SRC)/ulm-lib-gm2/std/*.def \
373 $(GM2_SRC)/ulm-lib-gm2/sys/*.mod \
374 $(GM2_SRC)/ulm-lib-gm2/std/*.mod ; do \
375 if [ ! -d $$i ] ; then \
376 rm -f $(GM2_LIB_DIR_ULM)/$$i ; \
377 $(INSTALL_PROGRAM) $$i $(GM2_LIB_DIR_ULM) ; \
378 fi ; \
379 done
380 for i in $(GM2_SRC)/ulm-lib-gm2/*.a ; do \
381 rm -f $(GM2_LIB_DIR_ULM)/$$i ; \
382 if [ -f $$i ] ; then \
383 if [ ! -d $$i ] ; then \
384 $(INSTALL_PROGRAM) $$i $(GM2_LIB_DIR_ULM) ; \
385 fi ; \
386 fi ; \
387 done
388 for i in $(GM2_SRC)/gm2-libs-min/*.def $(GM2_SRC)/gm2-libs-min/*.mod ; do \
389 if [ ! -d $$i ] ; then \
390 rm -f $(GM2_LIB_DIR_MIN)/$$i ; \
391 $(INSTALL_PROGRAM) $$i $(GM2_LIB_DIR_MIN) ; \
392 fi ; \
393 done
394 for i in $(GM2_OBJ)/gm2-libs-min/*.a ; do \
395 rm -f $(GM2_LIB_DIR_MIN)/$$i ; \
396 if [ -f $$i ] ; then \
397 if [ ! -d $$i ] ; then \
398 $(INSTALL_PROGRAM) $$i $(GM2_LIB_DIR_MIN) ; \
399 fi ; \
400 fi ; \
401 done
402 for i in $(GM2_OBJ)/gm2-libs-min/O2/*.a ; do \
403 rm -f $(GM2_LIB_DIR_MIN)/O2/$$i ; \
404 if [ -f $$i ] ; then \
405 if [ ! -d $$i ] ; then \
406 $(INSTALL_PROGRAM) $$i $(GM2_LIB_DIR_MIN)/O2 ; \
407 fi ; \
408 fi ; \
409 done
410
411
412 gm2lib-plain:
413 test -f stamp-libgm2 || ( \
414 $(MAKE) $(LIBGM2_FLAGS_TO_PASS) gm2lib-plain-real \
415 && touch stamp-libgm2 )
416
417 gm2lib-shared:
418 test -f stamp-libgm2 || ( \
419 $(MAKE) $(LIBGM2_FLAGS_TO_PASS) gm2lib-shared-real \
420 && touch stamp-libgm2 )
421
422 # Check uninstalled version.
423 check:
424
425 # Check installed version.
426 installcheck:
427
428 # Build info (none here).
429 info:
430
431 # Build DVI (none here).
432 dvi:
433
434 # Build PDF (none here).
435 pdf:
436
437 # Build html (none here).
438 html:
439
440 # Build TAGS (none here).
441 TAGS:
442
443 .PHONY: check installcheck info dvi pdf html
444
445 # Installation rules.
446 install: install-gm2lib
447 $(MULTIDO) $(AM_MAKEFLAGS) DO=install multi-do # $(MAKE)
448
449 install-strip: install
450
451 install-info:
452
453 install-pdf:
454
455 install-html:
456
457 .PHONY: install install-strip install-info install-pdf install-html
458
459 # Cleaning rules.
460 mostlyclean:
461 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=mostlyclean multi-clean # $(MAKE)
462
463 clean:
464 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=clean multi-clean # $(MAKE)
465
466 distclean:
467 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=distclean multi-clean # $(MAKE)
468 $(RM) Makefile config.status config.log
469
470 maintainer-clean:
471
472 .PHONY: mostlyclean clean distclean maintainer-clean
473
474 # Rules for rebuilding this Makefile.
475 Makefile: $(srcdir)/Makefile.in config.status
476 CONFIG_FILES=$@ ; \
477 CONFIG_HEADERS= ; \
478 $(SHELL) ./config.status
479
480 config.status: $(srcdir)/configure
481 $(SHELL) ./config.status --recheck
482
483 AUTOCONF = autoconf
484 configure_deps = \
485 $(srcdir)/configure.ac \
486 $(srcdir)/../config/acx.m4 \
487 $(srcdir)/../config/override.m4 \
488 $(srcdir)/../config/multi.m4
489
490 $(srcdir)/configure: @MAINT@ $(configure_deps)
491 cd $(srcdir) && $(AUTOCONF)
492
493 # Don't export variables to the environment, in order to not confuse
494 # configure.
495 .NOEXPORT:
496
497 include $(GCC_DIR)/gm2/config-make
498
499 #
500 # the following tables define the source files used to build gm2 using only Modula-2
501 # sources (except for interfacing to libc and gcc).
502 #
503 # It is these files which are the source to cc1gm2$(exeext) at the end of stage1
504 #
505
506 GM2-LIBS-DEFS = ASCII.def IO.def Args.def M2RTS.def \
507 Assertion.def NumberIO.def Break.def SYSTEM.def \
508 CmdArgs.def Scan.def StrCase.def \
509 FIO.def StrIO.def StrLib.def TimeString.def \
510 UnixArgs.def wrapc.def Environment.def \
511 FpuIO.def Debug.def SysStorage.def \
512 Storage.def StdIO.def libc.def SEnvironment.def\
513 DynamicStrings.def SFIO.def SArgs.def \
514 PushBackInput.def StringConvert.def FormatStrings.def \
515 Builtins.def cbuiltin.def MathLib0.def M2EXCEPTION.def \
516 RTExceptions.def SMathLib0.def dtoa.def ldtoa.def \
517 termios.def RTint.def COROUTINES.def Indexing.def \
518 LMathLib0.def LegacyReal.def MemUtils.def
519
520 GM2-LIBS-MODS = ASCII.mod IO.mod Args.mod M2RTS.mod \
521 Assertion.mod NumberIO.mod Break.mod SYSTEM.mod \
522 CmdArgs.mod Scan.mod StrCase.mod \
523 FIO.mod StrIO.mod StrLib.mod TimeString.mod \
524 Environment.mod \
525 FpuIO.mod Debug.mod SysStorage.mod \
526 Storage.mod StdIO.mod SEnvironment.mod\
527 DynamicStrings.mod SFIO.mod SArgs.mod \
528 PushBackInput.mod StringConvert.mod FormatStrings.mod \
529 Builtins.mod MathLib0.mod M2EXCEPTION.mod \
530 RTExceptions.mod SMathLib0.mod RTint.mod COROUTINES.mod \
531 Indexing.mod LMathLib0.mod LegacyReal.mod MemUtils.mod
532
533 GM2-LIBS-C = wrapc.c UnixArgs.c Selective.c choosetemp.c \
534 sckt.c errno.c dtoa.c ldtoa.c \
535 termios.c SysExceptions.c target.c
536
537
538 GM2-LIBS-ISO-MODS = ChanConsts.mod CharClass.mod ClientSocket.mod \
539 ComplexMath.mod \
540 ConvStringReal.mod ConvStringLong.mod \
541 ConvTypes.mod \
542 COROUTINES.mod \
543 EXCEPTIONS.mod \
544 GeneralUserExceptions.mod \
545 IOChan.mod IOLink.mod \
546 IOConsts.mod IOLink.mod IOResult.mod \
547 LongComplexMath.mod \
548 LongConv.mod LongIO.mod \
549 LongMath.mod LongStr.mod \
550 LowLong.mod LowReal.mod LowShort.mod \
551 M2EXCEPTION.mod M2RTS.mod \
552 Processes.mod ProgramArgs.mod \
553 RandomNumber.mod \
554 RawIO.mod \
555 RealConv.mod RealIO.mod \
556 RealMath.mod RealStr.mod \
557 RndFile.mod \
558 RTdata.mod RTentity.mod \
559 RTgen.mod RTgenif.mod RTio.mod \
560 RTfio.mod \
561 Semaphores.mod \
562 SeqFile.mod ServerSocket.mod \
563 ShortComplexMath.mod \
564 SimpleCipher.mod \
565 StdChans.mod SIOResult.mod \
566 SLongIO.mod SRawIO.mod SRealIO.mod \
567 STextIO.mod Storage.mod StreamFile.mod \
568 Strings.mod StringChan.mod SWholeIO.mod \
569 \
570 SShortIO.mod SShortWholeIO.mod \
571 SLongWholeIO.mod ShortWholeIO.mod \
572 ShortIO.mod LongWholeIO.mod \
573 \
574 SysClock.mod \
575 SYSTEM.mod TERMINATION.mod TextIO.mod \
576 TermFile.mod \
577 WholeConv.mod WholeIO.mod WholeStr.mod
578
579 GM2-LIBS-ISO-C = ErrnoCategory.c wrapsock.c wraptime.c
580
581 GM2-LIBS-ULM-MODS-STD = \
582 Plot.mod Archive.mod EtcGroup.mod Strings.mod \
583 RandomGenerator.mod Arguments.mod Files.mod \
584 StrSpec.mod ReadIntCard.mod ASCII.mod \
585 FtdIO.mod StrToNum.mod RealConv.mod Calendar.mod \
586 StrToReal.mod RealInOut.mod CallShell.mod \
587 GetPass.mod SysConf.mod Clock.mod \
588 InOut.mod SysPerror.mod ScanPwfile.mod Conversions.mod \
589 Terminal.mod StdFuncs.mod Passwd.mod \
590 Directories.mod StdIO.mod \
591 PipeIO.mod Environment.mod Storage.mod \
592 RTErrors.mod Functions.mod TimeIO.mod MathLib.mod \
593 M2RTS.mod RTExceptions.mod M2EXCEPTION.mod
594
595 GM2-LIBS-ULM-MODS-SYS = \
596 Errno.mod SysExec.mod SysKill.mod SysPause.mod \
597 SysTermIO.mod SysAccess.mod SysExit.mod SysLink.mod \
598 SysPipe.mod SysTime.mod SysAlarm.mod SysFcntl.mod \
599 SysLocations.mod SysRead.mod SysUnlink.mod \
600 SysBreak.mod SysFork.mod SysLseek.mod SysSetuid.mod \
601 SysWait.mod SysClose.mod SysGetpid.mod Sys.mod \
602 SysSignal.mod SysWrite.mod SysCreat.mod SysGetuid.mod \
603 SysOpen.mod SysStat.mod SysDup.mod SysIoctl.mod \
604 SysPanic.mod SystemTypes.mod UnixString.mod
605
606 GM2-LIBS-PIM-MODS = \
607 CardinalIO.mod Display.mod InOut.mod \
608 Keyboard.mod RealInOut.mod Termbase.mod Terminal.mod \
609 Delay.mod ErrorCode.mod FileSystem.mod \
610 DebugTrace.mod Conversions.mod \
611 DebugPMD.mod LongIO.mod RealConversions.mod \
612 FloatingUtilities.mod Strings.mod \
613 Random.mod TimeDate.mod BitWordOps.mod \
614 BitByteOps.mod BitBlockOps.mod \
615 BlockOps.mod
616
617 GM2-LIBS-PIM-COR-MODS = \
618 Debug.mod SYSTEM.mod TimerHandler.mod \
619 Executive.mod
620
621 GM2-LIBS-MIN-DEFS = M2RTS.def SYSTEM.def
622 GM2-LIBS-MIN-MODS = M2RTS.mod SYSTEM.mod
623 GM2-LIBS-MIN-C = libc.c
624
625 BUILD-ALL-LIBS := build-libs-min build-libs build-libs-iso
626 ARCHIVE-LIBS-MIN := archive-libs-min archive-libs archive-libs-iso
627
628 ifeq ($(MINLIB),yes)
629 BUILD-ALL-LIBS := build-libs-min
630 ARCHIVE-ALL-LIBS := archive-libs-min
631 else
632 # ifeq ($(ULMLIB),no)
633 # BUILD-ALL-LIBS := build-libs build-libs-iso \
634 # build-libs-pim build-libs-coroutines \
635 # build-libs-min
636 # ARCHIVE-ALL-LIBS := archive-libs archive-libs-iso \
637 # archive-libs-pim archive-libs-coroutines \
638 # archive-libs-min
639 # else
640 # BUILD-ALL-LIBS := build-libs build-libs-iso build-libs-ulm \
641 # build-libs-pim build-libs-coroutines \
642 # build-libs-min
643 # ARCHIVE-ALL-LIBS := archive-libs archive-libs-iso archive-libs-ulm \
644 # archive-libs-pim archive-libs-coroutines \
645 # archive-libs-min
646 # endif
647 endif
648
649 # build-libs-ulm \
650 #
651 BUILD-ALL-LIBS := build-libs build-libs-iso \
652 build-libs-pim build-libs-coroutines \
653 build-libs-min
654
655 # archive-libs-ulm \
656 #
657
658 ARCHIVE-ALL-LIBS := archive-libs archive-libs-iso \
659 archive-libs-pim archive-libs-coroutines \
660 archive-libs-min
661 # archive-libs-ulm
662
663
664 gm2lib-plain-real: $(BUILD-ALL-LIBS) $(ARCHIVE-ALL-LIBS)
665 echo xyz123 yes have built $@
666
667 gm2lib-shared-real: $(BUILD-ALL-LIBS) $(ARCHIVE-ALL-LIBS)
668 echo xyz123 yes have built $@
669
670 $(GM2_OBJ)/gm2-libs-min/SYSTEM.def:
671 bash $(GM2_SRC)/tools-src/makeSystem -fpim \
672 $(GM2_SRC)/gm2-libs-min/SYSTEM.def \
673 $(GM2_SRC)/gm2-libs-min/SYSTEM.mod \
674 -I$(GM2_SRC)/gm2-libs-min:$(GM2_SRC)/gm2-libs \
675 "$(GCC_DIR)//xgm2 -B$(GCC_DIR)/stage1/gm2" $@
676
677 $(GM2_OBJ)/gm2-libs/SYSTEM.def:
678 bash $(GM2_SRC)/tools-src/makeSystem -fpim \
679 $(GM2_SRC)/gm2-libs/SYSTEM.def \
680 $(GM2_SRC)/gm2-libs/SYSTEM.mod \
681 -I$(GM2_SRC)/gm2-libs \
682 "$(GCC_DIR)//xgm2 -B$(GCC_DIR)/stage1/gm2" $@
683
684 $(GM2_OBJ)/gm2-libs-iso/SYSTEM.def:
685 bash $(GM2_SRC)/tools-src/makeSystem -fiso \
686 $(GM2_SRC)/gm2-libs-iso/SYSTEM.def \
687 $(GM2_SRC)/gm2-libs-iso/SYSTEM.mod \
688 -I$(GM2_SRC)/gm2-libs-iso:$(GM2_SRC)/gm2-libs: \
689 "$(GCC_DIR)/xgm2 -B$(GCC_DIR)/stage1/gm2" $@
690
691 build-libs-min: $(GM2_OBJ)/gm2-libs-min/SYSTEM.def \
692 $(GM2-LIBS-MIN-MODS:%.mod=$(GM2_OBJ)/gm2-libs-min/%.o) \
693 $(GM2-LIBS-MIN-C:%.c=$(GM2_OBJ)/gm2-libs-min/%.o) \
694 $(GM2-LIBS-MIN-MODS:%.mod=$(GM2_OBJ)/gm2-libs-min/O2/%.o) \
695 $(GM2-LIBS-MIN-C:%.c=$(GM2_OBJ)/gm2-libs-min/O2/%.o)
696
697 archive-libs-min: build-libs-min
698 $(AR_CREATE_FOR_TARGET) $(GM2_OBJ)/gm2-libs-min/libgm2min.a \
699 $(GM2-LIBS-MIN-MODS:%.mod=$(GM2_OBJ)/gm2-libs-min/%.o) \
700 $(GM2-LIBS-MIN-C:%.c=$(GM2_OBJ)/gm2-libs-min/%.o)
701 $(RANLIB_FOR_TARGET) $(GM2_OBJ)/gm2-libs-min/libgm2min.a
702 $(AR_CREATE_FOR_TARGET) $(GM2_OBJ)/gm2-libs-min/O2/libgm2min.a \
703 $(GM2-LIBS-MIN-MODS:%.mod=$(GM2_OBJ)/gm2-libs-min/O2/%.o) \
704 $(GM2-LIBS-MIN-C:%.c=$(GM2_OBJ)/gm2-libs-min/O2/%.o)
705 $(RANLIB_FOR_TARGET) $(GM2_OBJ)/gm2-libs-min/O2/libgm2min.a
706
707 build-libs: $(GM2_OBJ)/gm2-libs/SYSTEM.def \
708 $(GM2_OBJ)/gm2-libs/gm2-libs-host.h \
709 $(GM2-LIBS-MODS:%.mod=$(GM2_OBJ)/gm2-libs/%.o) \
710 $(GM2-LIBS-C:%.c=$(GM2_OBJ)/gm2-libs/%.o) \
711 $(GM2-LIBS-MODS:%.mod=$(GM2_OBJ)/gm2-libs/O2/%.o) \
712 $(GM2-LIBS-C:%.c=$(GM2_OBJ)/gm2-libs/O2/%.o) \
713 $(GM2-LIBS-MODS:%.mod=$(GM2_OBJ)/gm2-libs/SO/%.o) \
714 $(GM2-LIBS-C:%.c=$(GM2_OBJ)/gm2-libs/SO/%.o) \
715 $(GM2-LIBS-MODS:%.mod=$(GM2_OBJ)/gm2-libs/SO_O2/%.o) \
716 $(GM2-LIBS-C:%.c=$(GM2_OBJ)/gm2-libs/SO_O2/%.o)
717
718 archive-libs: build-libs
719 $(AR_CREATE_FOR_TARGET) $(GM2_OBJ)/gm2-libs/libgm2.a \
720 $(GM2-LIBS-MODS:%.mod=$(GM2_OBJ)/gm2-libs/%.o) \
721 $(GM2-LIBS-C:%.c=$(GM2_OBJ)/gm2-libs/%.o)
722 $(RANLIB_FOR_TARGET) $(GM2_OBJ)/gm2-libs/libgm2.a
723 $(AR_CREATE_FOR_TARGET) $(GM2_OBJ)/gm2-libs/O2/libgm2.a \
724 $(GM2-LIBS-MODS:%.mod=$(GM2_OBJ)/gm2-libs/O2/%.o) \
725 $(GM2-LIBS-C:%.c=$(GM2_OBJ)/gm2-libs/O2/%.o)
726 $(RANLIB_FOR_TARGET) $(GM2_OBJ)/gm2-libs/O2/libgm2.a
727 $(AR_CREATE_FOR_TARGET) $(GM2_OBJ)/gm2-libs/SO/libgm2.a \
728 $(GM2-LIBS-MODS:%.mod=$(GM2_OBJ)/gm2-libs/SO/%.o) \
729 $(GM2-LIBS-C:%.c=$(GM2_OBJ)/gm2-libs/SO/%.o)
730 $(RANLIB_FOR_TARGET) $(GM2_OBJ)/gm2-libs/SO/libgm2.a
731 $(AR_CREATE_FOR_TARGET) $(GM2_OBJ)/gm2-libs/SO_O2/libgm2.a \
732 $(GM2-LIBS-MODS:%.mod=$(GM2_OBJ)/gm2-libs/SO_O2/%.o) \
733 $(GM2-LIBS-C:%.c=$(GM2_OBJ)/gm2-libs/SO_O2/%.o)
734 $(RANLIB_FOR_TARGET) $(GM2_OBJ)/gm2-libs/SO_O2/libgm2.a
735
736 $(GM2_OBJ)/gm2-libs/libgm2.a: build-libs
737 $(AR_FOR_TARGET) cr $@ $(GM2-LIBS-MODS:%.mod=$(GM2_OBJ)/gm2-libs/%.o) \
738 $(GM2-LIBS-C:%.c=$(GM2_OBJ)/gm2-libs/%.o)
739 $(RANLIB) $@
740
741 build-libs-iso: $(GM2_OBJ)/gm2-libs-iso/SYSTEM.def \
742 $(GM2-LIBS-ISO-MODS:%.mod=$(GM2_OBJ)/gm2-libs-iso/%.o) \
743 $(GM2-LIBS-ISO-C:%.c=$(GM2_OBJ)/gm2-libs-iso/%.o) \
744 $(GM2-LIBS-ISO-MODS:%.mod=$(GM2_OBJ)/gm2-libs-iso/SO/%.o) \
745 $(GM2-LIBS-ISO-C:%.c=$(GM2_OBJ)/gm2-libs-iso/SO/%.o) \
746 $(GM2-LIBS-ISO-MODS:%.mod=$(GM2_OBJ)/gm2-libs-iso/O2/%.o) \
747 $(GM2-LIBS-ISO-C:%.c=$(GM2_OBJ)/gm2-libs-iso/O2/%.o)
748
749 archive-libs-iso: build-libs-iso
750 $(AR_CREATE_FOR_TARGET) $(GM2_OBJ)/gm2-libs-iso/libgm2iso.a \
751 $(GM2-LIBS-ISO-MODS:%.mod=$(GM2_OBJ)/gm2-libs-iso/%.o) \
752 $(GM2-LIBS-ISO-C:%.c=$(GM2_OBJ)/gm2-libs-iso/%.o)
753 $(RANLIB_FOR_TARGET) $(GM2_OBJ)/gm2-libs-iso/libgm2iso.a
754 $(AR_CREATE_FOR_TARGET) $(GM2_OBJ)/gm2-libs-iso/SO/libgm2iso.a \
755 $(GM2-LIBS-ISO-MODS:%.mod=$(GM2_OBJ)/gm2-libs-iso/SO/%.o) \
756 $(GM2-LIBS-ISO-C:%.c=$(GM2_OBJ)/gm2-libs-iso/SO/%.o)
757 $(RANLIB_FOR_TARGET) $(GM2_OBJ)/gm2-libs-iso/libgm2iso.a
758 $(AR_CREATE_FOR_TARGET) $(GM2_OBJ)/gm2-libs-iso/O2/libgm2iso.a \
759 $(GM2-LIBS-ISO-MODS:%.mod=$(GM2_OBJ)/gm2-libs-iso/O2/%.o) \
760 $(GM2-LIBS-ISO-C:%.c=$(GM2_OBJ)/gm2-libs-iso/O2/%.o)
761 $(RANLIB_FOR_TARGET) $(GM2_OBJ)/gm2-libs-iso/O2/libgm2iso.a
762
763 build-libs-ulm: $(GM2-LIBS-ULM-MODS-STD:%.mod=$(GM2_OBJ)/ulm-lib-gm2/std/%.o) \
764 $(GM2-LIBS-ULM-MODS-SYS:%.mod=$(GM2_OBJ)/ulm-lib-gm2/sys/%.o) \
765 $(GM2_OBJ)/ulm-lib-gm2/sys/SYSTEM.o
766
767 archive-libs-ulm: build-libs-ulm
768 $(AR_CREATE_FOR_TARGET) $(GM2_OBJ)/ulm-lib-gm2/libgm2ulm.a \
769 $(GM2-LIBS-ULM-MODS-STD:%.mod=$(GM2_OBJ)/ulm-lib-gm2/std/%.o) \
770 $(GM2-LIBS-ULM-MODS-SYS:%.mod=$(GM2_OBJ)/ulm-lib-gm2/sys/%.o) \
771 $(GM2_OBJ)/ulm-lib-gm2/sys/SYSTEM.o
772 $(RANLIB_FOR_TARGET) $(GM2_OBJ)/ulm-lib-gm2/libgm2ulm.a
773
774 build-libs-pim: $(GM2-LIBS-PIM-MODS:%.mod=$(GM2_OBJ)/gm2-libs-pim/%.o) \
775 $(GM2_OBJ)/gm2-libs-pim/Break.o \
776 $(GM2-LIBS-PIM-MODS:%.mod=$(GM2_OBJ)/gm2-libs-pim/O2/%.o) \
777 $(GM2_OBJ)/gm2-libs-pim/O2/Break.o \
778 $(GM2-LIBS-PIM-MODS:%.mod=$(GM2_OBJ)/gm2-libs-pim/SO/%.o) \
779 $(GM2_OBJ)/gm2-libs-pim/SO/Break.o \
780 $(GM2-LIBS-PIM-MODS:%.mod=$(GM2_OBJ)/gm2-libs-pim/SO_O2/%.o) \
781 $(GM2_OBJ)/gm2-libs-pim/SO_O2/Break.o
782
783 archive-libs-pim: build-libs-pim
784 $(AR_CREATE_FOR_TARGET) $(GM2_OBJ)/gm2-libs-pim/libgm2pim.a \
785 $(GM2-LIBS-PIM-MODS:%.mod=$(GM2_OBJ)/gm2-libs-pim/%.o) \
786 $(GM2_OBJ)/gm2-libs-pim/Break.o
787 $(RANLIB_FOR_TARGET) $(GM2_OBJ)/gm2-libs-pim/libgm2pim.a
788 $(AR_CREATE_FOR_TARGET) $(GM2_OBJ)/gm2-libs-pim/O2/libgm2pim.a \
789 $(GM2-LIBS-PIM-MODS:%.mod=$(GM2_OBJ)/gm2-libs-pim/O2/%.o) \
790 $(GM2_OBJ)/gm2-libs-pim/O2/Break.o
791 $(RANLIB_FOR_TARGET) $(GM2_OBJ)/gm2-libs-pim/O2/libgm2pim.a
792 $(AR_CREATE_FOR_TARGET) $(GM2_OBJ)/gm2-libs-pim/SO/libgm2pim.a \
793 $(GM2-LIBS-PIM-MODS:%.mod=$(GM2_OBJ)/gm2-libs-pim/SO/%.o) \
794 $(GM2_OBJ)/gm2-libs-pim/SO/Break.o
795 $(RANLIB_FOR_TARGET) $(GM2_OBJ)/gm2-libs-pim/SO/libgm2pim.a
796 $(AR_CREATE_FOR_TARGET) $(GM2_OBJ)/gm2-libs-pim/SO_O2/libgm2pim.a \
797 $(GM2-LIBS-PIM-MODS:%.mod=$(GM2_OBJ)/gm2-libs-pim/SO_O2/%.o) \
798 $(GM2_OBJ)/gm2-libs-pim/SO_O2/Break.o
799 $(RANLIB_FOR_TARGET) $(GM2_OBJ)/gm2-libs-pim/SO_O2/libgm2pim.a
800
801 build-libs-coroutines: $(GM2-LIBS-PIM-COR-MODS:%.mod=$(GM2_OBJ)/gm2-libs-coroutines/%.o) \
802 $(GM2_OBJ)/gm2-libs-coroutines/KeyBoardLEDs.o \
803 $(GM2-LIBS-PIM-COR-MODS:%.mod=$(GM2_OBJ)/gm2-libs-coroutines/O2/%.o) \
804 $(GM2_OBJ)/gm2-libs-coroutines/O2/KeyBoardLEDs.o \
805 $(GM2-LIBS-PIM-COR-MODS:%.mod=$(GM2_OBJ)/gm2-libs-coroutines/SO/%.o) \
806 $(GM2_OBJ)/gm2-libs-coroutines/SO/KeyBoardLEDs.o \
807 $(GM2-LIBS-PIM-COR-MODS:%.mod=$(GM2_OBJ)/gm2-libs-coroutines/SO_O2/%.o) \
808 $(GM2_OBJ)/gm2-libs-coroutines/SO_O2/KeyBoardLEDs.o
809
810 archive-libs-coroutines: build-libs-coroutines
811 $(AR_CREATE_FOR_TARGET) $(GM2_OBJ)/gm2-libs-coroutines/libgm2pco.a \
812 $(GM2-LIBS-PIM-COR-MODS:%.mod=$(GM2_OBJ)/gm2-libs-coroutines/%.o) \
813 $(GM2_OBJ)/gm2-libs-coroutines/KeyBoardLEDs.o
814 $(RANLIB_FOR_TARGET) $(GM2_OBJ)/gm2-libs-coroutines/libgm2pco.a
815 $(AR_CREATE_FOR_TARGET) $(GM2_OBJ)/gm2-libs-coroutines/O2/libgm2pco.a \
816 $(GM2-LIBS-PIM-COR-MODS:%.mod=$(GM2_OBJ)/gm2-libs-coroutines/O2/%.o) \
817 $(GM2_OBJ)/gm2-libs-coroutines/O2/KeyBoardLEDs.o
818 $(RANLIB_FOR_TARGET) $(GM2_OBJ)/gm2-libs-coroutines/O2/libgm2pco.a
819 $(AR_CREATE_FOR_TARGET) $(GM2_OBJ)/gm2-libs-coroutines/SO/libgm2pco.a \
820 $(GM2-LIBS-PIM-COR-MODS:%.mod=$(GM2_OBJ)/gm2-libs-coroutines/SO/%.o) \
821 $(GM2_OBJ)/gm2-libs-coroutines/SO/KeyBoardLEDs.o
822 $(RANLIB_FOR_TARGET) $(GM2_OBJ)/gm2-libs-coroutines/SO/libgm2pco.a
823 $(AR_CREATE_FOR_TARGET) $(GM2_OBJ)/gm2-libs-coroutines/SO_O2/libgm2pco.a \
824 $(GM2-LIBS-PIM-COR-MODS:%.mod=$(GM2_OBJ)/gm2-libs-coroutines/SO_O2/%.o) \
825 $(GM2_OBJ)/gm2-libs-coroutines/SO_O2/KeyBoardLEDs.o
826 $(RANLIB_FOR_TARGET) $(GM2_OBJ)/gm2-libs-coroutines/SO_O2/libgm2pco.a
827
828 $(GM2_OBJ)/gm2-libs-pim/Break.o: $(GM2_SRC)/gm2-libs-pim/Break.c
829 $(GCC_FOR_TARGET) -DBUILD_GM2_LIBS_TARGET -DBUILD_GM2_LIBS -I$(GM2_OBJ)/gm2-libs -c $(CFLAGS) $< -o $@
830
831 $(GM2_OBJ)/gm2-libs-coroutines/KeyBoardLEDs.o: $(GM2_SRC)/gm2-libs-coroutines/KeyBoardLEDs.c
832 $(GCC_FOR_TARGET) -DBUILD_GM2_LIBS_TARGET -DBUILD_GM2_LIBS -I$(GM2_OBJ)/gm2-libs -c $(CFLAGS) $< -o $@
833
834 $(GM2_OBJ)/gm2-libs-coroutines/O2/KeyBoardLEDs.o: $(GM2_SRC)/gm2-libs-coroutines/KeyBoardLEDs.c
835 $(GCC_FOR_TARGET) -DBUILD_GM2_LIBS_TARGET -DBUILD_GM2_LIBS $(O2) -Igm2/gm2-libs -c $(CFLAGS) $< -o $@
836
837 $(GM2_OBJ)/gm2-libs-coroutines/SO/KeyBoardLEDs.o: $(GM2_SRC)/gm2-libs-coroutines/KeyBoardLEDs.c
838 $(GCC_FOR_TARGET) -DBUILD_GM2_LIBS_TARGET -DBUILD_GM2_LIBS $(SO) -Igm2/gm2-libs -c $(CFLAGS) $< -o $@
839
840 $(GM2_OBJ)/gm2-libs-coroutines/SO_O2/KeyBoardLEDs.o: $(GM2_SRC)/gm2-libs-coroutines/KeyBoardLEDs.c
841 $(GCC_FOR_TARGET) -DBUILD_GM2_LIBS_TARGET -DBUILD_GM2_LIBS $(SO_O2) -Igm2/gm2-libs -c $(CFLAGS) $< -o $@
842
843 $(GM2_OBJ)/ulm-lib-gm2/sys/SYSTEM.o: $(GM2_SRC)/ulm-lib-gm2/sys/SYSTEM.c
844 $(GCC_FOR_TARGET) -DBUILD_GM2_LIBS_TARGET -DBUILD_GM2_LIBS -c $(CFLAGS) $< -o $@
845
846 $(GM2_OBJ)/ulm-lib-gm2/sys/SYSTEM.c:
847 bash $(GM2_SRC)/tools-src/createUlmSys $(GM2_OBJ)/gm2/gm2-libs/gm2-libs-host.h > $@
848
849 $(GM2_OBJ)/ulm-lib-gm2/sys/%.o: $(GM2_SRC)/ulm-lib-gm2/sys/%.mod
850 $(XGM2_1) $(GM2_FLAGS) -c -I$(GM2_SRC)/ulm-lib-gm2/sys -I$(GM2_SRC)/gm2-libs $< -o $@
851
852 $(GM2_OBJ)/ulm-lib-gm2/std/%.o: $(GM2_SRC)/ulm-lib-gm2/std/%.mod
853 $(XGM2_1) $(GM2_FLAGS) -c -I$(GM2_SRC)/ulm-lib-gm2/std:$(GM2_SRC)/ulm-lib-gm2/sys:$(GM2_SRC)/gm2-libs $< -o $@
854
855 $(GM2_OBJ)/gm2-libs-coroutines/%.o: $(GM2_SRC)/gm2-libs-coroutines/%.mod
856 $(XGM2_1) $(GM2_FLAGS) -c -I$(GM2_SRC)/gm2-libs-coroutines:$(GM2_SRC)/gm2-libs:$(GM2_SRC)/gm2-libs-pim:$(GM2_SRC)/gm2-libs-iso $< -o $@
857
858 $(GM2_OBJ)/gm2-libs-coroutines/O2/%.o: $(GM2_SRC)/gm2-libs-coroutines/%.mod
859 $(XGM2_1) $(O2) $(GM2_FLAGS) -c -I$(GM2_SRC)/gm2-libs-coroutines:$(GM2_SRC)/gm2-libs:$(GM2_SRC)/gm2-libs-pim:$(GM2_SRC)/gm2-libs-iso $< -o $@
860
861 $(GM2_OBJ)/gm2-libs-coroutines/SO/%.o: $(GM2_SRC)/gm2-libs-coroutines/%.mod
862 $(XGM2_1) $(SO) $(GM2_FLAGS) -c -I$(GM2_SRC)/gm2-libs-coroutines:$(GM2_SRC)/gm2-libs:$(GM2_SRC)/gm2-libs-pim:$(GM2_SRC)/gm2-libs-iso $< -o $@
863
864 $(GM2_OBJ)/gm2-libs-coroutines/SO_O2/%.o: $(GM2_SRC)/gm2-libs-coroutines/%.mod
865 $(XGM2_1) $(SO_O2) $(GM2_FLAGS) -c -I$(GM2_SRC)/gm2-libs-coroutines:$(GM2_SRC)/gm2-libs:$(GM2_SRC)/gm2-libs-pim:$(GM2_SRC)/gm2-libs-iso $< -o $@
866
867 $(GM2_OBJ)/gm2-libs-min/%.o: $(GM2_SRC)/gm2-libs-min/%.c
868 $(GCC_FOR_TARGET) $(GM2_OS) -B./ -c -g -Wall $< -o $@
869
870 $(GM2_OBJ)/gm2-libs-min/%.o: $(GM2_SRC)/gm2-libs-min/%.mod
871 $(XGM2_1) $(GM2_MIN_FLAGS) -c -I$(GM2_OBJ)/gm2-libs-min:$(GM2_SRC)/gm2-libs-min:$(GM2_SRC)/gm2-libs -c -g $< -o $@
872
873 $(GM2_OBJ)/gm2-libs-min/O2/%.o: $(GM2_SRC)/gm2-libs-min/%.c
874 $(GCC_FOR_TARGET) $(GM2_OS) -B./ -c -g -Wall $< -o $@
875
876 $(GM2_OBJ)/gm2-libs-min/O2/%.o: $(GM2_SRC)/gm2-libs-min/%.mod
877 $(XGM2_1) $(GM2_MIN_FLAGS) -c -I$(GM2_OBJ)/gm2-libs-min:$(GM2_SRC)/gm2-libs-min:$(GM2_SRC)/gm2-libs -c -g $< -o $@
878
879 $(GM2_OBJ)/gm2-libs/%.o: $(GM2_SRC)/gm2-libs/%.mod
880 $(XGM2_1) $(GM2_FLAGS) -c -I$(GM2_SRC)/gm2-compiler -I$(GM2_OBJ)/gm2-libs:$(GM2_SRC)/gm2-libs:$(GM2_SRC)/gm2-libs-iso $< -o $@
881
882 $(GM2_OBJ)/gm2-libs/wrapc.o: $(GM2_SRC)/gm2-libs-ch/wrapc.c $(GM2_OBJ)/gm2-libs/gm2-libs-target.h
883 $(GCC_FOR_TARGET) -DBUILD_GM2_LIBS_TARGET -DBUILD_GM2_LIBS -c $(CFLAGS) -I$(GM2_SRC)/p2c/p2c-src/include -I$(GM2_SRC) -I$(GM2_SRC)/gm2 -I$(GM2_OBJ)/gm2-libs -I$(GM2_OBJ)/gm2-libiberty -I$(GM2_OBJ)/gm2-libs-boot -I$(GCC_DIR) $(GCCINCLUDES) $< -o $@
884
885 $(GM2_OBJ)/gm2-libs/UnixArgs.o: $(GM2_SRC)/gm2-libs-ch/UnixArgs.c $(GM2_OBJ)/gm2-libs/gm2-libs-target.h
886 $(GCC_FOR_TARGET) -DBUILD_GM2_LIBS_TARGET -DBUILD_GM2_LIBS -c $(CFLAGS) -I$(GM2_SRC)/p2c/p2c-src/include -I$(GM2_SRC) -I$(GM2_SRC)/gm2 -I$(GM2_OBJ)/gm2-libs -I$(GM2_OBJ)/gm2-libiberty -I$(GM2_OBJ)/gm2-libs-boot -I$(GCC_DIR) $(GCCINCLUDES) $< -o $@
887
888 $(GM2_OBJ)/gm2-libs/Selective.o: $(GM2_SRC)/gm2-libs-ch/Selective.c $(GM2_OBJ)/gm2-libs/gm2-libs-target.h
889 $(GCC_FOR_TARGET) -DBUILD_GM2_LIBS_TARGET -DBUILD_GM2_LIBS -c $(CFLAGS) -I$(GM2_SRC)/p2c/p2c-src/include -I$(GM2_SRC) -I$(GM2_SRC)/gm2 -I$(GM2_OBJ)/gm2-libs -I$(GM2_OBJ)/gm2-libiberty -I$(GM2_OBJ)/gm2-libs-boot -I$(GCC_DIR) $(GCCINCLUDES) $< -o $@
890
891 $(GM2_OBJ)/gm2-libs/sckt.o: $(GM2_SRC)/gm2-libs-ch/sckt.c $(GM2_OBJ)/gm2-libs/gm2-libs-target.h
892 $(GCC_FOR_TARGET) -DBUILD_GM2_LIBS_TARGET -DBUILD_GM2_LIBS -c $(CFLAGS) -I$(GM2_SRC)/p2c/p2c-src/include -I$(GM2_SRC) -I$(GM2_SRC)/gm2 -I$(GM2_OBJ)/gm2-libs -I$(GM2_OBJ)/gm2-libiberty -I$(GM2_OBJ)/gm2-libs-boot -I$(GCC_DIR) $(GCCINCLUDES) $< -o $@
893
894 $(GM2_OBJ)/gm2-libs/choosetemp.o: $(GM2_SRC)/gm2-libs-ch/choosetemp.c $(GM2_OBJ)/gm2-libs/gm2-libs-target.h
895 $(GCC_FOR_TARGET) -DBUILD_GM2_LIBS_TARGET -DBUILD_GM2_LIBS -c $(CFLAGS) -I$(GM2_SRC)/p2c/p2c-src/include -I$(GM2_SRC) -I$(GM2_SRC)/gm2 -I$(GM2_OBJ)/gm2-libs -I$(GM2_OBJ)/gm2-libiberty -I$(GM2_OBJ)/gm2-libs-boot -I$(GCC_DIR) $(GCCINCLUDES) $< -o $@
896
897 $(GM2_OBJ)/gm2-libs/errno.o: $(GM2_SRC)/gm2-libs-ch/errno.c $(GM2_OBJ)/gm2-libs/gm2-libs-target.h
898 $(GCC_FOR_TARGET) -DBUILD_GM2_LIBS_TARGET -DBUILD_GM2_LIBS -c $(CFLAGS) -I$(GM2_SRC)/p2c/p2c-src/include -I$(GM2_SRC) -I$(GM2_SRC)/gm2 -I$(GM2_OBJ)/gm2-libs -I$(GM2_OBJ)/gm2-libiberty -I$(GM2_OBJ)/gm2-libs-boot -I$(GCC_DIR) $(GCCINCLUDES) $< -o $@
899
900 $(GM2_OBJ)/gm2-libs/dtoa.o: $(GM2_SRC)/gm2-libs-ch/dtoa.c $(GM2_OBJ)/gm2-libs/gm2-libs-target.h
901 $(GCC_FOR_TARGET) -DBUILD_GM2_LIBS_TARGET -DBUILD_GM2_LIBS -c $(CFLAGS) -I$(GM2_SRC)/p2c/p2c-src/include -I$(GM2_SRC) -I$(GM2_SRC)/gm2 -I$(GM2_OBJ)/gm2-libs -I$(GM2_OBJ)/gm2-libiberty -I$(GM2_OBJ)/gm2-libs-boot -I$(GCC_DIR) $(GCCINCLUDES) $< -o $@
902
903 $(GM2_OBJ)/gm2-libs/ldtoa.o: $(GM2_SRC)/gm2-libs-ch/ldtoa.c $(GM2_OBJ)/gm2-libs/gm2-libs-target.h
904 $(GCC_FOR_TARGET) -DBUILD_GM2_LIBS_TARGET -DBUILD_GM2_LIBS -c $(CFLAGS) -I$(GM2_SRC)/p2c/p2c-src/include -I$(GM2_SRC) -I$(GM2_SRC)/gm2 -I$(GM2_OBJ)/gm2-libs -I$(GM2_OBJ)/gm2-libiberty -I$(GM2_OBJ)/gm2-libs-boot -I$(GCC_DIR) $(GCCINCLUDES) $< -o $@
905
906 $(GM2_OBJ)/gm2-libs/termios.o: $(GM2_SRC)/gm2-libs-ch/termios.c $(GM2_OBJ)/gm2-libs/gm2-libs-target.h
907 $(GCC_FOR_TARGET) -DBUILD_GM2_LIBS_TARGET -DBUILD_GM2_LIBS -c $(CFLAGS) -I$(GM2_SRC)/p2c/p2c-src/include -I$(GM2_SRC) -I$(GM2_SRC)/gm2 -I$(GM2_OBJ)/gm2-libs -I$(GM2_OBJ)/gm2-libiberty -I$(GM2_OBJ)/gm2-libs-boot -I$(GCC_DIR) $(GCCINCLUDES) $< -o $@
908
909 $(GM2_OBJ)/gm2-libs/SysExceptions.o: $(GM2_SRC)/gm2-libs-ch/SysExceptions.c $(GM2_OBJ)/gm2-libs/gm2-libs-target.h
910 $(GCC_FOR_TARGET) -DBUILD_GM2_LIBS_TARGET -DBUILD_GM2_LIBS -c $(CFLAGS) -I$(GM2_SRC)/p2c/p2c-src/include -I$(GM2_SRC) -I$(GM2_SRC)/gm2 -I$(GM2_OBJ)/gm2-libs -I$(GM2_OBJ)/gm2-libiberty -I$(GM2_OBJ)/gm2-libs-boot -I$(GCC_DIR) $(GCCINCLUDES) $< -o $@
911
912 $(GM2_OBJ)/gm2-libs/target.o: $(GM2_SRC)/gm2-libs-ch/target.c $(GM2_OBJ)/gm2-libs/gm2-libs-target.h
913 $(GCC_FOR_TARGET) -DBUILD_GM2_LIBS_TARGET -DBUILD_GM2_LIBS -c $(CFLAGS) -I$(GM2_SRC)/p2c/p2c-src/include -I$(GM2_SRC) -I$(GM2_SRC)/gm2 -I$(GM2_OBJ)/gm2-libs -I$(GM2_OBJ)/gm2-libiberty -I$(GM2_OBJ)/gm2-libs-boot -I$(GCC_DIR) $(GCCINCLUDES) $< -o $@
914
915 $(GM2_OBJ)/gm2-libs/DynamicStrings.o: $(GM2_SRC)/gm2-libs/DynamicStrings.mod
916 $(XGM2_1) $(GM2_FLAGS) -c -I$(GM2_SRC)/gm2-compiler -I$(GM2_OBJ)/gm2-libs:$(GM2_SRC)/gm2-libs:$(GM2_SRC)/gm2-libs-iso $(GM2_DEBUG_STRMEM) $< -o $@
917
918 $(GM2_OBJ)/gm2-libs/FormatStrings.o: $(GM2_SRC)/gm2-libs/FormatStrings.mod
919 $(XGM2_1) $(GM2_FLAGS) -c -I$(GM2_SRC)/gm2-compiler -I$(GM2_OBJ)/gm2-libs:$(GM2_SRC)/gm2-libs:$(GM2_SRC)/gm2-libs-iso $(GM2_DEBUG_STRMEM) $< -o $@
920
921 $(GM2_OBJ)/gm2-libs/O2/%.o: $(GM2_SRC)/gm2-libs/%.mod
922 $(XGM2_1) $(GM2_FLAGS) -c -I$(GM2_SRC)/gm2-compiler -I$(GM2_OBJ)/gm2-libs:$(GM2_SRC)/gm2-libs:$(GM2_SRC)/gm2-libs-iso $(O2) $< -o $@
923
924 $(GM2_OBJ)/gm2-libs/O2/%.o: $(GM2_SRC)/gm2-libs-ch/%.c $(GM2_OBJ)/gm2-libs/gm2-libs-target.h
925 $(GCC_FOR_TARGET) -DBUILD_GM2_LIBS_TARGET -DBUILD_GM2_LIBS -c $(CFLAGS) -I$(GM2_SRC)/p2c/p2c-src/include -I$(GM2_SRC) -I$(GM2_SRC)/gm2 -I$(GM2_OBJ)/gm2-libs -I$(GM2_OBJ)/gm2-libiberty -I$(GM2_OBJ)/gm2-libs-boot -I$(GCC_DIR) $(GCCINCLUDES) $(O2) $< -o $@
926
927 $(GM2_OBJ)/gm2-libs/SO/%.o: $(GM2_SRC)/gm2-libs/%.mod
928 $(XGM2_1) $(GM2_FLAGS) -c -I$(GM2_SRC)/gm2-compiler -I$(GM2_OBJ)/gm2-libs:$(GM2_SRC)/gm2-libs:$(GM2_SRC)/gm2-libs-iso $(SO) $< -o $@
929
930 $(GM2_OBJ)/gm2-libs/SO/%.o: $(GM2_SRC)/gm2-libs-ch/%.c $(GM2_OBJ)/gm2-libs/gm2-libs-target.h
931 $(GCC_FOR_TARGET) -DBUILD_GM2_LIBS_TARGET -DBUILD_GM2_LIBS -c $(CFLAGS) -I$(GM2_SRC)/p2c/p2c-src/include -I$(GM2_SRC) -I$(GM2_SRC)/gm2 -I$(GM2_OBJ)/gm2-libs -I$(GM2_OBJ)/gm2-libiberty -I$(GM2_OBJ)/gm2-libs-boot -I$(GCC_DIR) $(GCCINCLUDES) $(SO) $< -o $@
932
933 $(GM2_OBJ)/gm2-libs/SO_O2/%.o: $(GM2_SRC)/gm2-libs/%.mod
934 $(XGM2_1) $(GM2_FLAGS) -c -I$(GM2_SRC)/gm2-compiler -I$(GM2_OBJ)/gm2-libs:$(GM2_SRC)/gm2-libs:$(GM2_SRC)/gm2-libs-iso $(SO_O2) $< -o $@
935
936 $(GM2_OBJ)/gm2-libs/SO_O2/%.o: $(GM2_SRC)/gm2-libs-ch/%.c $(GM2_OBJ)/gm2-libs/gm2-libs-target.h
937 $(GCC_FOR_TARGET) -DBUILD_GM2_LIBS_TARGET -DBUILD_GM2_LIBS -c $(CFLAGS) -I$(GM2_SRC)/p2c/p2c-src/include -I$(GM2_SRC) -I$(GM2_SRC)/gm2 -I$(GM2_OBJ)/gm2-libs -I$(GM2_OBJ)/gm2-libiberty -I$(GM2_OBJ)/gm2-libs-boot -I$(GCC_DIR) $(GCCINCLUDES) $(SO_O2) $< -o $@
938
939 $(GM2_OBJ)/gm2-libs-iso/%.o: $(GM2_SRC)/gm2-libs-iso/%.c $(GM2_OBJ)/gm2-libs/gm2-libs-target.h
940 $(GCC_FOR_TARGET) -DBUILD_GM2_LIBS_TARGET -DBUILD_GM2_LIBS -c $(CFLAGS) -I$(GM2_OBJ)/gm2-libs -I$(GM2_SRC) -I$(GM2_SRC)/p2c/p2c-src/include -I$(GM2_OBJ)/gm2-libs-boot $(GCCINCLUDES) $< -o $@
941
942 $(GM2_OBJ)/gm2-libs-iso/%.o: $(GM2_SRC)/gm2-libs-iso/%.mod
943 $(XGM2_1) $(GM2_ISO_FLAGS) -c -I$(GM2_OBJ)/gm2-libs-iso:$(GM2_SRC)/gm2-libs-iso -I$(GM2_SRC)/gm2-libs $< -o $@
944
945 $(GM2_OBJ)/gm2-libs-iso/SO/%.o: $(GM2_SRC)/gm2-libs-iso/%.c $(GM2_OBJ)/gm2-libs/gm2-libs-target.h
946 $(GCC_FOR_TARGET) -DBUILD_GM2_LIBS_TARGET -DBUILD_GM2_LIBS -c $(CFLAGS) -I$(GM2_OBJ)/gm2-libs -I$(GM2_SRC) -I$(GM2_SRC)/p2c/p2c-src/include -I$(GM2_OBJ)/gm2-libs-boot $(GCCINCLUDES) $(SO) $< -o $@
947
948 $(GM2_OBJ)/gm2-libs-iso/SO/%.o: $(GM2_SRC)/gm2-libs-iso/%.mod
949 $(XGM2_1) $(GM2_ISO_FLAGS) -c -I$(GM2_OBJ)/gm2-libs-iso:$(GM2_SRC)/gm2-libs-iso -I$(GM2_SRC)/gm2-libs $(SO) $< -o $@
950
951 $(GM2_OBJ)/gm2-libs-iso/O2/%.o: $(GM2_SRC)/gm2-libs-iso/%.c $(GM2_OBJ)/gm2-libs/gm2-libs-target.h
952 $(GCC_FOR_TARGET) -DBUILD_GM2_LIBS_TARGET -DBUILD_GM2_LIBS -c $(CFLAGS) -I$(GM2_OBJ)/gm2-libs -I$(GM2_SRC) -I$(GM2_SRC)/p2c/p2c-src/include -I$(GM2_OBJ)/gm2-libs-boot $(GCCINCLUDES) $(O2) $< -o $@
953
954 $(GM2_OBJ)/gm2-libs-iso/O2/%.o: $(GM2_SRC)/gm2-libs-iso/%.mod
955 $(XGM2_1) $(GM2_ISO_FLAGS) -c -I$(GM2_OBJ)/gm2-libs-iso:$(GM2_SRC)/gm2-libs-iso -I$(GM2_SRC)/gm2-libs $(O2) $< -o $@
956
957 $(GM2_OBJ)/gm2-libs-iso/SO_O2/%.o: $(GM2_SRC)/gm2-libs-iso/%.c $(GM2_OBJ)/gm2-libs/gm2-libs-target.h
958 $(GCC_FOR_TARGET) -DBUILD_GM2_LIBS_TARGET -DBUILD_GM2_LIBS -c $(CFLAGS) -I$(GM2_OBJ)/gm2-libs -I$(GM2_SRC) -I$(GM2_SRC)/p2c/p2c-src/include -I$(GM2_OBJ)/gm2-libs-boot $(GCCINCLUDES) $(SO_O2) $< -o $@
959
960 $(GM2_OBJ)/gm2-libs-iso/SO_O2/%.o: $(GM2_SRC)/gm2-libs-iso/%.mod
961 $(XGM2_1) $(GM2_ISO_FLAGS) -c -I$(GM2_OBJ)/gm2-libs-iso:$(GM2_SRC)/gm2-libs-iso -I$(GM2_SRC)/gm2-libs $(SO_O2) $< -o $@
962
963 $(GM2_OBJ)/gm2-libs-pim/%.o: $(GM2_SRC)/gm2-libs-pim/%.c $(GM2_OBJ)/gm2-libs/gm2-libs-target.h
964 $(GCC_FOR_TARGET) -DBUILD_GM2_LIBS_TARGET -DBUILD_GM2_LIBS -c $(CFLAGS) -I$(GM2_OBJ)/gm2-libs -I$(GM2_SRC) -I$(GM2_SRC)/p2c/p2c-src/include -I$(GM2_OBJ)/gm2-libs-boot $(GCCINCLUDES) $< -o $@
965
966 $(GM2_OBJ)/gm2-libs-pim/%.o: $(GM2_SRC)/gm2-libs-pim/%.mod
967 $(XGM2_1) $(GM2_FLAGS) -c -I$(GM2_OBJ)/gm2-libs:$(GM2_SRC)/gm2-libs-pim -I$(GM2_SRC)/gm2-libs $< -o $@
968
969 $(GM2_OBJ)/gm2-libs-pim/SO/%.o: $(GM2_SRC)/gm2-libs-pim/%.c $(GM2_OBJ)/gm2-libs/gm2-libs-target.h
970 $(GCC_FOR_TARGET) -DBUILD_GM2_LIBS_TARGET -DBUILD_GM2_LIBS -c $(CFLAGS) -I$(GM2_OBJ)/gm2-libs -I$(GM2_SRC) -I$(GM2_SRC)/p2c/p2c-src/include -I$(GM2_OBJ)/gm2-libs-boot $(GCCINCLUDES) $(SO) $< -o $@
971
972 $(GM2_OBJ)/gm2-libs-pim/SO/%.o: $(GM2_SRC)/gm2-libs-pim/%.mod
973 $(XGM2_1) $(GM2_FLAGS) -c -I$(GM2_OBJ)/gm2-libs:$(GM2_SRC)/gm2-libs-pim -I$(GM2_SRC)/gm2-libs $(SO) $< -o $@
974
975 $(GM2_OBJ)/gm2-libs-pim/O2/%.o: $(GM2_SRC)/gm2-libs-pim/%.c $(GM2_OBJ)/gm2-libs/gm2-libs-target.h
976 $(GCC_FOR_TARGET) -DBUILD_GM2_LIBS_TARGET -DBUILD_GM2_LIBS -c $(CFLAGS) -I$(GM2_OBJ)/gm2-libs -I$(GM2_SRC) -I$(GM2_SRC)/p2c/p2c-src/include -I$(GM2_OBJ)/gm2-libs-boot $(GCCINCLUDES) $(O2) $< -o $@
977
978 $(GM2_OBJ)/gm2-libs-pim/O2/%.o: $(GM2_SRC)/gm2-libs-pim/%.mod
979 $(XGM2_1) $(GM2_FLAGS) -c -I$(GM2_OBJ)/gm2-libs:$(GM2_SRC)/gm2-libs-pim -I$(GM2_SRC)/gm2-libs $(O2) $< -o $@
980
981 $(GM2_OBJ)/gm2-libs-pim/SO_O2/%.o: $(GM2_SRC)/gm2-libs-pim/%.c $(GM2_OBJ)/gm2-libs/gm2-libs-target.h
982 $(GCC_FOR_TARGET) -DBUILD_GM2_LIBS_TARGET -DBUILD_GM2_LIBS -c $(CFLAGS) -I$(GM2_OBJ)/gm2-libs -I$(GM2_SRC) -I$(GM2_SRC)/p2c/p2c-src/include -I$(GM2_OBJ)/gm2-libs-boot $(GCCINCLUDES) $(SO_O2) $< -o $@
983
984 $(GM2_OBJ)/gm2-libs-pim/SO_O2/%.o: $(GM2_SRC)/gm2-libs-pim/%.mod
985 $(XGM2_1) $(GM2_FLAGS) -c -I$(GM2_OBJ)/gm2-libs:$(GM2_SRC)/gm2-libs-pim -I$(GM2_SRC)/gm2-libs $(SO_O2) $< -o $@
986
987 $(GM2_OBJ)/gm2-libs/gm2-libs-target.h: force
988 echo "Configuring to build libraries using target compiler" ; \
989 cd $(GM2_OBJ)/gm2-libs ; \
990 echo "changed to" ; \
991 pwd ; \
992 CC="$(GCC_FOR_TARGET)" ; \
993 export CC ; \
994 $(SHELL) -c '../$(GM2_SRC)/gm2-libs/config-target \
995 --srcdir=../$(GM2_SRC)/gm2-libs \
996 --target=$(target) \
997 --program-suffix=$(exeext)'
998 # if [ ! -f ../$(GM2_OBJ)/gm2-libs/gm2-libs-target.h ] ; then echo "failed to build $@" ; exit 1 ; fi
999
1000 $(GM2_OBJ)/gm2-libs/gm2-libs-host.h:
1001 echo "Configuring to build libraries using host compiler" ; \
1002 echo "invoked from" ; \
1003 pwd ; \
1004 cd $(GM2_OBJ)/gm2-libs ; \
1005 echo "changed to" ; \
1006 pwd ; \
1007 $(SHELL) -c '../$(GM2_SRC)/gm2-libs/config-host \
1008 --srcdir=$(GM2_SRC)/gm2-libs \
1009 --target=$(target) \
1010 --program-suffix=$(exeext)'
1011
1012 force:

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26