xref: /dflybsd-src/gnu/usr.bin/cc80/support-libs/libiberty_pic/Makefile (revision 2233c95bde434daa782d51440e2219ed852a02dd)
1GCC_NO_PATH=	yes
2GCC_NO_LIBS=	yes
3LOCAL_CONFIG=	yes
4.include "../Makefile.inc"
5.PATH:	${GCCDIR}/libiberty
6
7LIB=		iberty_pic
8NOPROFILE=	yes
9INTERNALLIB=	yes
10
11# Bare minimum for liblto_plugin.so, this is a special case
12NOSHARED=	YES
13CFLAGS+=	-fpic
14
15GOOD_CONFIG=	${.CURDIR}/../libiberty/config.h
16CLEANFILES=	config.h
17
18SRCS=		argv.c \
19		concat.c \
20		hashtab.c \
21		make-temp-file.c \
22		pex-common.c \
23		pex-unix.c \
24		safe-ctype.c \
25		simple-object-coff.c \
26		simple-object-elf.c \
27		simple-object-mach-o.c \
28		simple-object-xcoff.c \
29		simple-object.c \
30		vprintf-support.c \
31		xasprintf.c \
32		xexit.c \
33		xmalloc.c \
34		xstrdup.c \
35		xstrerror.c \
36		xvasprintf.c
37
38config.h: ${GOOD_CONFIG}
39	cp ${.ALLSRC} .
40
41depend all: config.h
42
43.include <bsd.lib.mk>
44