OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [binutils-2.20.1/] [gas/] [Makefile.am] - Blame information for rev 301

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 205 julius
## Process this file with automake to generate Makefile.in
2
 
3
AUTOMAKE_OPTIONS = 1.11 dejagnu foreign no-dist
4
ACLOCAL_AMFLAGS = -I .. -I ../config -I ../bfd
5
 
6
SUBDIRS = doc po
7
 
8
tooldir = $(exec_prefix)/$(target_alias)
9
 
10
YACC = `if [ -f ../bison/bison ] ; then echo ../bison/bison -y -L../bison/bison ; else echo @YACC@ ; fi`
11
LEX = `if [ -f ../flex/flex ] ; then echo ../flex/flex ; else echo @LEX@ ; fi`
12
 
13
# Automake 1.10+ disables lex and yacc output file regeneration if
14
# maintainer mode is disabled.  Avoid this.
15
am__skiplex =
16
am__skipyacc =
17
 
18
WARN_CFLAGS = @WARN_CFLAGS@
19
NO_WERROR = @NO_WERROR@
20
AM_CFLAGS = $(WARN_CFLAGS)
21
 
22
TARG_CPU = @target_cpu_type@
23
TARG_CPU_C = $(srcdir)/config/tc-@target_cpu_type@.c
24
TARG_CPU_O = tc-@target_cpu_type@.o
25
TARG_CPU_H = $(srcdir)/config/tc-@target_cpu_type@.h
26
OBJ_FORMAT_C = $(srcdir)/config/obj-@obj_format@.c
27
OBJ_FORMAT_O = obj-@obj_format@.o
28
OBJ_FORMAT_H = $(srcdir)/config/obj-@obj_format@.h
29
TARG_ENV_H = $(srcdir)/config/te-@te_file@.h
30
ATOF_TARG_C = $(srcdir)/config/atof-@atof@.c
31
ATOF_TARG_O = atof-@atof@.o
32
 
33
# use @target_cpu_type@ for refering to configured target name
34
IT_HDRS=itbl-parse.h $(srcdir)/itbl-ops.h
35
IT_SRCS=itbl-parse.c itbl-lex.c $(srcdir)/itbl-ops.c
36
IT_DEPS=$(srcdir)/itbl-parse.y $(srcdir)/itbl-lex.l $(srcdir)/config/itbl-@target_cpu_type@.h
37
IT_OBJS=itbl-parse.o itbl-lex.o itbl-ops.o
38
 
39
# CPU types.  This is only used for dependency information.
40
 
41
CPU_TYPES = \
42
        alpha \
43
        arc \
44
        arm \
45
        avr \
46
        bfin \
47
        cr16 \
48
        cris \
49
        crx \
50
        d10v \
51
        d30v \
52
        dlx \
53
        fr30 \
54
        frv \
55
        h8300 \
56
        hppa \
57
        i370 \
58
        i386 \
59
        i860 \
60
        i960 \
61
        ia64 \
62
        ip2k \
63
        lm32 \
64
        m32c \
65
        m32r \
66
        m68hc11 \
67
        m68k \
68
        maxq \
69
        mcore \
70
        mep \
71
        microblaze \
72
        mips \
73
        mmix \
74
        mn10200 \
75
        mn10300 \
76
        msp430 \
77
        mt \
78
        ns32k \
79
        or32 \
80
        pdp11 \
81
        pj \
82
        ppc \
83
        s390 \
84
        score \
85
        sh \
86
        sh64 \
87
        sparc \
88
        spu \
89
        tic30 \
90
        tic4x \
91
        tic54x \
92
        v850 \
93
        vax \
94
        xc16x \
95
        xstormy16 \
96
        xtensa \
97
        z80 \
98
        z8k
99
 
100
# Object format types.  This is only used for dependency information.
101
# We deliberately omit SOM, since it does not work as a cross assembler.
102
 
103
OBJ_FORMATS = \
104
        aout \
105
        coff \
106
        ecoff \
107
        elf \
108
        evax \
109
        macho
110
 
111
# This is an sh case which sets valid according to whether the CPU
112
# type in the shell variable c and the OS type in the shell variable o
113
# are supported.  This helps cuts down on the amount of dependency
114
# information.
115
 
116
CPU_OBJ_VALID = \
117
        valid= ; \
118
        case $$o in \
