OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

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

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 = dejagnu no-dist foreign
4
ACLOCAL_AMFLAGS = -I .. -I ../config -I ../bfd
5
 
6
SUBDIRS = doc po
7
 
8
tooldir = $(exec_prefix)/$(target_alias)
9
 
10
## These aren't set by automake, because they appear in
11
## bfd/acinclude.m4, which is included by binutils/acinclude.m4, and
12
## thus is not seen by automake.
13
CC_FOR_BUILD = @CC_FOR_BUILD@
14
EXEEXT_FOR_BUILD = @EXEEXT_FOR_BUILD@
15
 
16
YACC = `if [ -f ../bison/bison ]; then echo ../bison/bison -y -L$(srcdir)/../bison/; else echo @YACC@; fi`
17
YFLAGS = -d
18
LEX = `if [ -f ../flex/flex ]; then echo ../flex/flex; else echo @LEX@; fi`
19
 
20
# Automake 1.10+ disables lex and yacc output file regeneration if
21
# maintainer mode is disabled.  Avoid this.
22
am__skiplex =
23
am__skipyacc =
24
 
25
WARN_CFLAGS = @WARN_CFLAGS@
26
NO_WERROR = @NO_WERROR@
27
AM_CFLAGS = $(WARN_CFLAGS)
28
LIBICONV = @LIBICONV@
29
 
30
# these two are almost the same program
31
AR_PROG=ar
32
RANLIB_PROG=ranlib
33
 
34
# objcopy and strip should be the same program
35
OBJCOPY_PROG=objcopy
36
STRIP_PROG=strip-new
37
 
38
STRINGS_PROG=strings
39
 
40
READELF_PROG=readelf
41
 
42
# These should all be the same program too.
43
SIZE_PROG=size
44
NM_PROG=nm-new
45
OBJDUMP_PROG=objdump
46
 
47
# This is the demangler, as a standalone program.
48
# Note: This one is used as the installed name too, unlike the above.
49
DEMANGLER_PROG=cxxfilt
50
 
51
ADDR2LINE_PROG=addr2line
52
 
53
NLMCONV_PROG=nlmconv
54
DLLTOOL_PROG=dlltool
55
WINDRES_PROG=windres
56
WINDMC_PROG=windmc
57
DLLWRAP_PROG=dllwrap
58
 
59
SRCONV_PROG=srconv$(EXEEXT) sysdump$(EXEEXT) coffdump$(EXEEXT)
60
 
61
bin_PROGRAMS = $(SIZE_PROG) $(OBJDUMP_PROG) $(AR_PROG) $(STRINGS_PROG) $(RANLIB_PROG) $(OBJCOPY_PROG) @BUILD_NLMCONV@ @BUILD_SRCONV@ @BUILD_DLLTOOL@ @BUILD_WINDRES@ @BUILD_WINDMC@ $(ADDR2LINE_PROG) $(READELF_PROG) @BUILD_DLLWRAP@ @BUILD_INSTALL_MISC@
62
 
63
## We need a special rule to install the programs which are built with
64
## -new, and to rename cxxfilt to c++filt.
65
RENAMED_PROGS = $(NM_PROG) $(STRIP_PROG) $(DEMANGLER_PROG)
66
noinst_PROGRAMS = $(RENAMED_PROGS) @BUILD_MISC@
67
 
68
EXTRA_PROGRAMS = $(NLMCONV_PROG) srconv sysdump coffdump $(DLLTOOL_PROG) $(WINDRES_PROG) $(WINDMC_PROG) $(DLLWRAP_PROG)
69
 
70
# Stuff that goes in tooldir/ if appropriate.
71
TOOL_PROGS = nm-new strip-new ar ranlib dlltool objdump objcopy
72
 
73
BASEDIR = $(srcdir)/..
74
BFDDIR = $(BASEDIR)/bfd
75
INCDIR  = $(BASEDIR)/include
76
 
77
AM_CPPFLAGS = -I. -I$(srcdir) -I../bfd -I$(BFDDIR) -I$(INCDIR) \
78
         @HDEFINES@ \
79
         @INCINTL@ \
80
         -DLOCALEDIR="\"$(datadir)/locale\"" \
81
         -Dbin_dummy_emulation=$(EMULATION_VECTOR)
82
 
83
HFILES = \
84
        arsup.h binemul.h bucomm.h budbg.h \
