config root man

Current Path : /usr/src/tools/regression/tls/ttls3/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //usr/src/tools/regression/tls/ttls3/Makefile

# $FreeBSD: release/9.1.0/tools/regression/tls/ttls3/Makefile 133835 2004-08-16 09:35:49Z dfr $

all: ttls3

LDFLAGS=-shared -Bsymbolic --allow-shlib-undefined
CFLAGS+= -lpthread
CFLAGS+= -Wl,--rpath=${.OBJDIR}

tls-lib: 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 ${.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 ${.CURDIR}/tls-test.c

clean:
	rm -f *.o libtls.so* libtls-test.so* ttls3

.include <bsd.obj.mk>

Man Man