3923b0019c
lib.c: Pull in archives containing definitions needed by shared objects. warnings.c: Less spurious "undefined symbol" msgs for shared library defined symbols. ld.c: Do a better job of recognising data in text segments, eg. `const char []'. shlib.c,ld/rtld/{Makefile rtld.c} Use strsep() in stead of strtok() and restore colons in eg. env. vars.
25 lines
531 B
Makefile
25 lines
531 B
Makefile
# $Id: Makefile,v 1.3 1993/11/08 13:20:39 pk Exp $
|
|
|
|
PROG= ld.so
|
|
SRCS= mdprologue.S rtld.c shlib.c etc.c md.c
|
|
NOMAN= noman
|
|
LDDIR?= $(.CURDIR)/..
|
|
#PICFLAG=-pic
|
|
PICFLAG=-fpic
|
|
CFLAGS += -I$(LDDIR) -I$(.CURDIR) -I$(LDDIR)/$(MACHINE) -O $(PICFLAG) -DRTLD
|
|
LDFLAGS = -Bshareable -Bsymbolic -assert nosymbolic
|
|
LIBS = -lc_pic
|
|
BINDIR= /usr/libexec
|
|
|
|
.PATH: $(LDDIR) $(LDDIR)/$(MACHINE)
|
|
|
|
.SUFFIXES: .S
|
|
|
|
$(PROG):
|
|
$(LD) -o $(PROG) $(LDFLAGS) $(OBJS) $(LIBS) $(LDADD)
|
|
|
|
.S.o:
|
|
$(CPP) $(.IMPSRC) | $(AS) -k -o $(.TARGET) -
|
|
|
|
.include <bsd.prog.mk>
|