119
        aout) \
120
          case $$c in \
121
          arm | cris | i386 | m68k | ns32k | pdp11 | sparc | tic30 | vax) \
122
            valid=yes ;; \
123
          esac ;; \
124
        coff) \
125
          case $$c in \
126
          arm | h8300 | i386 | i960 | m68k | maxq | mcore | mips | or32 \
127
                | ppc | sh | sparc | tic* | xscale | z80 | z8k) \
128
            valid=yes ;; \
129
          esac ;; \
130
        ecoff) \
131
          case $$c in \
132
          mips | alpha) valid=yes ;; \
133
          esac ;; \
134
        elf) valid=yes ; \
135
          case $$c in \
136
          maxq | ns32k | tic* | z80 | z8k) valid= ;; \
137
          esac ;; \
138
        evax) \
139
          case $$c in \
140
          alpha) valid=yes ;; \
141
          esac ;; \
142
        macho) \
143
          case $$c in \
144
          i386) valid=yes ;; \
145
          esac ;; \
146
        vms) \
147
          case $$c in \
148
          vax) valid=yes ;; \
149
          esac ;; \
150
        esac;
151
 
152
# These are like CPU_TYPES and CPU_OBJ_VALID, for the obj=multi case.
153
 
154
MULTI_CPU_TYPES = i386 mips cris
155
 
156
MULTI_CPU_OBJ_VALID = \
157
        valid= ; \
158
        case $$o in \
159
        aout) \
160
          case $$c in \
161
          i386 | cris) valid=yes ;; \
162
          esac ;; \
163
        coff) \
164
          case $$c in \
165
          i386 | mips) valid=yes ;; \
166
          esac ;; \
167
        ecoff) \
168
          case $$c in \
169
          mips) valid=yes ;; \
170
          esac ;; \
171
        elf) valid=yes ;; \
172
        esac;
173
 
174
# Regular source files.
175
 
176
GAS_CFILES = \
177
        app.c \
178
        as.c \
179
        atof-generic.c \
180
        cond.c \
181
        depend.c \
182
        dwarf2dbg.c \
183
        dw2gencfi.c \
184
        ecoff.c \
185
        ehopt.c \
186
        expr.c \
187
        flonum-copy.c \
188
        flonum-konst.c \
189
        flonum-mult.c \
190
        frags.c \
191
        hash.c \
192
        input-file.c \
193
        input-scrub.c \
194
        listing.c \
195
        literal.c \
196
        macro.c \
197
        messages.c \
198
        output-file.c \
199
        read.c \
200
        remap.c \
201
        sb.c \
202
        stabs.c \
203
        subsegs.c \
204
        symbols.c \
205
        write.c
206
 
207
CFILES = $(GAS_CFILES) itbl-ops.c cgen.c
208
 
209
HFILES = \
210
        as.h \
211
        asintl.h \
212
        bignum.h \
213
        bit_fix.h \
214
        cgen.h \
215
        dwarf2dbg.h \
216
        dw2gencfi.h \
217
        ecoff.h \
218
        emul-target.h \
219
        emul.h \
220
        expr.h \
221
        flonum.h \
222
        frags.h \
223
        hash.h \
224
        input-file.h \
225
        itbl-lex.h \
226
        itbl-ops.h \
227
        listing.h \
228
        macro.h \
229
        obj.h \
230
        output-file.h \
231
        read.h \
232
        sb.h \
233
        struc-symbol.h \
234
        subsegs.h \
235
        symbols.h \
236
        tc.h \
237
        write.h
238
 
239
# CPU files in config.
240
 
241
TARGET_CPU_CFILES = \
242
        config/tc-alpha.c \
243
        config/tc-arc.c \
244
        config/tc-arm.c \
245
        config/tc-avr.c \
246
        config/tc-bfin.c \
247
        config/tc-cr16.c \
248
        config/tc-cris.c \
249
        config/tc-crx.c \
250
        config/tc-d10v.c \
251
        config/tc-d30v.c \
252
        config/tc-dlx.c \
253
        config/tc-fr30.c \
254
        config/tc-frv.c \
255
        config/tc-h8300.c \
256
        config/tc-hppa.c \
257
        config/tc-ia64.c \
258
        config/tc-i370.c \
259
        config/tc-i386.c \
260
        config/tc-i860.c \
