3 .PATH: ${.CURDIR:H}/common
6 OBJS= ${SRCS:N*.h:R:S/$/.o/g}
7 OBJS+= Scrt1.o crt1.o gcrt1.o
8 CFLAGS+= -I${.CURDIR} -I${.CURDIR:H}/common \
9 -I${SRCTOP}/lib/libc/include
10 CFLAGS+= -DCRT_IRELOC_REL
17 # These FILES qualify as libraries for the purpose of LIBRARIES_ONLY.
20 CLEANFILES= ${OBJS} crt1_c.o crt1_s.o gcrt1_c.o Scrt1_c.o
23 ${CC} ${CFLAGS} -DGCRT -c -o ${.TARGET} ${.CURDIR}/crt1_c.c
25 gcrt1.o: gcrt1_c.o crt1_s.o
26 ${LD} ${_LDFLAGS} -o gcrt1.o -r crt1_s.o gcrt1_c.o
28 crt1.o: crt1_c.o crt1_s.o
29 ${LD} ${_LDFLAGS} -o crt1.o -r crt1_s.o crt1_c.o
30 ${OBJCOPY} --localize-symbol _start1 crt1.o
33 ${CC} ${CFLAGS} -fPIC -DPIC -c -o ${.TARGET} ${.CURDIR}/crt1_c.c
35 Scrt1.o: Scrt1_c.o crt1_s.o
36 ${LD} ${_LDFLAGS} -o Scrt1.o -r crt1_s.o Scrt1_c.o
37 ${OBJCOPY} --localize-symbol _start1 Scrt1.o