aboutsummaryrefslogtreecommitdiff
path: root/gas/Makefile.in
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1997-03-21 20:48:27 +0000
committerIan Lance Taylor <ian@airs.com>1997-03-21 20:48:27 +0000
commit949f1310ded19a8da9d4f4681e77bb20cb64a2e8 (patch)
tree6b3ee49e8a1a7de6c85af616a31562c45bb85e9e /gas/Makefile.in
parentf76db60bbb5ba8c32148bb99df20a18280b5fd6b (diff)
downloadgdb-949f1310ded19a8da9d4f4681e77bb20cb64a2e8.zip
gdb-949f1310ded19a8da9d4f4681e77bb20cb64a2e8.tar.gz
gdb-949f1310ded19a8da9d4f4681e77bb20cb64a2e8.tar.bz2
* configure.in: Don't set files and links. Don't call
AC_LINK_FILES. Substitute te_file. Create targ-cpu.h, obj-format.h, targ-env.h, and itbl-cpu.h in AC_OUTPUT. * configure: Rebuild. * Makefile.in (TARG_CPU_C): New variable. (TARG_CPU_O, TARG_CPU_H): New variables. (OBJ_FORMAT_C, OBJ_FORMAT_O, OBJ_FORMAT_H): New variables. (TARG_ENV_H, ATOF_TARG_C, ATOF_TARG_O): New variables. (SOURCES): Rename from REAL_SOURCES. Delete old definition. (LINKED_SOURCES): Remove. (HEADERS): Rename from REAL_HEADERS. Delete old definition. (LINKED_HEADERS): Remove. (OBJS): Use $(TARG_CPU_O), etc., rather than targ-cpu.o, etc. ($(OBJS)): Depend upon $(TARG_ENV_H), etc., rather than targ-cpu.h, etc. ($(TARG_CPU_O), $(OBJ_FORMAT_O) $(ATOF_TARG_O)): New targets. (targ-cpu.o, obj-format.o, atof-targ.o): Remove targets. (itbl-cpu.h): Remove target. (DISTCLEAN_HERE): Remove targ-cpu.c, obj-format.c, atof-targ.c, atof-targ.h.
Diffstat (limited to 'gas/Makefile.in')
-rw-r--r--gas/Makefile.in66
1 files changed, 29 insertions, 37 deletions
diff --git a/gas/Makefile.in b/gas/Makefile.in
index 1b1afe1..cf2c0c1 100644
--- a/gas/Makefile.in
+++ b/gas/Makefile.in
@@ -110,6 +110,16 @@ RUNTEST = `if [ -f $${srcdir}/../dejagnu/runtest ] ; then \
fi`
RUNTESTFLAGS=
+TARG_CPU_C = $(srcdir)/config/tc-@target_cpu_type@.c
+TARG_CPU_O = tc-@target_cpu_type@.o
+TARG_CPU_H = $(srcdir)/config/tc-@target_cpu_type@.h
+OBJ_FORMAT_C = $(srcdir)/config/obj-@obj_format@.c
+OBJ_FORMAT_O = obj-@obj_format@.o
+OBJ_FORMAT_H = $(srcdir)/config/obj-@obj_format@.h
+TARG_ENV_H = $(srcdir)/config/te-@te_file@.h
+ATOF_TARG_C = $(srcdir)/config/atof-@atof@.c
+ATOF_TARG_O = atof-@atof@.o
+
# use @target_cpu_type@ for refering to configured target name
IT_HDRS=itbl-parse.h $(srcdir)/itbl-ops.h
IT_SRCS=itbl-parse.c itbl-lex.c $(srcdir)/itbl-ops.c
@@ -118,7 +128,7 @@ IT_OBJS=itbl-parse.o itbl-lex.o itbl-ops.o
# Lists of files for various purposes.
-REAL_SOURCES = \
+SOURCES = \
$(srcdir)/app.c \
$(srcdir)/as.c \
$(srcdir)/atof-generic.c \
@@ -144,15 +154,7 @@ REAL_SOURCES = \
$(srcdir)/ecoff.c \
$(srcdir)/stabs.c
-# in an expedient order
-LINKED_SOURCES = \
- targ-cpu.c \
- obj-format.c \
- atof-targ.c
-
-SOURCES = $(LINKED_SOURCES) $(REAL_SOURCES)
-
-REAL_HEADERS = \
+HEADERS = \
$(srcdir)/as.h \
$(srcdir)/bignum.h \
$(srcdir)/expr.h \
@@ -171,22 +173,14 @@ REAL_HEADERS = \
$(srcdir)/write.h \
$(srcdir)/ecoff.h
-LINKED_HEADERS = \
- targ-env.h \
- targ-cpu.h \
- obj-format.h \
- atof-targ.h
-
-HEADERS = $(LINKED_HEADERS) $(REAL_HEADERS)
-
TE_OBJS=
# @target_frag@
OBJS = \
- targ-cpu.o \
- obj-format.o \
- atof-targ.o \
+ $(TARG_CPU_O) \
+ $(OBJ_FORMAT_O) \
+ $(ATOF_TARG_O) \
app.o \
as.o \
atof-generic.o \
@@ -268,9 +262,9 @@ $(OBJS): @ALL_OBJ_DEPS@
as.new: $(OBJS) $(LIBDEPS)
$(HLDENV) $(CC) $(HLDFLAGS) $(ALL_CFLAGS) $(LDFLAGS) -o as.new $(OBJS) $(LIBS) $(LOADLIBES)
-$(OBJS): config.h as.h targ-env.h obj-format.h targ-cpu.h flonum.h expr.h \
- struc-symbol.h write.h frags.h hash.h read.h symbols.h tc.h obj.h \
- listing.h bignum.h $(srcdir)/../include/libiberty.h
+$(OBJS): config.h as.h $(TARG_ENV_H) $(OBJ_FORMAT_H) $(TARG_CPU_H) flonum.h \
+ expr.h struc-symbol.h write.h frags.h hash.h read.h symbols.h tc.h \
+ obj.h listing.h bignum.h $(srcdir)/../include/libiberty.h
gasp.new: $(GASPOBJS) ../libiberty/libiberty.a
$(CC) $(ALL_CFLAGS) $(LDFLAGS) -o gasp.new $(GASPOBJS) ../libiberty/libiberty.a $(LOADLIBES)
@@ -377,6 +371,15 @@ TARG_CPU_DEP_w65 = $(srcdir)/../opcodes/w65-opc.h subsegs.h \
$(srcdir)/../include/obstack.h
TARG_CPU_DEP_z8k = $(srcdir)/../opcodes/z8k-opc.h
+# The implicit .c.o rule doesn't work here, perhaps because of the
+# variables, or perhaps because the sources are not on vpath.
+$(TARG_CPU_O): $(TARG_CPU_C) $(TARG_CPU_DEP_@target_cpu_type@)
+ $(CC) -c $(ALL_CFLAGS) $(CPPFLAGS) $(INCLUDES) $(TARG_CPU_C)
+$(OBJ_FORMAT_O): $(OBJ_FORMAT_C)
+ $(CC) -c $(ALL_CFLAGS) $(CPPFLAGS) $(INCLUDES) $(OBJ_FORMAT_C)
+$(ATOF_TARG_O): $(ATOF_TARG_C)
+ $(CC) -c $(ALL_CFLAGS) $(CPPFLAGS) $(INCLUDES) $(ATOF_TARG_C)
+
gasp.o : gasp.c sb.h macro.h config.h
sb.o : sb.c sb.h config.h
macro.o : macro.c macro.h sb.h hash.h config.h
@@ -410,9 +413,6 @@ ecoff.o : ecoff.c ecoff.h \
$(srcdir)/../include/aout/stab_gnu.h
stabs.o : stabs.c subsegs.h $(srcdir)/../include/aout/stab_gnu.h \
$(srcdir)/../include/obstack.h
-atof-targ.o : atof-targ.c
-obj-format.o : obj-format.c
-targ-cpu.o : targ-cpu.c $(TARG_CPU_DEP_@target_cpu_type@) $(IT_HDRS)
obj-elf.o : $(srcdir)/config/obj-elf.c
$(CC) -c $(ALL_CFLAGS) $(CPPFLAGS) $(INCLUDES) $(srcdir)/config/obj-elf.c
@@ -440,7 +440,6 @@ m68k-parse.o: m68k-parse.c $(srcdir)/config/m68k-parse.h
# The instruction table specification lexical analyzer and parser.
-itbl-cpu.h : $(srcdir)/config/itbl-@target_cpu_type@.h
itbl-parse.h : $(srcdir)/itbl-parse.y
itbl-parse.c : $(srcdir)/itbl-parse.y
itbl-lex.c : $(srcdir)/itbl-lex.l
@@ -478,12 +477,6 @@ IT_TEST_OBJS= itbl-parse.o itbl-lex.o itbl-test-ops.o
itbl-test: $(IT_TEST_OBJS) itbl-test.o $(LIBDEPS)
$(CC) $(ALL_CFLAGS) $(LDFLAGS) -o itbl-test itbl-test.o $(IT_TEST_OBJS) $(LIBS)
-# target itbl definitions for configuring coprocessor itbl support.
-# configure should have taken care of this for us...
-itbl-cpu.h: $(srcdir)/config/itbl-@target_cpu_type@.h
- ln -s $(srcdir)/config/itbl-@target_cpu_type@.h itbl-cpu.h
-
-
# Remake the info files.
doc: $(srcdir)/as.info
@@ -503,9 +496,8 @@ clean mostlyclean: clean-here
# Like clean but also delete the links made to configure gas.
-DISTCLEAN_HERE = config.status Makefile targ-env.h targ-cpu.h \
- targ-cpu.c obj-format.h obj-format.c atof-targ.c TAGS \
- atof-targ.h itbl-cpu.h \
+DISTCLEAN_HERE = config.status Makefile targ-env.h targ-cpu.h obj-format.h \
+ TAGS itbl-cpu.h \
config-stamp config.h conf config.log config.cache .gdbinit \
testsuite/Makefile testsuite/config.status