261
        config/tc-i960.c \
262
        config/tc-ip2k.c \
263
        config/tc-iq2000.c \
264
        config/tc-lm32.c \
265
        config/tc-m32c.c \
266
        config/tc-m32r.c \
267
        config/tc-m68hc11.c \
268
        config/tc-m68k.c \
269
        config/tc-maxq.c \
270
        config/tc-mcore.c \
271
        config/tc-mep.c \
272
        config/tc-microblaze.c \
273
        config/tc-mips.c \
274
        config/tc-mmix.c \
275
        config/tc-mn10200.c \
276
        config/tc-mn10300.c \
277
        config/tc-moxie.c \
278
        config/tc-msp430.c \
279
        config/tc-mt.c \
280
        config/tc-ns32k.c \
281
        config/tc-or32.c \
282
        config/tc-pdp11.c \
283
        config/tc-pj.c \
284
        config/tc-ppc.c \
285
        config/tc-s390.c \
286
        config/tc-score.c \
287
        config/tc-sh.c \
288
        config/tc-sh64.c \
289
        config/tc-sparc.c \
290
        config/tc-spu.c \
291
        config/tc-tic30.c \
292
        config/tc-tic4x.c \
293
        config/tc-tic54x.c \
294
        config/tc-vax.c \
295
        config/tc-v850.c \
296
        config/tc-xstormy16.c \
297
        config/tc-xc16x.c \
298
        config/tc-xtensa.c \
299
        config/tc-z80.c \
300
        config/tc-z8k.c \
301
        config/xtensa-relax.c
302
 
303
TARGET_CPU_HFILES = \
304
        config/tc-alpha.h \
305
        config/tc-arc.h \
306
        config/tc-arm.h \
307
        config/tc-avr.h \
308
        config/tc-bfin.h \
309
        config/tc-cr16.h \
310
        config/tc-cris.h \
311
        config/tc-crx.h \
312
        config/tc-d10v.h \
313
        config/tc-d30v.h \
314
        config/tc-dlx.h \
315
        config/tc-fr30.h \
316
        config/tc-frv.h \
317
        config/tc-h8300.h \
318
        config/tc-hppa.h \
319
        config/tc-ia64.h \
320
        config/tc-i370.h \
321
        config/tc-i386.h \
322
        config/tc-i860.h \
323
        config/tc-i960.h \
324
        config/tc-ip2k.h \
325
        config/tc-iq2000.h \
326
        config/tc-lm32.h \
327
        config/tc-m32c.h \
328
        config/tc-m32r.h \
329
        config/tc-m68hc11.h \
330
        config/tc-m68k.h \
331
        config/tc-maxq.h \
332
        config/tc-mcore.h \
333
        config/tc-mep.h \
334
        config/tc-microblaze.h \
335
        config/tc-mips.h \
336
        config/tc-mmix.h \
337
        config/tc-mn10200.h \
338
        config/tc-mn10300.h \
339
        config/tc-msp430.h \
340
        config/tc-mt.h \
341
        config/tc-ns32k.h \
342
        config/tc-or32.h \
343
        config/tc-pdp11.h \
344
        config/tc-pj.h \
345
        config/tc-ppc.h \
346
        config/tc-s390.h \
347
        config/tc-score.h \
348
        config/tc-sh.h \
349
        config/tc-sh64.h \
350
        config/tc-sparc.h \
351
        config/tc-spu.h \
352
        config/tc-tic30.h \
353
        config/tc-tic4x.h \
354
        config/tc-tic54x.h \
355
        config/tc-vax.h \
356
        config/tc-v850.h \
357
        config/tc-xstormy16.h \
358
        config/tc-xc16x.h \
359
        config/tc-xtensa.h \
360
        config/tc-z80.h \
361
        config/tc-z8k.h \
362
        config/xtensa-relax.h
363
 
364
# OBJ files in config
365
 
366
OBJ_FORMAT_CFILES = \
367
        config/obj-aout.c \
368
        config/obj-coff.c \
369
        config/obj-ecoff.c \
370
        config/obj-elf.c \
371
        config/obj-evax.c \
372
        config/obj-fdpicelf.c \
373
        config/obj-macho.c \
374
        config/obj-multi.c \
375
        config/obj-som.c
376
 
377
OBJ_FORMAT_HFILES = \
378
        config/obj-aout.h \