85
        coffgrok.h debug.h dlltool.h dwarf.h nlmconv.h \
86
        sysdep.h unwind-ia64.h windres.h winduni.h windint.h \
87
        windmc.h
88
 
89
GENERATED_HFILES = arparse.h sysroff.h sysinfo.h defparse.h rcparse.h mcparse.h
90
BUILT_SOURCES = $(GENERATED_HFILES)
91
 
92
CFILES = \
93
        addr2line.c ar.c arsup.c bin2c.c binemul.c bucomm.c \
94
        coffdump.c coffgrok.c cxxfilt.c \
95
        dwarf.c debug.c dlltool.c dllwrap.c \
96
        emul_aix.c emul_vanilla.c filemode.c \
97
        ieee.c is-ranlib.c is-strip.c maybe-ranlib.c maybe-strip.c \
98
        nlmconv.c nm.c not-ranlib.c not-strip.c \
99
        objcopy.c objdump.c prdbg.c \
100
        rclex.c rdcoff.c rddbg.c readelf.c rename.c \
101
        resbin.c rescoff.c resrc.c resres.c \
102
        size.c srconv.c stabs.c strings.c sysdump.c \
103
        unwind-ia64.c version.c \
104
        windres.c winduni.c wrstabs.c \
105
        windmc.c mclex.c
106
 
107
GENERATED_CFILES = \
108
        arparse.c arlex.c sysroff.c sysinfo.c syslex.c \
109
        defparse.c deflex.c nlmheader.c rcparse.c mcparse.c
110
 
111
DEBUG_SRCS = rddbg.c debug.c stabs.c ieee.c rdcoff.c
112
WRITE_DEBUG_SRCS = $(DEBUG_SRCS) wrstabs.c
113
 
114
# Code shared by all the binutils.
115
BULIBS = bucomm.c version.c filemode.c
116
 
117
BFDLIB = ../bfd/libbfd.la
118
 
119
OPCODES = ../opcodes/libopcodes.la
120
 
121
LIBIBERTY = ../libiberty/libiberty.a
122
 
123
POTFILES = $(CFILES) $(DEBUG_SRCS) $(HFILES)
124
po/POTFILES.in: @MAINT@ Makefile
125
        for f in $(POTFILES); do echo $$f; done | LC_ALL=C sort > tmp \
126
          && mv tmp $(srcdir)/po/POTFILES.in
127
 
128
EXPECT = expect
129
RUNTEST = runtest
130
 
131
CC_FOR_TARGET = ` \
132
  if [ -f $$r/../gcc/xgcc ] ; then \
133
    if [ -f $$r/../newlib/Makefile ] ; then \
134
      echo $$r/../gcc/xgcc -B$$r/../gcc/ -idirafter $$r/../newlib/targ-include -idirafter $${srcroot}/../newlib/libc/include -nostdinc; \
135
    else \
136
      echo $$r/../gcc/xgcc -B$$r/../gcc/; \
137
    fi; \
138
  else \
139
    if [ "@host@" = "@target@" ] ; then \
140
      echo $(CC); \
141
    else \
142
      echo gcc | sed '$(transform)'; \
143
    fi; \
144
  fi`
145
 
146
check-DEJAGNU: site.exp
147
        srcdir=`cd $(srcdir) && pwd`; export srcdir; \
148
        r=`pwd`; export r; \
149
        EXPECT=$(EXPECT); export EXPECT; \
150
        runtest=$(RUNTEST); \
151
        if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
152
          CC_FOR_TARGET="$(CC_FOR_TARGET)" CFLAGS_FOR_TARGET="$(CFLAGS)" \
153
                $$runtest --tool $(DEJATOOL) --srcdir $${srcdir}/testsuite \
154
                        $(RUNTESTFLAGS); \
155
        else echo "WARNING: could not find \`runtest'" 1>&2; :;\
156
        fi
157
 
158
installcheck-local:
159
        /bin/sh $(srcdir)/sanity.sh $(bindir)
160
 
