diff options
author | Per Bothner <per@bothner.com> | 1992-08-05 04:15:37 +0000 |
---|---|---|
committer | Per Bothner <per@bothner.com> | 1992-08-05 04:15:37 +0000 |
commit | 917bffa7f6dd3a04195a790595a2088683386227 (patch) | |
tree | fb5e23a8c1dcef367ae67cc63fed7ea9b45fe0f2 /ld/Makefile.in | |
parent | c7a535938ed0ac4a601897462e0012ed7b2430e1 (diff) | |
download | gdb-917bffa7f6dd3a04195a790595a2088683386227.zip gdb-917bffa7f6dd3a04195a790595a2088683386227.tar.gz gdb-917bffa7f6dd3a04195a790595a2088683386227.tar.bz2 |
* cdtest-main.cc, cdtest-func.cc, cdtest-foo.h, cdtest-foo.cc,
cdtest.exp: A test program (copied from libg++/test-install)
that tests that constructor and destructors are handled
corrrectly.
Diffstat (limited to 'ld/Makefile.in')
-rw-r--r-- | ld/Makefile.in | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/ld/Makefile.in b/ld/Makefile.in index e9c98b0..3d54a64 100644 --- a/ld/Makefile.in +++ b/ld/Makefile.in @@ -64,6 +64,8 @@ version= # Seach path to override the default search path for -lfoo libraries. # If LIB_PATH is empty, the ones in the script (if any) are left alone. +# (The default is usually /lib:usr/lib:/usr/local/lib, unless building +# a cross-linker, in which case the default is empty. See genscripts.sh.) # Otherwise, they are replaced with the ones given in LIB_PATH, # which may have the form: LIB_PATH=/lib:/usr/local/lib LIB_PATH = @@ -90,16 +92,21 @@ HOSTING_CRT0=/lib/crt0.o HOSTING_LIBS=`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else echo $(libdir)/libgcc.a; fi` -lc HOSTING_EMU=LDEMULATION=$(EMUL); export LDEMULATION +C++ = g++ -fgnu-linker + ### Host, target, and site specific Makefile fragments come in here. ### LINTFLAGS = $(INCLUDES) $(EXTRA_DEF) -.SUFFIXES: .y .x .xr .xu .xn .xbn .sc .scu .scr .scn $(SUFFIXES) +.SUFFIXES: .y .x .xr .xu .xn .xbn .sc .scu .scr .scn $(SUFFIXES) .cc .c.o: $(CC) -c $(CFLAGS) $(INCLUDES) $(HDEFINES) $(TDEFINES) $(CDEFINES) $< +.cc.o: + $(C++) -c $(CFLAGS) -I$(srcdir) $< + # 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. @@ -145,7 +152,7 @@ STAGESTUFF = *.x *.x[runN] *.sc[runN] $(GENERATED_SOURCES) $(GENERATED_HEADERS) all: Makefile $(LD_PROG) -check: bootstrap +check: bootstrap check-cdtest info: ld.info ldgram.h ldgram.c: ldgram.y @@ -252,6 +259,14 @@ ld3: ld2 bootstrap: ld3 cmp ld2 ld3 +cdtest: cdtest-main.o cdtest-func.o cdtest-foo.o + $(HOSTING_EMU); ./ld.new -o cdtest $(HOSTING_CRT0) \ + cdtest-main.o cdtest-func.o cdtest-foo.o $(HOSTING_LIBS) + +check-cdtest: cdtest $(srcdir)/cdtest.exp + ./cdtest >cdtest.out + diff $(srcdir)/cdtest.exp cdtest.out + ###################################################################### # DOCUMENTATION TARGETS # TeX output @@ -391,7 +406,7 @@ de-stage3: force clean: -rm -f TAGS $(STAGESTUFF) -rm -f ld.?? ld.??? ldlex.[qp] - -rm -f ld ld1 ld2 ld3 *.o y.output + -rm -f ld ld1 ld2 ld3 *.o y.output cdtest cdtest.out lintlog:$(SOURCES) Makefile $(LINT) -abhxzn $(LINTFLAGS) $(LINTSOURCES) \ |