3 # Hint HOST_CCVER handling.
7 .SUFFIXES
: .out .nx .no .c .
cc .
cpp .
cxx .C .m .y .l .s .S
21 all: objwarn
${PROG}.nx
25 # If there are Objective C sources, link with Objective C libraries.
26 .if
${SRCS
:M
*.m
} != ""
31 OBJS
+= ${SRCS
:N
*.h
:R
:S
/$/.no
/g
}
35 ${NXCXX_LINK} ${NXCXXFLAGS} ${NXLDFLAGS} -o
${.TARGET
} ${OBJS} ${LDADD}
37 ${NXCC_LINK} ${NXCFLAGS} ${NXLDFLAGS} -o
${.TARGET
} ${OBJS} ${LDADD}
41 CLEANFILES
+= ${PROG}.nx
${OBJS}
46 sed
-i
'' -Ee
's/^([^.]+)\.o:/\1.no:/' ${DEPENDFILE}
47 echo
${PROG}.nx
: ${LIBC} ${DPADD} >> ${DEPENDFILE}
49 echo
${PROG}.nx
: ${LIBSTDCPLUSPLUS} >> ${DEPENDFILE}
52 # header files are often generated by .nx binaries. All .nx binaries must
53 # be built in the depend stage so the related header files can be generated
59 .if defined
(PROG
) && !exists
(${.OBJDIR
}/${DEPENDFILE})