161
# There's no global DEPENDENCIES.  So, we must explicitly list everything
162
# which depends on libintl, since we don't know whether LIBINTL_DEP will be
163
# non-empty until configure time.  Ugh!
164
size_DEPENDENCIES =      $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
165
objdump_DEPENDENCIES =   $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB) $(OPCODES)
166
nm_new_DEPENDENCIES =    $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
167
ar_DEPENDENCIES =        $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
168
strings_DEPENDENCIES =   $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
169
strip_new_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
170
ranlib_DEPENDENCIES =    $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
171
cxxfilt_DEPENDENCIES =   $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
172
objcopy_DEPENDENCIES =   $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
173
nlmconv_DEPENDENCIES =   $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
174
srconv_DEPENDENCIES =    $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
175
sysdump_DEPENDENCIES =   $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
176
coffdump_DEPENDENCIES =  $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
177
dlltool_DEPENDENCIES =   $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
178
windres_DEPENDENCIES =   $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
179
windmc_DEPENDENCIES =    $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
180
addr2line_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
181
readelf_DEPENDENCIES =   $(LIBINTL_DEP) $(LIBIBERTY)
182
dllwrap_DEPENDENCIES =   $(LIBINTL_DEP) $(LIBIBERTY)
183
 
184
LDADD = $(BFDLIB) $(LIBIBERTY) $(LIBINTL)
185
 
186
size_SOURCES = size.c $(BULIBS)
187
 
188
objcopy_SOURCES = objcopy.c not-strip.c rename.c $(WRITE_DEBUG_SRCS) $(BULIBS)
189
 
190
strings_SOURCES = strings.c $(BULIBS)
191
 
192
readelf_SOURCES = readelf.c version.c unwind-ia64.c dwarf.c
193
readelf_LDADD   = $(LIBINTL) $(LIBIBERTY)
194
 
195
strip_new_SOURCES = objcopy.c is-strip.c rename.c $(WRITE_DEBUG_SRCS) $(BULIBS)
196
 
197
nm_new_SOURCES = nm.c $(BULIBS)
198
 
199
objdump_SOURCES = objdump.c dwarf.c prdbg.c $(DEBUG_SRCS) $(BULIBS)
200
objdump_LDADD = $(OPCODES) $(BFDLIB) $(LIBIBERTY) $(LIBINTL)
201
 
202
objdump.o:objdump.c
203
if am__fastdepCC
204
        $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(OBJDUMP_DEFS) $(srcdir)/objdump.c
205
        mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
206
else
207
if AMDEP
208
        source='objdump.c' object='$@' libtool=no @AMDEPBACKSLASH@
209
        DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
210
endif
211
        $(COMPILE) -c $(OBJDUMP_DEFS) $(srcdir)/objdump.c
212
endif
213
 
214
cxxfilt_SOURCES = cxxfilt.c $(BULIBS)
215
 
216
ar_SOURCES = arparse.y arlex.l ar.c not-ranlib.c arsup.c rename.c binemul.c \
217
        emul_$(EMULATION).c $(BULIBS)
218
EXTRA_ar_SOURCES = $(CFILES)
219
ar_LDADD = $(BFDLIB) $(LIBIBERTY) @LEXLIB@ $(LIBINTL)
220
 
221
ranlib_SOURCES = ar.c is-ranlib.c arparse.y arlex.l arsup.c rename.c \
222
        binemul.c emul_$(EMULATION).c $(BULIBS)
223
ranlib_LDADD = $(BFDLIB) $(LIBIBERTY) @LEXLIB@ $(LIBINTL)
224
 
225
addr2line_SOURCES = addr2line.c $(BULIBS)
226
 
227
# The following is commented out for the conversion to automake.
228
# This rule creates a single binary that switches between ar and ranlib
229
# by looking at argv[0].  Use this kludge to save some disk space.
230
# However, you have to install things by hand.
231
# (That is after 'make install', replace the installed ranlib by a link to ar.)
232
# Alternatively, you can install ranlib.sh as ranlib.
233
# ar_with_ranlib: $(ADDL_DEPS) ar.o maybe-ranlib.o
234
#       $(HLDENV) $(CC) $(HLDFLAGS) $(CFLAGS) $(LDFLAGS) -o $(AR_PROG) ar.o maybe-ranlib.o $(ADDL_LIBS) $(EXTRALIBS)
235
#       -rm -f $(RANLIB_PROG)
236
#       -ln $(AR_PROG) $(RANLIB_PROG)
237
#
238
# objcopy and strip in one binary that uses argv[0] to decide its action.
239
#
240
#objcopy_with_strip: $(ADDL_DEPS) objcopy.o maybe-strip.o
241
#       $(HLDENV) $(CC) $(HLDFLAGS) $(CFLAGS) $(LDFLAGS) -o $(OBJCOPY_PROG) objcopy.o maybe-strip.o $(ADDL_LIBS) $(EXTRALIBS)
242
#       -rm -f $(STRIP_PROG)
243
#       -ln $(OBJCOPY_PROG) $(STRIP_PROG)
244
 
