Remove some debug cruft from the Makefiles and make them ${.OBJDIR}

friendly.
This commit is contained in:
dfr 2004-08-16 09:35:49 +00:00
parent cffa7390a6
commit b1ed8872f7
3 changed files with 8 additions and 17 deletions

View File

@ -1,11 +1,8 @@
# $FreeBSD$
PROG= ttls1
LDADD+= -L../libxx -lxx -Wl,--rpath=${.CURDIR}/../libxx
LDADD+= -L../libyy -lyy -Wl,--rpath=${.CURDIR}/../libyy
LDADD+= -L${.CURDIR}/../../../../lib/libc -lc
LDADD+= -Wl,--rpath=${.CURDIR}/../../../../lib/libc
LDADD+= -Wl,--dynamic-linker=${.CURDIR}/../../../../libexec/rtld-elf/ld-elf.so.1
LDADD+= -L../libxx -lxx -Wl,--rpath=${.OBJDIR}/../libxx
LDADD+= -L../libyy -lyy -Wl,--rpath=${.OBJDIR}/../libyy
NOMAN= t
DEBUG_FLAGS= -g

View File

@ -2,12 +2,6 @@
PROG= ttls2
LDADD+= -lpthread
LDADD+= -Wl,--rpath=${.CURDIR}/../../../../lib/libpthread
#LDADD+= -lthr
#LDADD+= -Wl,--rpath=${.CURDIR}/../../../../lib/libthr
LDADD+= -L${.CURDIR}/../../../../lib/libc -lc
LDADD+= -Wl,--rpath=${.CURDIR}/../../../../lib/libc
LDADD+= -Wl,--dynamic-linker=${.CURDIR}/../../../../libexec/rtld-elf/ld-elf.so.1
NOMAN= t
DEBUG_FLAGS= -g

View File

@ -3,22 +3,22 @@
all: ttls3
LDFLAGS=-shared -Bsymbolic --allow-shlib-undefined
CFLAGS+= -L${.CURDIR}/../../../../lib/libc -lc -lthr
CFLAGS+= -Wl,--rpath=${.CURDIR}/../../../../lib/libc
CFLAGS+= -lpthread
CFLAGS+= -Wl,--rpath=${.OBJDIR}
CFLAGS+= -Wl,--dynamic-linker=${.CURDIR}/../../../../libexec/rtld-elf/ld-elf.so.1
tls-lib: elftls.S
gcc -c -o elftls.o elftls.S
gcc -c -o elftls.o ${.CURDIR}/elftls.S
ld $(LDFLAGS) elftls.o -soname libtls.so.1 -o libtls.so.1
ln -sf libtls.so.1 libtls.so
tls-test-lib: tls-lib tls-test-lib.c
gcc -c -o tls-test.o tls-test-lib.c
gcc -c -o tls-test.o ${.CURDIR}/tls-test-lib.c
ld $(LDFLAGS) tls-test.o libtls.so.1 -rpath=${.OBJDIR} -soname libtls-test.so.1 -o libtls-test.so.1
ttls3: tls-test-lib tls-test.c
gcc $(CFLAGS) -rdynamic -o ttls3 tls-test.c
gcc $(CFLAGS) -rdynamic -o ttls3 ${.CURDIR}/tls-test.c
clean:
rm -f *.o libtls.so* libtls-test.so* ttls3
.include <bsd.obj.mk>