379
        config/obj-coff.h \
380
        config/obj-ecoff.h \
381
        config/obj-elf.h \
382
        config/obj-evax.h \
383
        config/obj-fdpicelf.h \
384
        config/obj-macho.h \
385
        config/obj-multi.h \
386
        config/obj-som.h
387
 
388
# Emulation header files in config
389
 
390
TARG_ENV_HFILES = \
391
        config/te-386bsd.h \
392
        config/te-aix5.h \
393
        config/te-armeabi.h \
394
        config/te-armlinuxeabi.h \
395
        config/te-dynix.h \
396
        config/te-epoc-pe.h \
397
        config/te-freebsd.h \
398
        config/te-generic.h \
399
        config/te-gnu.h \
400
        config/te-go32.h \
401
        config/te-hppa.h \
402
        config/te-hppa64.h \
403
        config/te-hppalinux64.h \
404
        config/te-i386aix.h \
405
        config/te-ia64aix.h \
406
        config/te-interix.h \
407
        config/te-lnews.h \
408
        config/te-lynx.h \
409
        config/te-mach.h \
410
        config/te-macos.h \
411
        config/te-nbsd.h \
412
        config/te-nbsd532.h \
413
        config/te-netware.h \
414
        config/te-pc532mach.h \
415
        config/te-pe.h \
416
        config/te-psos.h \
417
        config/te-riscix.h \
418
        config/te-solaris.h \
419
        config/te-sparcaout.h \
420
        config/te-sun3.h \
421
        config/te-svr4.h \
422
        config/te-symbian.h \
423
        config/te-tmips.h \
424
        config/te-vxworks.h \
425
        config/te-wince-pe.h
426
 
427
TARG_ENV_CFILES = \
428
        config/te-vms.c
429
 
430
# Multi files in config
431
 
432
MULTI_CFILES = \
433
        config/e-crisaout.c \
434
        config/e-criself.c \
435
        config/e-i386aout.c \
436
        config/e-i386coff.c \
437
        config/e-i386elf.c \
438
        config/e-mipsecoff.c \
439
        config/e-mipself.c
440
 
441
CONFIG_OBJS = \
442
        $(TARG_CPU_O) \
443
        $(OBJ_FORMAT_O) \
444
        $(ATOF_TARG_O) \
445
        $(extra_objects)
446
 
447
GENERIC_OBJS = \
448
        app.o \
449
        as.o \
450
        atof-generic.o \
451
        cond.o \
452
        depend.o \
453
        dwarf2dbg.o \
454
        dw2gencfi.o \
455
        ehopt.o \
456
        expr.o \
457
        flonum-konst.o \
458
        flonum-copy.o \
459
        flonum-mult.o \
460
        frags.o \
461
        hash.o \
462
        input-file.o \
463
        input-scrub.o \
464
        literal.o \
465
        messages.o \
466
        output-file.o \
467
        read.o \
468
        remap.o \
469
        subsegs.o \
470
        symbols.o \
471
        write.o \
472
        listing.o \
473
        ecoff.o \
474
        stabs.o \
475
        sb.o \
476
        macro.o
477
 
478
CONFIG_ATOF_CFILES = \
479
        config/atof-ieee.c \
480
        config/atof-vax.c
481
 
482
OBJS = $(CONFIG_OBJS) $(GENERIC_OBJS)
483
 
484
POTFILES = $(MULTI_CFILES) $(CONFIG_ATOF_CFILES) \
485
        $(TARG_ENV_HFILES) $(TARG_ENV_CFILES) $(OBJ_FORMAT_HFILES) \
486
        $(OBJ_FORMAT_CFILES) $(TARGET_CPU_HFILES) $(TARGET_CPU_CFILES) \
487
        $(HFILES) $(CFILES)
488
po/POTFILES.in: @MAINT@ Makefile
489
        for f in $(POTFILES); do echo $$f; done | LC_ALL=C sort > tmp \
490
          && mv tmp $(srcdir)/po/POTFILES.in
491
 
492
# Note: GASP is now deprecated and has been removed.  It is still
493
# available in the CVS archive or older binutils releases if it is needed.
494
noinst_PROGRAMS = as-new
495
noinst_SCRIPTS = $(GDBINIT)
496
EXTRA_SCRIPTS = .gdbinit
497
 
