aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mk/lib.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/mk/lib.mk b/mk/lib.mk
index b7c07891..a5ce0a88 100644
--- a/mk/lib.mk
+++ b/mk/lib.mk
@@ -16,6 +16,9 @@ CLEANFILES+= ${OBJS} ${SOBJS} ${_LIBS} ${SHLIB_LINK}
.SUFFIXES: .So
+.c.o:
+ ${CC} ${CFLAGS} ${CPPFLAGS} -c $< -o $@
+
.c.So:
${CC} ${PICFLAG} -DPIC ${CPPFLAGS} ${CFLAGS} -c $< -o $@