1 # $NetBSD: sys.mk,v 1.19.2.1 1994/07/26 19:58:31 cgd Exp $
2 # @(#)sys.mk 5.11 (Berkeley) 3/13/91
8 # This needs a lot of work yet...
10 NOPIC
=no
# no shared libs?
12 .SUFFIXES
: .out .a .ln .o .c
${CXX_SUFFIXES} .F .f .r .y .l .s .S .cl .p .h .sh .m4
22 COMPILE.s
= ${AS} ${AFLAGS}
23 LINK.s
= ${CC} ${AFLAGS} ${LDFLAGS}
24 COMPILE.S
= ${CC} ${AFLAGS} ${CPPFLAGS} -c
25 LINK.S
= ${CC} ${AFLAGS} ${CPPFLAGS} ${LDFLAGS}
26 .if exists
(/usr
/local
/bin
/gcc
)
36 COMPILE.c
= ${CC} ${CFLAGS} ${CPPFLAGS} -c
37 LINK.c
= ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}
41 COMPILE.
cc= ${CXX} ${CXXFLAGS} ${CPPFLAGS} -c
42 LINK.
cc= ${CXX} ${CXXFLAGS} ${CPPFLAGS} ${LDFLAGS}
46 CPPFLAGS
+= -nostdinc
-idirafter
${DESTDIR}/usr
/include
53 COMPILE.f
= ${FC} ${FFLAGS} -c
54 LINK.f
= ${FC} ${FFLAGS} ${LDFLAGS}
55 COMPILE.F
= ${FC} ${FFLAGS} ${CPPFLAGS} -c
56 LINK.F
= ${FC} ${FFLAGS} ${CPPFLAGS} ${LDFLAGS}
57 COMPILE.r
= ${FC} ${FFLAGS} ${RFLAGS} -c
58 LINK.r
= ${FC} ${FFLAGS} ${RFLAGS} ${LDFLAGS}
62 LEX.l
= ${LEX} ${LFLAGS}
74 COMPILE.p
= ${PC} ${PFLAGS} ${CPPFLAGS} -c
75 LINK.p
= ${PC} ${PFLAGS} ${CPPFLAGS} ${LDFLAGS}
81 YACC.y
= ${YACC} ${YFLAGS}
85 ${LINK.c
} -o
${.TARGET
} ${.IMPSRC
} ${LDLIBS}
87 ${COMPILE.c
} ${.IMPSRC
}
89 ${COMPILE.c
} ${.IMPSRC
}
90 ${AR} ${ARFLAGS} $@
$*.o
95 ${LINK.
cc} -o
${.TARGET
} ${.IMPSRC
} ${LDLIBS}
96 ${CXX_SUFFIXES
:%=%.o
}:
97 ${COMPILE.
cc} ${.IMPSRC
}
98 ${CXX_SUFFIXES
:%=%.a
}:
99 ${COMPILE.
cc} ${.IMPSRC
}
100 ${AR} ${ARFLAGS} $@
$*.o
105 ${LINK.f
} -o
${.TARGET
} ${.IMPSRC
} ${LDLIBS}
107 ${COMPILE.f
} ${.IMPSRC
}
109 ${COMPILE.f
} ${.IMPSRC
}
110 ${AR} ${ARFLAGS} $@
$*.o
114 ${LINK.F
} -o
${.TARGET
} ${.IMPSRC
} ${LDLIBS}
116 ${COMPILE.F
} ${.IMPSRC
}
118 ${COMPILE.F
} ${.IMPSRC
}
119 ${AR} ${ARFLAGS} $@
$*.o
123 ${LINK.r
} -o
${.TARGET
} ${.IMPSRC
} ${LDLIBS}
125 ${COMPILE.r
} ${.IMPSRC
}
127 ${COMPILE.r
} ${.IMPSRC
}
128 ${AR} ${ARFLAGS} $@
$*.o
133 ${LINK.p
} -o
${.TARGET
} ${.IMPSRC
} ${LDLIBS}
135 ${COMPILE.p
} ${.IMPSRC
}
137 ${COMPILE.p
} ${.IMPSRC
}
138 ${AR} ${ARFLAGS} $@
$*.o
143 ${LINK.s
} -o
${.TARGET
} ${.IMPSRC
} ${LDLIBS}
145 ${COMPILE.s
} -o
${.TARGET
} ${.IMPSRC
}
147 ${COMPILE.s
} ${.IMPSRC
}
148 ${AR} ${ARFLAGS} $@
$*.o
151 ${LINK.S
} -o
${.TARGET
} ${.IMPSRC
} ${LDLIBS}
153 ${COMPILE.S
} ${.IMPSRC
}
155 ${COMPILE.S
} ${.IMPSRC
}
156 ${AR} ${ARFLAGS} $@
$*.o
162 ${LINK.c
} -o
${.TARGET
} lex.yy.c
${LDLIBS} -ll
166 mv
lex.yy.c
${.TARGET
}
169 ${COMPILE.c
} -o
${.TARGET
} lex.yy.c
175 ${LINK.c
} -o
${.TARGET
} y.tab.c
${LDLIBS}
179 mv y.tab.c
${.TARGET
}
182 ${COMPILE.c
} -o
${.TARGET
} y.tab.c
188 cp
${.IMPSRC
} ${.TARGET
}