498
EXTRA_DIST = m68k-parse.c itbl-parse.c itbl-parse.h itbl-lex.c \
499
        bfin-parse.c bfin-parse.h bfin-lex.c
500
 
501
diststuff: $(EXTRA_DIST) info
502
 
503
DISTCLEANFILES = targ-cpu.h obj-format.h targ-env.h itbl-cpu.h cgen-desc.h
504
 
505
# Now figure out from those variables how to compile and link.
506
 
507
BASEDIR = $(srcdir)/..
508
BFDDIR = $(BASEDIR)/bfd
509
INCDIR = $(BASEDIR)/include
510
 
511
# This is the variable actually used when we compile.
512
# Specify the directories to be searched for header files.
513
# Both . and srcdir are used, in that order,
514
# so that tm.h and config.h will be found in the compilation
515
# subdirectory rather than in the source directory.
516
AM_CPPFLAGS = -I. -I$(srcdir) -I../bfd -I$(srcdir)/config \
517
        -I$(INCDIR) -I$(srcdir)/.. -I$(BFDDIR) @INCINTL@ \
518
        -DLOCALEDIR="\"$(datadir)/locale\""
519
 
520
# How to link with both our special library facilities
521
# and the system's installed libraries.
522
 
523
GASLIBS = @OPCODES_LIB@ ../bfd/libbfd.la ../libiberty/libiberty.a
524
 
525
# Files to be copied away after each stage in building.
526
STAGESTUFF = *.o $(noinst_PROGRAMS)
527
 
528
as_new_SOURCES = $(GAS_CFILES)
529
as_new_LDADD = $(TARG_CPU_O) $(OBJ_FORMAT_O) $(ATOF_TARG_O) \
530
        $(extra_objects) $(GASLIBS) $(LIBINTL) $(LIBM)
531
as_new_DEPENDENCIES = $(TARG_CPU_O) $(OBJ_FORMAT_O) $(ATOF_TARG_O) \
532
        $(extra_objects) $(GASLIBS) $(LIBINTL_DEP)
533
EXTRA_as_new_SOURCES = $(CFILES) $(HFILES) $(TARGET_CPU_CFILES) \
534
        $(TARGET_CPU_HFILES) $(OBJ_FORMAT_CFILES) $(OBJ_FORMAT_HFILES) \
535
        $(TARG_ENV_CFILES) $(CONFIG_ATOF_CFILES) $(MULTI_CFILES)
536
 
537
EXPECT = expect
538
RUNTEST = runtest
539
RUNTESTFLAGS=
540
 
541
check-DEJAGNU: site.exp
542
        if [ -d testsuite ]; then \
543
          true; \
544
        else \
545
          mkdir testsuite; \
546
        fi
547
        rm -f testsuite/site.exp
548
        cp site.exp testsuite/site.exp
549
        rootme=`pwd`; export rootme; \
550
        srcdir=`cd ${srcdir}; pwd` ; export srcdir ; \
551
        EXPECT=${EXPECT} ; export EXPECT ; \
552
        runtest=$(RUNTEST); \
553
        cd testsuite; \
554
        if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
555
          $$runtest --tool $(DEJATOOL) --srcdir $${srcdir}/testsuite \
556
                $(RUNTESTFLAGS); \
557
        else echo "WARNING: could not find \`runtest'" 1>&2; :;\
558
        fi
559
 
560
# The m68k operand parser.
561
 
562
EXTRA_as_new_SOURCES += config/m68k-parse.y config/bfin-parse.y
563
 
564
# If m68k-parse.y is in a different directory, then ylwrap will use an
565
# absolute path when it invokes yacc, which will cause yacc to put the
566
# absolute path into the generated file.  That's a pain when it comes
567
# to generating snapshots, because it introduces spurious diffs.
568
# Since when we make the snapshots $(srcdir) = ".", we check for that
569
# case and handle it differently.  This means that anybody who
570
# configures with $(srcdir) = "." will have to set their path in the
571
# debugger if they want to debug m68k-parse.y.  This is bad, but on
572
# the other hand it's good that people who use the prebuilt
573
# m68k-parse.c don't get a spurious absolute path.
574
m68k-parse.c: $(srcdir)/config/m68k-parse.y
575
        f=$(srcdir)/config/m68k-parse.y; \
576
        if [ $$f = "./config/m68k-parse.y" ]; then \
