freebsd-dev/libexec/rtld-aout/Makefile
1993-11-03 23:41:59 +00:00

25 lines
522 B
Makefile

# $Id: Makefile,v 1.2 1993/10/27 00:55:24 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)
.S.o:
$(CPP) $(.IMPSRC) | $(AS) -k -o $(.TARGET) -
.include <bsd.prog.mk>