2a53f3fb35
Get rid of the INTERNALSTATICLIB knob and just use plain INTERNALLIB. INTERNALLIB now means to build static library only and don't install anything. Added a NOINSTALLLIB knob for libpam/modules. To not build any library at all, just do not set LIB.
25 lines
501 B
Makefile
25 lines
501 B
Makefile
# $FreeBSD$
|
|
|
|
.PATH: ${.CURDIR}/../common
|
|
|
|
SRCS= crt1.c crti.S crtn.S
|
|
OBJS= ${SRCS:N*.h:R:S/$/.o/g}
|
|
OBJS+= gcrt1.o
|
|
CFLAGS+= -elf -Wall \
|
|
-I${.CURDIR}/../common \
|
|
-I${.CURDIR}/../../libc/include
|
|
LDFLAGS+= -elf
|
|
|
|
all: ${OBJS} ${SOBJS}
|
|
|
|
gcrt1.o: crt1.c
|
|
${CC} ${CFLAGS} -DGCRT -c -o gcrt1.o ${.CURDIR}/crt1.c
|
|
|
|
realinstall:
|
|
.for file in ${OBJS} ${SOBJS}
|
|
${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
|
|
${file} ${DESTDIR}${LIBDIR}/${file:S/.So$/S.o/}
|
|
.endfor
|
|
|
|
.include <bsd.lib.mk>
|