577
          ln -s config/m68k-parse.y . > /dev/null 2>/dev/null || \
578
           ln config/m68k-parse.y . > /dev/null 2>/dev/null || \
579
           cp config/m68k-parse.y . >/dev/null 2>/dev/null; \
580
          f=m68k-parse.y; \
581
        else true; fi; \
582
        $(SHELL) $(YLWRAP) $$f y.tab.c m68k-parse.c -- $(YACCCOMPILE); \
583
        if [ $$f = "m68k-parse.y" ]; then \
584
          rm -f m68k-parse.y; \
585
        else true; fi
586
# Disable -Werror, if it has been enabled, since old versions of bison/
587
# yacc will produce working code which contain compile time warnings.
588
m68k-parse.o: m68k-parse.c
589
if am__fastdepCC
590
        $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f m68k-parse.c || echo $(srcdir)/`m68k-parse.c $(NO_WERROR)
591
        mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
592
else
593
if AMDEP
594
        source='m68k-parse.c' object='$@' libtool=no @AMDEPBACKSLASH@
595
        DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
596
endif
597
        $(COMPILE) -c `test -f m68k-parse.c || echo $(srcdir)/`m68k-parse.c $(NO_WERROR)
598
endif
599
 
600
# Don't let the .y.h rule clobber m68k-parse.h.
601
m68k-parse.h: ; @true
602
$(srcdir)/config/m68k-parse.h: ; @true
603
 
604
bfin-parse.c: $(srcdir)/config/bfin-parse.y
605
        $(SHELL) $(YLWRAP) $(srcdir)/config/bfin-parse.y y.tab.c bfin-parse.c y.tab.h bfin-parse.h -- $(YACCCOMPILE) -d ;
606
bfin-parse.h: bfin-parse.c
607
bfin-parse.o: bfin-parse.c \
608
 $(srcdir)/config/bfin-aux.h $(srcdir)/config/bfin-defs.h \
609
 $(INCDIR)/elf/common.h $(INCDIR)/elf/bfin.h $(BFDDIR)/libbfd.h
610
 
611
bfin-parse.h: ; @true
612
$(srcdir)/config/bfin-parse.h: ; @true
613
 
614
bfin-lex.c: $(srcdir)/config/bfin-lex.l
615
        $(SHELL) $(YLWRAP) $(srcdir)/config/bfin-lex.l lex.yy.c bfin-lex.c -- $(LEXCOMPILE)
616
bfin-lex.o: bfin-lex.c bfin-parse.h $(srcdir)/config/bfin-defs.h
617
if am__fastdepCC
618
        $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f bfin-lex.c || echo $(srcdir)/`bfin-lex.c $(NO_WERROR)
619
        mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
620
else
621
if AMDEP
622
        source='bfin-lex.c' object='$@' libtool=no @AMDEPBACKSLASH@
623
        DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
624
endif
625
        $(COMPILE) -c `test -f bfin-lex.c || echo $(srcdir)/`bfin-lex.c $(NO_WERROR)
626
endif
627
 
628
# The instruction table specification lexical analyzer and parser.
629
 
630
# Disable -Werror, if it has been enabled, since old versions of bison/
631
# yacc will produce working code which contain compile time warnings.
632
itbl-lex.o: itbl-lex.c itbl-parse.h
633
if am__fastdepCC
634
        $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f itbl-lex.c || echo $(srcdir)/`itbl-lex.c $(NO_WERROR)
635
        mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
636
else
637
if AMDEP
638
        source='itbl-lex.c' object='$@' libtool=no @AMDEPBACKSLASH@
639
        DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
640
endif
641
        $(COMPILE) -c `test -f itbl-lex.c || echo $(srcdir)/`itbl-lex.c $(NO_WERROR)
642
endif
643
 
644
# Disable -Werror, if it has been enabled, since old versions of bison/
645
# yacc will produce working code which contain compile time warnings.
646
itbl-parse.o: itbl-parse.c
647
if am__fastdepCC
648
        $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f itbl-parse.c || echo $(srcdir)/`itbl-parse.c $(NO_WERROR)
649
        mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
650
else
651
if AMDEP
652
        source='itbl-parse.c' object='$@' libtool=no @AMDEPBACKSLASH@
653
        DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
