ca344dff5c
to match current gdb output. Update due to using auto-solib-limit for limiting instead of overloading auto-solib-add. * gdb.hp/gdb.base-hp/so-thresh.mk: Always use "cc" to build the test program. * gdb.c++/templates.exp: Use "hppa64-*-*", not "hppa2.0w-*-*" * gdb.hp/gdb.base-hp/dollar.exp: Likewise * gdb.hp/gdb.base-hp/pxdb.exp: Likewise. * gdb.hp/gdb.base-hp/reg-pa64.exp: Likewise. * gdb.hp/gdb.base-hp/reg.exp: Likewise. * gdb.hp/gdb.compat/xdb3.exp: Likewise. * gdb.hp/gdb.defects/bs15503.exp: Likewise. * gdb.hp/gdb.objdbg/objdbg01.exp: Likewise * gdb.hp/gdb.objdbg/objdbg02.exp: Likewise * gdb.hp/gdb.objdbg/objdbg03.exp: Likewise * gdb.hp/gdb.threads-hp/usrthbasic.exp: Likewise. * gdb.hp/gdb.threads-hp/usrthcore.exp: Likewise. * gdb.hp/gdb.threads-hp/usrthfork.exp: Likewise.
74 lines
2.2 KiB
Makefile
74 lines
2.2 KiB
Makefile
# Make file for so-thresh test
|
|
|
|
OBJDIR=.
|
|
SRCDIR=.
|
|
CFLAGS = +DA1.1 -g
|
|
CC=cc
|
|
|
|
# This is how to build this generator.
|
|
genso-thresh.o: ${SRCDIR}/genso-thresh.c
|
|
$(CC) $(CFLAGS) -o genso-thresh.o -c ${SRCDIR}/genso-thresh.c
|
|
genso-thresh: genso-thresh.o
|
|
$(CC) $(CFLAGS) -o genso-thresh genso-thresh.o
|
|
|
|
# This is how to run this generator.
|
|
# This target should be made before the 'all' target,
|
|
# to ensure that the shlib sources are all available.
|
|
require_shlibs: genso-thresh
|
|
if ! [ -a lib00-so-thresh.c ] ; then \
|
|
genso-thresh ; \
|
|
fi
|
|
if ! [ -a lib01-so-thresh.c ] ; then \
|
|
genso-thresh ; \
|
|
fi
|
|
if ! [ -a lib02-so-thresh.c ] ; then \
|
|
genso-thresh ; \
|
|
fi
|
|
|
|
# This is how to build all the shlibs.
|
|
# Be sure to first make the require_shlibs target!
|
|
lib00-so-thresh.o: lib00-so-thresh.c
|
|
$(CC) $(CFLAGS) +Z -o lib00-so-thresh.o -c lib00-so-thresh.c
|
|
lib00-so-thresh.sl: lib00-so-thresh.o
|
|
$(LD) $(LDFLAGS) -b -o lib00-so-thresh.sl lib00-so-thresh.o
|
|
lib01-so-thresh.o: lib01-so-thresh.c
|
|
$(CC) $(CFLAGS) +Z -o lib01-so-thresh.o -c lib01-so-thresh.c
|
|
lib01-so-thresh.sl: lib01-so-thresh.o
|
|
$(LD) $(LDFLAGS) -b -o lib01-so-thresh.sl lib01-so-thresh.o
|
|
lib02-so-thresh.o: lib02-so-thresh.c
|
|
$(CC) $(CFLAGS) +Z -o lib02-so-thresh.o -c lib02-so-thresh.c
|
|
lib02-so-thresh.sl: lib02-so-thresh.o
|
|
$(LD) $(LDFLAGS) -b -o lib02-so-thresh.sl lib02-so-thresh.o
|
|
|
|
|
|
|
|
|
|
# For convenience, here's names for all pieces of all shlibs.
|
|
SHLIB_SOURCES = \
|
|
lib00-so-thresh.c \
|
|
lib01-so-thresh.c \
|
|
lib02-so-thresh.c
|
|
|
|
SHLIB_OBJECTS = $(SHLIB_SOURCES:.c=.o)
|
|
SHLIBS = $(SHLIB_SOURCES:.c=.sl)
|
|
SHLIB_NAMES = $(SHLIB_SOURCES:.c=)
|
|
EXECUTABLES = $(SHLIBS) genso-thresh so-thresh
|
|
OBJECT_FILES = $(SHLIB_OBJECTS) genso-thresh.o so-thresh.o
|
|
|
|
shlib_objects: $(SHLIB_OBJECTS)
|
|
shlibs: $(SHLIBS)
|
|
|
|
# This is how to build the debuggable testcase that uses the shlibs.
|
|
so-thresh.o: so-thresh.c
|
|
$(CC) $(CFLAGS) -o so-thresh.o -c so-thresh.c
|
|
so-thresh: shlibs so-thresh.o
|
|
$(LD) $(LDFLAGS) -o so-thresh -lc -L${OBJDIR} -c so-thresh.lopt /opt/langtools/lib/end.o /lib/crt0.o so-thresh.o
|
|
|
|
# Yeah, but you should first make the require_shlibs target!
|
|
all: so-thresh genso-thresh
|
|
|
|
# To remove everything built via this makefile...
|
|
clean:
|
|
rm -f lib0*-so-thresh.*
|
|
rm -f *.o genso-thresh so-thresh.lopt so-thresh.c
|
|
rm -f so-thresh
|