xref: /openbsd/distrib/special/libstubs/Makefile (revision b8e81c95)
1*b8e81c95Sotto#	$OpenBSD: Makefile,v 1.21 2023/04/16 19:46:17 otto Exp $
283dc3f48Sespie
383dc3f48Sespie.include <bsd.own.mk>
483dc3f48SespieLIB=    stubs
54529313bSderaadtSRCS=	db.c setlocale.c sha1.c sha2.c getgrent.c getpwent.c \
63938ed1eSbcook	ethers.c pthread_mutex.c pthread_once.c \
7*b8e81c95Sotto	malloc.c mbrtowc_sb.c sscanf.c vfprintf.c vfscanf.c
88a8e895dSericSRCS+=	asr.c			\
98a8e895dSeric	asr_utils.c		\
108a8e895dSeric	getaddrinfo.c		\
118a8e895dSeric	getaddrinfo_async.c	\
128a8e895dSeric	gethostnamadr.c		\
138a8e895dSeric	gethostnamadr_async.c	\
148a8e895dSeric	getnameinfo.c		\
158a8e895dSeric	getnameinfo_async.c	\
168a8e895dSeric	getnetnamadr.c		\
178a8e895dSeric	getnetnamadr_async.c	\
188a8e895dSeric	getrrsetbyname.c	\
198a8e895dSeric	getrrsetbyname_async.c	\
208a8e895dSeric	res_debug.c		\
218a8e895dSeric	res_init.c		\
228a8e895dSeric	res_mkquery.c		\
238a8e895dSeric	res_query.c		\
248a8e895dSeric	res_search_async.c	\
258a8e895dSeric	res_send.c		\
268a8e895dSeric	res_send_async.c	\
278a8e895dSeric	sethostent.c
288a8e895dSeric
2983dc3f48SespieNOPIC=	Yes
3083dc3f48SespieNOPROFILE=Yes
3183dc3f48Sespie
32d994eebbSguentherCFLAGS+=-DSHA2_SMALL -UYP -DNO_LOG_BAD_DNS_RESPONSES \
33*b8e81c95Sotto	-DFLOATING_POINT -DASRNODEBUG -D__LIBC__ -DMALLOC_SMALL \
348e9406beSderaadt	-I${LIBCSRCDIR}/include -I${LIBCSRCDIR}/hidden \
358e9406beSderaadt	-I${LIBCSRCDIR}/asr -I${LIBCSRCDIR}/locale -I${LIBCSRCDIR}/gdtoa \
36347ad980Sguenther	-I${LIBCSRCDIR}/arch/${MACHINE_CPU}/gdtoa -I${LIBCSRCDIR}/stdio \
37347ad980Sguenther	-include namespace.h
388e9406beSderaadtCFLAGS+=
3983dc3f48Sespie
4083dc3f48SespieLIBCSRCDIR=${.CURDIR}/../../../lib/libc
4183dc3f48Sespie
42921eb118Sderaadt.PATH: ${.CURDIR}/../../../lib/libc/hash
438c128bfbSguenther.PATH: ${.CURDIR}/../../../lib/libc/gen
448a8e895dSeric.PATH: ${.CURDIR}/../../../lib/libc/asr
458c128bfbSguenther.PATH: ${.CURDIR}/../../../lib/libc/net
46c9b8e388Sstsp.PATH: ${.CURDIR}/../../../lib/libc/stdio
47*b8e81c95Sotto.PATH: ${.CURDIR}/../../../lib/libc/stdlib
48921eb118Sderaadt
4983dc3f48Sespie.include <bsd.lib.mk>
50