245
sysroff.c: sysinfo$(EXEEXT_FOR_BUILD) sysroff.info
246
        ./sysinfo$(EXEEXT_FOR_BUILD) -c <$(srcdir)/sysroff.info >sysroff.c
247
        ./sysinfo$(EXEEXT_FOR_BUILD) -i <$(srcdir)/sysroff.info >>sysroff.c
248
        ./sysinfo$(EXEEXT_FOR_BUILD) -g <$(srcdir)/sysroff.info >>sysroff.c
249
 
250
sysroff.h: sysinfo$(EXEEXT_FOR_BUILD) sysroff.info
251
        ./sysinfo$(EXEEXT_FOR_BUILD) -d <$(srcdir)/sysroff.info >sysroff.h
252
 
253
sysinfo$(EXEEXT_FOR_BUILD): sysinfo.o syslex.o
254
        $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@ sysinfo.o syslex.o
255
 
256
syslex.o: syslex.c sysinfo.h config.h
257
        if [ -r syslex.c ]; then \
258
          $(CC_FOR_BUILD) -c -I. $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) $(NO_WERROR) syslex.c ; \
259
        else \
260
          $(CC_FOR_BUILD) -c -I. -I$(srcdir) $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) $(NO_WERROR) $(srcdir)/syslex.c ;\
261
        fi
262
 
263
sysinfo.o: sysinfo.c
264
        if [ -r sysinfo.c ]; then \
265
          $(CC_FOR_BUILD) -c -I. $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) $(NO_WERROR) sysinfo.c ; \
266
        else \
267
          $(CC_FOR_BUILD) -c -I. $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) $(NO_WERROR) $(srcdir)/sysinfo.c ; \
268
        fi
269
 
270
bin2c$(EXEEXT_FOR_BUILD):
271
        $(CC_FOR_BUILD) -o $@ $(AM_CPPFLAGS) $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) $(srcdir)/bin2c.c $(srcdir)/version.c
272
 
273
embedspu: embedspu.sh
274
        sed "s@^program_transform_name=@program_transform_name=$(program_transform_name)@" < $< > $@
275
        chmod a+x $@
276
 
277
# We need these for parallel make.
278
sysinfo.h: sysinfo.c
279
 
280
# Disable -Werror, if it has been enabled, since old versions of bison/
281
# yacc will produce working code which contain compile time warnings.
282
arparse.o: arparse.c
283
if am__fastdepCC
284
        $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f arparse.c || echo $(srcdir)/`arparse.c $(NO_WERROR)
285
        mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
286
else
287
if AMDEP
288
        source='arparse.c' object='$@' libtool=no @AMDEPBACKSLASH@
289
        DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
290
endif
291
        $(COMPILE) -c `test -f arparse.c || echo $(srcdir)/`arparse.c $(NO_WERROR)
292
endif
293
 
294
arlex.o: arlex.c
295
if am__fastdepCC
296
        $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f arlex.c || echo $(srcdir)/`arlex.c $(NO_WERROR)
297
        mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
298
else
299
if AMDEP
300
        source='arlex.c' object='$@' libtool=no @AMDEPBACKSLASH@
301
        DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
302
endif
303
        $(COMPILE) -c `test -f arlex.c || echo $(srcdir)/`arlex.c $(NO_WERROR)
304
endif
305
 
306
sysroff.o: sysroff.c
307
if am__fastdepCC
308
        $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f sysroff.c || echo $(srcdir)/`sysroff.c $(NO_WERROR)
309
        mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
310
else
311
if AMDEP
312
        source='sysroff.c' object='$@' libtool=no @AMDEPBACKSLASH@
313
        DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
314
endif
315
        $(COMPILE) -c `test -f sysroff.c || echo $(srcdir)/`sysroff.c $(NO_WERROR)
316
endif
317
 
318
defparse.o: defparse.c
319
if am__fastdepCC
320
        $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f defparse.c || echo $(srcdir)/`defparse.c $(NO_WERROR)
321
        mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
322
else
323
if AMDEP
324
        source='defparse.c' object='$@' libtool=no @AMDEPBACKSLASH@
325
        DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