654
endif
655
        $(COMPILE) -c `test -f itbl-parse.c || echo $(srcdir)/`itbl-parse.c $(NO_WERROR)
656
endif
657
 
658
itbl-parse.c: $(srcdir)/itbl-parse.y
659
        $(SHELL) $(YLWRAP) $(srcdir)/itbl-parse.y y.tab.c itbl-parse.c y.tab.h itbl-parse.h -- $(YACCCOMPILE) -d
660
 
661
itbl-parse.h: itbl-parse.c ; @true
662
 
663
itbl-ops.o: itbl-parse.h
664
 
665
# stand-alone itbl assembler & disassembler
666
 
667
EXTRA_PROGRAMS = itbl-test
668
itbl_test_SOURCES = itbl-parse.y itbl-lex.l
669
itbl_test_LDADD = itbl-tops.o itbl-test.o $(GASLIBS) @LEXLIB@
670
 
671
itbl-tops.o: itbl-ops.c itbl-parse.h
672
if am__fastdepCC
673
        $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -o $@ -c -DSTAND_ALONE $(srcdir)/itbl-ops.c
674
        mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
675
else
676
if AMDEP
677
        source='itbl-ops.c' object='$@' libtool=no @AMDEPBACKSLASH@
678
        DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
679
endif
680
        $(COMPILE) -o $@ -DSTAND_ALONE -c $(srcdir)/itbl-ops.c
681
endif
682
 
683
itbl-test.o: $(srcdir)/testsuite/gas/all/itbl-test.c
684
if am__fastdepCC
685
        $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ -DSTAND_ALONE $(srcdir)/testsuite/gas/all/itbl-test.c
686
        mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
687
else
688
if AMDEP
689
        source='itbl-test.c' object='$@' libtool=no @AMDEPBACKSLASH@
690
        DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
691
endif
692
        $(COMPILE) -c -DSTAND_ALONE $(srcdir)/testsuite/gas/all/itbl-test.c
693
endif
694
 
695
# CGEN interface.
696
 
697
CGEN_CPU_PREFIX = @cgen_cpu_prefix@
698
 
699
cgen.o: cgen.c cgen.h cgen-desc.h subsegs.h \
700
        $(INCDIR)/obstack.h $(INCDIR)/opcode/cgen.h \
701
        $(srcdir)/../opcodes/$(CGEN_CPU_PREFIX)-desc.h \
702
        $(srcdir)/../opcodes/$(CGEN_CPU_PREFIX)-opc.h
703
 
704
# Remake the info files.
705
 
