-SRCS+= abs.c ecvt.c memcpy.s strcat.c strncat.c \
- bcmp.c ffs.c memmove.s strcmp.c strncmp.c \
- bcopy.s insque.c remque.c strcpy.c strncpy.c \
- bzero.s isinf.c setjmperr.c strlen.c mcount.s \
- bcopy_init.c
+.PATH: ${.CURDIR}/i386/gen
+MDSRCS+= _ctx_start.S \
+ _setcontext.S \
+ getcontext.S \
+ getmcontext.c \
+ icacheinval.s \
+ makecontext.c \
+ mcount.s \
+ setcontext.c \
+ setjmperr.c \
+ swapcontext.c
+
+.for _src in makecontext.c setcontext.c swapcontext.c
+CFLAGS-${_src} += -fomit-frame-pointer
+# -pg and -fomit-frame-pointer don't work together, so just use -g
+${_src:R}.po: ${_src} _STANDARD_DEBUG
+.endfor