326
endif
327
        $(COMPILE) -c `test -f defparse.c || echo $(srcdir)/`defparse.c $(NO_WERROR)
328
endif
329
 
330
deflex.o: deflex.c
331
if am__fastdepCC
332
        $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f deflex.c || echo $(srcdir)/`deflex.c $(NO_WERROR)
333
        mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
334
else
335
if AMDEP
336
        source='deflex.c' object='$@' libtool=no @AMDEPBACKSLASH@
337
        DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
338
endif
339
        $(COMPILE) -c `test -f deflex.c || echo $(srcdir)/`deflex.c $(NO_WERROR)
340
endif
341
 
342
nlmheader.o: nlmheader.c
343
if am__fastdepCC
344
        $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f nlmheader.c || echo $(srcdir)/`nlmheader.c $(NO_WERROR)
345
        mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
346
else
347
if AMDEP
348
        source='nlmheader.c' object='$@' libtool=no @AMDEPBACKSLASH@
349
        DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
350
endif
351
        $(COMPILE) -c `test -f nlmheader.c || echo $(srcdir)/`nlmheader.c $(NO_WERROR)
352
endif
353
 
354
rcparse.o: rcparse.c
355
if am__fastdepCC
356
        $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f rcparse.c || echo $(srcdir)/`rcparse.c $(NO_WERROR)
357
        mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
358
else
359
if AMDEP
360
        source='rcparse.c' object='$@' libtool=no @AMDEPBACKSLASH@
361
        DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
362
endif
363
        $(COMPILE) -c `test -f rcparse.c || echo $(srcdir)/`rcparse.c $(NO_WERROR)
364
endif
365
 
366
mcparse.o: mcparse.c
367
if am__fastdepCC
368
        $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f mcparse.c || echo $(srcdir)/`mcparse.c $(NO_WERROR)
369
        mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
370
else
371
if AMDEP
372
        source='mcparse.c' object='$@' libtool=no @AMDEPBACKSLASH@
373
        DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
374
endif
375
        $(COMPILE) -c `test -f mcparse.c || echo $(srcdir)/`mcparse.c $(NO_WERROR)
376
endif
377
 
378
rclex.o: rclex.c
379
if am__fastdepCC
380
        $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(srcdir)/rclex.c $(NO_WERROR)
381
        mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
382
else
383
if AMDEP
384
        source='rclex.c' object='$@' libtool=no @AMDEPBACKSLASH@
385
        DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
386
endif
387
        $(COMPILE) -c $(srcdir)/rclex.c $(NO_WERROR)
388
endif
389
 
390
mclex.o: mclex.c
391
if am__fastdepCC
392
        $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(srcdir)/mclex.c $(NO_WERROR)
393
        mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
394
else
395
if AMDEP
396
        source='mclex.c' object='$@' libtool=no @AMDEPBACKSLASH@
397
        DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
398
endif
399
        $(COMPILE) -c $(srcdir)/mclex.c $(NO_WERROR)
400
endif
401
 
402
srconv_SOURCES = srconv.c coffgrok.c $(BULIBS)
403
srconv.o: sysroff.c
404
 
405
dlltool_SOURCES = dlltool.c defparse.y deflex.l $(BULIBS)
406
dlltool_LDADD = $(BFDLIB) $(LIBIBERTY) @LEXLIB@ $(LIBINTL)
407
 
408
dlltool.o:
409
if am__fastdepCC
410
        $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@  $(DLLTOOL_DEFS) $(srcdir)/dlltool.c
411
        mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
412
else
413
if AMDEP
414
        source='dlltool.c' object='$@' libtool=no @AMDEPBACKSLASH@
415
        DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
416
endif
417
        $(COMPILE) -c $(DLLTOOL_DEFS) $(srcdir)/dlltool.c
418
endif
419
 
420
rescoff.o:
421
if am__fastdepCC
422
        $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@  $(DLLTOOL_DEFS) $(srcdir)/rescoff.c
423
        mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
424
else
425
if AMDEP
426
        source='rescoff.c' object='$@' libtool=no @AMDEPBACKSLASH@
427
        DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
428
endif
429
        $(COMPILE) -c $(DLLTOOL_DEFS) $(srcdir)/rescoff.c
430
endif
431
 
432
coffdump_SOURCES = coffdump.c coffgrok.c $(BULIBS)
433
 
