3 # Hint HOST_CCVER handling.
6 .SUFFIXES: .out .nx .no .c .cc .cpp .cxx .C .m .y .l .s .S
20 all: objwarn ${PROG}.nx
24 # If there are Objective C sources, link with Objective C libraries.
25 .if ${SRCS:M*.m} != ""
30 OBJS+= ${SRCS:N*.h:N*.patch:R:S/$/.no/g}
31 .for _PATCH in ${SRCS:T:N*.h.patch:M*.patch}
32 .for _OBJ in ${_PATCH:R:R:S/$/.no/}
33 OBJS:= ${OBJS:N${_OBJ}} ${_OBJ}
39 ${NXCXX_LINK} ${NXCXXFLAGS} ${NXLDFLAGS} -o ${.TARGET} ${OBJS} ${LDADD}
41 ${NXCC_LINK} ${NXCFLAGS} ${NXLDFLAGS} -o ${.TARGET} ${OBJS} ${LDADD}
45 CLEANFILES+= ${PROG}.nx ${OBJS}
50 sed -i '' -Ee 's/^([^.]+)\.o:/\1.no:/' ${DEPENDFILE}
51 echo ${PROG}.nx: ${LIBC} ${DPADD} >> ${DEPENDFILE}
53 echo ${PROG}.nx: ${LIBSTDCPLUSPLUS} >> ${DEPENDFILE}
56 # header files are often generated by .nx binaries. All .nx binaries must
57 # be built in the depend stage so the related header files can be generated
63 .if defined(PROG) && !exists(${.OBJDIR}/${DEPENDFILE})