mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-01 00:18:15 +01:00
Adding embryonic C++ shared lib support (all tests positive so far).
This commit is contained in:
parent
3a74ab376f
commit
4344c041d1
@ -1,30 +1,34 @@
|
||||
# from: @(#)Makefile 5.6 (Berkeley) 5/22/91
|
||||
# $Id: Makefile,v 1.6 1993/11/16 02:22:16 paul Exp $
|
||||
# $Id: Makefile,v 1.7 1993/11/18 00:08:03 ache Exp $
|
||||
|
||||
CFLAGS+= -DLIBC_SCCS -DDYNAMIC
|
||||
OBJS= crt0.o gcrt0.o
|
||||
OBJS= crt0.o gcrt0.o crt1.so
|
||||
CLEANFILES+= gmon.o moncrt0.o core a.out
|
||||
|
||||
all: ${OBJS}
|
||||
|
||||
crt0.o: crt0.c
|
||||
${CC} ${CFLAGS} -c -DCRT0 ${.ALLSRC}
|
||||
# ${LD} -x -r ${.TARGET}
|
||||
# mv a.out ${.TARGET}
|
||||
${CC} ${CFLAGS} -c -DCRT0 ${.ALLSRC} -o ${.TARGET}
|
||||
${LD} -x -r ${.TARGET}
|
||||
mv a.out ${.TARGET}
|
||||
|
||||
crt1.so: crt1.c
|
||||
${CC} ${CFLAGS} -fpic -c ${.ALLSRC} -o ${.TARGET}
|
||||
${LD} -X -r ${.TARGET}
|
||||
@mv a.out ${.TARGET}
|
||||
|
||||
moncrt0.o: crt0.c
|
||||
${CC} ${CFLAGS} -c -DMCRT0 ${.ALLSRC} -o ${.TARGET}
|
||||
# ${LD} -x -r ${.TARGET}
|
||||
# mv a.out ${.TARGET}
|
||||
${LD} -x -r ${.TARGET}
|
||||
mv a.out ${.TARGET}
|
||||
|
||||
gcrt0.o: moncrt0.o gmon.o
|
||||
# ${LD} -x -r -o ${.TARGET} moncrt0.o gmon.o
|
||||
${LD} -r -o ${.TARGET} moncrt0.o gmon.o
|
||||
${LD} -x -r -o ${.TARGET} moncrt0.o gmon.o
|
||||
|
||||
gmon.o: gmon.c gmon.h
|
||||
${CC} ${CFLAGS} -c ${.IMPSRC}
|
||||
# ${LD} -x -r ${.TARGET}
|
||||
# mv a.out ${.TARGET}
|
||||
${CC} ${CFLAGS} -c ${.IMPSRC} -o ${.TARGET}
|
||||
${LD} -x -r ${.TARGET}
|
||||
mv a.out ${.TARGET}
|
||||
|
||||
install:
|
||||
install ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 ${OBJS} \
|
||||
|
Loading…
Reference in New Issue
Block a user