434
sysdump_SOURCES = sysdump.c $(BULIBS)
435
sysdump.o: sysroff.c
436
 
437
# coff/sym.h and coff/ecoff.h won't be found by the automatic dependency
438
# scripts, since they are only included conditionally.
439
nlmconv.o: nlmconv.c
440
if am__fastdepCC
441
        ldname=`echo ld | sed '$(transform)'`; \
442
        $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ \
443
          -DLD_NAME="\"$${ldname}\"" @NLMCONV_DEFS@ $(srcdir)/nlmconv.c
444
        mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
445
else
446
if AMDEP
447
        source='nlmconv.c' object='$@' libtool=no @AMDEPBACKSLASH@
448
        DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
449
endif
450
        ldname=`echo ld | sed '$(transform)'`; \
451
        $(COMPILE) -c -DLD_NAME="\"$${ldname}\"" @NLMCONV_DEFS@ $(srcdir)/nlmconv.c
452
endif
453
 
454
nlmconv_SOURCES = nlmconv.c nlmheader.y $(BULIBS)
455
 
456
windres_SOURCES = windres.c resrc.c rescoff.c resbin.c rcparse.y rclex.c \
457
        winduni.c resres.c $(BULIBS)
458
windres_LDADD = $(BFDLIB) $(LIBIBERTY) @LEXLIB@ $(LIBINTL) $(LIBICONV)
459
 
460
windmc_SOURCES = windmc.c mcparse.y mclex.c \
461
        winduni.c $(BULIBS)
462
windmc_LDADD = $(BFDLIB) $(LIBIBERTY) @LEXLIB@ $(LIBINTL) $(LIBICONV)
463
 
464
dllwrap_SOURCES = dllwrap.c version.c
465
dllwrap_LDADD = $(LIBIBERTY) $(LIBINTL)
466
 
467
 
468
EXTRA_DIST = arparse.c arparse.h arlex.c nlmheader.c sysinfo.c sysinfo.h \
469
        syslex.c deflex.c defparse.h defparse.c rcparse.h rcparse.c \
470
        mcparse.h mcparse.c
471
 
472
diststuff: $(EXTRA_DIST) info
473
all: info
474
 
475
DISTCLEANFILES = sysroff.c sysroff.h site.exp site.bak
476
 
477
MOSTLYCLEANFILES = sysinfo$(EXEEXT_FOR_BUILD) bin2c$(EXEEXT_FOR_BUILD) \
478
  binutils.log binutils.sum abcdefgh*
479
mostlyclean-local:
480
        -rm -rf tmpdir
481
 
482
.PHONY: install-exec-local
483
 
484
install-exec-local: install-binPROGRAMS $(bin_PROGRAMS) $(noinst_PROGRAMS)
485
        @list='$(RENAMED_PROGS)'; for p in $$list; do \
486
          if test -f $$p$(EXEEXT); then \
487
            echo " $(LIBTOOL)  --mode=install $(INSTALL_PROGRAM) $$p$(EXEEXT) $(bindir)/`echo $$p|sed -e 's/-new//' -e 's/cxxfilt/$(DEMANGLER_NAME)/'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
488
            $(LIBTOOL)  --mode=install $(INSTALL_PROGRAM) $$p$(EXEEXT) $(DESTDIR)$(bindir)/`echo $$p|sed -e 's/-new//' -e 's/cxxfilt/$(DEMANGLER_NAME)/'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
489
          else :; fi; \
490
        done
491
        $(mkinstalldirs) $(DESTDIR)$(tooldir)/bin
492
        for i in $(TOOL_PROGS); do \
493
          if [ -f $$i$(EXEEXT) ]; then \
494
            j=`echo $$i | sed -e 's/-new//'`; \
495
            k=`echo $$j | sed '$(transform)'`; \
496
            if [ "$(bindir)/$$k" != "$(tooldir)/bin/$$j" ]; then \
497
              rm -f $(DESTDIR)$(tooldir)/bin/$$j$(EXEEXT); \
498
              ln $(DESTDIR)$(bindir)/$$k$(EXEEXT) $(DESTDIR)$(tooldir)/bin/$$j$(EXEEXT) >/dev/null 2>/dev/null \
499
                || $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$i$(EXEEXT) $(DESTDIR)$(tooldir)/bin/$$j$(EXEEXT); \
500
            fi; \
501
          else true; \
502
          fi; \
503
        done

powered by: WebSVN 2.1.0

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