HardenedBSD/libexec/rtld-aout/Makefile

25 lines
542 B
Makefile
Raw Normal View History

1993-11-25 02:06:42 +01:00
# $Id: Makefile,v 1.5 1993/11/22 19:05:26 jkh Exp $
1993-11-04 00:41:59 +01:00
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
1993-11-25 02:06:42 +01:00
LIBS = -lc_pic -lgcc_pic
1993-11-04 00:41:59 +01:00
BINDIR= /usr/libexec
.PATH: $(LDDIR) $(LDDIR)/$(MACHINE)
.SUFFIXES: .S
$(PROG):
$(LD) -o $(PROG) $(LDFLAGS) $(OBJS) $(LIBS) $(LDADD)
1993-11-04 00:41:59 +01:00
.S.o:
$(CPP) $(.IMPSRC) | $(AS) -k -o $(.TARGET) -
.include <bsd.prog.mk>