redir.c trap.c var.c
./mkinit ${.ALLSRC:S/^mkinit$//}
-mkinit: mkinit.o
-mknodes: mknodes.o
-mksyntax: mksyntax.o
-mksignames: mksignames.o
+mkinit: mkinit.lo
+ ${HOST_LINK.c} mkinit.lo -o $@
+
+mknodes: mknodes.lo
+ ${HOST_LINK.c} mknodes.lo -o $@
+mksyntax: mksyntax.lo
+ ${HOST_LINK.c} mksyntax.lo -o $@
+mksignames: mksignames.lo
+ ${HOST_LINK.c} mksignames.lo -o $@
.ORDER: nodes.c nodes.h
nodes.c nodes.h: mknodes nodetypes nodes.c.pat
#define equal(s1, s2) (strcmp(s1, s2) == 0)
+#ifndef __unused
+#define __unused __attribute__((__unused__))
+#endif
+
int
main(int argc __unused, char *argv[])
{
static void output_type_macros(void);
static void digit_convert(void);
+#ifndef __unused
+#define __unused __attribute__((__unused__))
+#endif
+
int
main(int argc __unused, char **argv __unused)
{
proctab.c: maketab
./maketab > proctab.c
-maketab: awkgram.h maketab.c
+maketab.lo: awkgram.h
-CLEANFILES= maketab proctab.c
+
+maketab: maketab.lo
+ ${HOST_LINK.c} maketab.lo -o $@
+
+CLEANFILES= maketab proctab.c maketab.lo
.include <bsd.prog.mk>
-FSCK= ${NETBSDSRCDIR}/sbin/fsck
+FSCK= ${MINIXSRCDIR}/sbin/fsck
PROG= fsck.mfs
SRCS= fsck.c
CPPFLAGS+= -I${MINIXSRCDIR}/servers -I${FSCK}