706
MOSTLYCLEANFILES = $(STAGESTUFF) core \
707
        testsuite/*.o testsuite/*.out testsuite/gas.log testsuite/gas.sum \
708
        testsuite/site.exp site.bak site.exp stage stage1 stage2
709
 
710
.PHONY: install-exec-local install-data-local
711
.PHONY: install-exec-bindir install-exec-tooldir
712
 
713
install-exec-local: install-exec-bindir @install_tooldir@
714
 
715
install-exec-bindir: $(noinst_PROGRAMS)
716
        $(mkinstalldirs) $(DESTDIR)$(bindir)
717
        @list='$(noinst_PROGRAMS)'; for p in $$list; do \
718
          if test -f $$p; then \
719
            echo " $(LIBTOOL)  --mode=install $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed -e 's/$(EXEEXT)$$//' -e 's/-new//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
720
            $(LIBTOOL)  --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed -e 's/$(EXEEXT)$$//' -e 's/-new//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
721
          else :; fi; \
722
        done
723
 
724
install-exec-tooldir: install-exec-bindir $(noinst_PROGRAMS)
725
        $(mkinstalldirs) $(DESTDIR)$(tooldir)/bin
726
        n=`echo as | sed '$(transform)'`; \
727
        if [ "$(bindir)/$$n$(EXEEXT)" != "$(tooldir)/bin/as$(EXEEXT)" ]; then \
728
          rm -f $(DESTDIR)$(tooldir)/bin/as$(EXEEXT); \
729
          ln $(DESTDIR)$(bindir)/$$n$(EXEEXT) $(DESTDIR)$(tooldir)/bin/as$(EXEEXT) >/dev/null 2>/dev/null \
730
            || $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) as-new$(EXEEXT) $(DESTDIR)$(tooldir)/bin/as$(EXEEXT); \
731
        else \
732
          true ; \
733
        fi
734
 
735
# These exist for maintenance purposes.
736
 
737
.PHONY: bootstrap bootstrap2 bootstrap3 stage1 stage2 stage3 comparison
738
 
739
bootstrap: as-new
740
        $(MAKE) stage1
741
        rm -f stage && ln -s stage1 stage
742
        $(MAKE) CC="$(CC)" CFLAGS="-O -Bstage/ $(CFLAGS)" libdir=$(libdir) ALLOCA= $(noinst_PROGRAMS)
743
        $(MAKE) stage2
744
        rm -f stage && ln -s stage2 stage
745
        $(MAKE) CC="$(CC)" CFLAGS="-O -Bstage/ $(CFLAGS)" libdir=$(libdir) ALLOCA= $(noinst_PROGRAMS)
746
        $(MAKE) comparison against=stage2
747
 
748
bootstrap2:
749
        rm -f stage && ln -s stage1 stage
750
        $(MAKE) CC="$(CC)" CFLAGS="-O -Bstage/ $(CFLAGS)" libdir=$(libdir) ALLOCA= $(noinst_PROGRAMS)
751
        $(MAKE) stage2
752
        rm -f stage && ln -s stage2 stage
753
        $(MAKE) CC="$(CC)" CFLAGS="-O -Bstage/ $(CFLAGS)" libdir=$(libdir) ALLOCA= $(noinst_PROGRAMS)
754
        $(MAKE) comparison against=stage2
755
 
756
bootstrap3:
757
        rm -f stage && ln -s stage2 stage
758
        $(MAKE) CC="$(CC)" CFLAGS="-O -Bstage/ $(CFLAGS)" libdir=$(libdir) ALLOCA= $(noinst_PROGRAMS)
759
        $(MAKE) comparison against=stage2
760
 
761
# Copy the object files from a particular stage into a subdirectory.
762
stage1:
763
        -mkdir stage1
764
        -mv $(STAGESTUFF) stage1
765
        if [ -f stage1/as-new$(EXEEXT) -a ! -f stage1/as$(EXEEXT) ] ; then (cd stage1 ; ln -s as-new$(EXEEXT) as$(EXEEXT)) ; fi
766
 
767
stage2:
768
        -mkdir stage2
769
        -mv $(STAGESTUFF) stage2
770
        if [ -f stage2/as-new$(EXEEXT) -a ! -f stage2/as$(EXEEXT) ] ; then (cd stage2 ; ln -s as-new$(EXEEXT) as$(EXEEXT)) ; fi
771
 
772
stage3:
773
        -mkdir stage3
774
        -mv $(STAGESTUFF) stage3
775
        if [ -f stage3/as-new$(EXEEXT) -a ! -f stage3/as$(EXEEXT) ] ; then (cd stage3 ; ln -s as-new as$(EXEEXT)) ; fi
776
 
777
against=stage2
778
 
779
# This rule is derived from corresponding code in the Makefile.in for gcc.
780
# The "tail +16c" is to bypass headers which may include timestamps or
781
# temporary assembly file names.
782
comparison:
783
        x=0 ; \
784
        for file in *.o ; do \
785
          tail +16c ./$$file > tmp-foo1; \
786
          if tail +16c ${against}/$$file > tmp-foo2 2>/dev/null ; then \
787
            if cmp tmp-foo1 tmp-foo2 ; then \
788
              true ; \
789
            else \
790
              echo $$file differs ; \
791
              x=1 ; \
792
            fi ; \
793
          else true; fi ; \
794
        done ; \
795
        exit $$x
796
        -rm -f tmp-foo*
797
 
798
.PHONY: de-stage1 de-stage2 de-stage3
799
 
800
de-stage1:
801
        - (cd stage1 ; rm -f as$(EXEEXT) ; mv -f * ..)
802
        - rmdir stage1
803
 
804
de-stage2:
805
        - (cd stage2 ; rm -f as$(EXEEXT) ; mv -f * ..)
806
        - rmdir stage2
807
 
808
de-stage3:
809
        - (cd stage3 ; rm -f as$(EXEEXT) ; mv -f * ..)
810
        - rmdir stage3
811
 
812
CONFIG_STATUS_DEPENDENCIES = $(BFDDIR)/configure.in $(srcdir)/configure.tgt

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.