diff options
author | K. Richard Pixley <rich@cygnus> | 1992-04-22 23:35:47 +0000 |
---|---|---|
committer | K. Richard Pixley <rich@cygnus> | 1992-04-22 23:35:47 +0000 |
commit | 77b19d3d3e709d380ffae14446e6d22b78701038 (patch) | |
tree | 81f133ece3350e4c831954010b635a4c80f21b49 /ld/Makefile.in | |
parent | e72c4b3ab89ee777f307c97eef0830414919f448 (diff) | |
download | gdb-77b19d3d3e709d380ffae14446e6d22b78701038.zip gdb-77b19d3d3e709d380ffae14446e6d22b78701038.tar.gz gdb-77b19d3d3e709d380ffae14446e6d22b78701038.tar.bz2 |
rework CFLAGS such that they can be passed on command line to make
Diffstat (limited to 'ld/Makefile.in')
-rw-r--r-- | ld/Makefile.in | 26 |
1 files changed, 8 insertions, 18 deletions
diff --git a/ld/Makefile.in b/ld/Makefile.in index 1a3317c..d320ec5 100644 --- a/ld/Makefile.in +++ b/ld/Makefile.in @@ -53,10 +53,11 @@ INSTALL_DATA = $(INSTALL) AR = ar AR_FLAGS = qv +CFLAGS = -g BISON = bison -y MAKEINFO = makeinfo RANLIB = ranlib -LEX = `if [ -f ../flex/flex ] ; then echo ../flex/flex ; else echo flex ; fi` +LEX = `if [ -f ../flex/flex ] ; then echo ../flex/flex -S$(srcdir)/../flex/flex.skel ; else echo flex ; fi` #version=/`./../gcc/gcc -dumpversion` version= @@ -70,7 +71,6 @@ LIB_PATH = BASEDIR = ../.. INCLUDE = $(srcdir)/../include INCLUDES = -I. -I$(srcdir) -I$(INCLUDE) -MINUS_G = -g # Where to find texinfo.tex to format docn with TeX TEXIDIR = $(srcdir)/../texinfo/fsf @@ -88,11 +88,13 @@ ROFF = groff ### Host, target, and site specific Makefile fragments come in here. ### -CFLAGS = $(INCLUDES) $(MINUS_G) $(HDEFINES) $(TDEFINES) $(CDEFINES) LINTFLAGS = $(INCLUDES) $(EXTRA_DEF) .SUFFIXES: .y .x .xr .xu .xn .xbn .sc .scu .scr .scn $(SUFFIXES) +.c.o: + $(CC) -c $(CFLAGS) $(INCLUDES) $(HDEFINES) $(TDEFINES) $(CDEFINES) $< + # go directly to ld.new in case this ld isn't capable of # linking native object on this host. It can be renamed on # install. @@ -147,7 +149,7 @@ ldgram.h ldgram.c: ldgram.y mv -f y.tab.h ldgram.h ldmain.o: ldmain.c - $(CC) $(CFLAGS) -DDEFAULT_EMULATION='"$(EMUL)"' -c $< + $(CC) $(CFLAGS) $(INCLUDES) $(HDEFINES) $(TDEFINES) $(CDEFINES) -DDEFAULT_EMULATION='"$(EMUL)"' -c $< ldemul-list.h: Makefile (echo "/* This file is automatically generated. DO NOT EDIT! */";\ @@ -223,7 +225,7 @@ ld__gld960.c: $(srcdir)/gld960.sh \ ${GENSCRIPTS} gld960.sh $(LD_PROG): $(OFILES) $(BFDLIB) $(LIBIBERTY) - $(CC) $(CFLAGS) $(LDFLAGS) -o $(LD_PROG) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(LOADLIBES) + $(CC) $(CFLAGS) $(INCLUDES) $(HDEFINES) $(TDEFINES) $(CDEFINES) $(LDFLAGS) -o $(LD_PROG) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(LOADLIBES) # Rules for testing by relinking ld itself. @@ -334,7 +336,7 @@ ld-index.me: ld.me ###################################################################### ./mkscript: $(srcdir)/mkscript.c - $(CC) $(CFLAGS) $(LDFLAGS) -o mkscript $(srcdir)/mkscript.c $(LOADLIBES) + $(CC) $(CFLAGS) $(INCLUDES) $(HDEFINES) $(TDEFINES) $(CDEFINES) $(LDFLAGS) -o mkscript $(srcdir)/mkscript.c $(LOADLIBES) ldlex.c: ldlex.l ldgram.h ldlex.o: ldlex.c ldgram.h @@ -421,18 +423,6 @@ install-info: info clean-info: -rm -rf *.info* -# Something like the following might make sense for install, but doesn't work -# - it is too fragile, depending on a gcc binary int the right place. -# Perhaps using gcc/version.c might work? -# # If $(gcclibdir) exists, install ld there, and put a link to it -# # from $(bindir); otherwise put ld in $(bindir). -# if ([ -x ./../gcc/gcc -a -d $(gcclibdir) ]); then \ -# $(INSTALL_PROGRAM) ld.new $(gcclibdir)/ld; \ -# cd $(bindir); rm -f ld; ln -s $(gcclibdir)/ld ld; \ -# else \ -# $(INSTALL_PROGRAM) ld.new $(bindir)/ld; \ -# fi - #----------------------------------------------------------------------------- # 'STANDARD' GNU/960 TARGETS BELOW THIS POINT # |