unstack - fix ipcvecs
[minix.git] / sys / arch / i386 / stand / lib / test / Makefile.satest
blobef66abd40ac3a6744e5df1afe4a065974e3e0081
1 # $NetBSD: Makefile.satest,v 1.2 1999/02/19 19:53:01 drochner Exp $
3 I386_STAND_DIR?= $S/arch/i386/stand
5 .PATH: ${I386_STAND_DIR}/lib/test ${I386_STAND_DIR}/lib ${I386_STAND_DIR}/libsa
7 SRCS+= stand_user.c
9 # Separate libsa's namespace from userland libraries.
10 # Should comply to "sanamespace.h".
11 CPPFLAGS+= -Dmain=samain -Dexit=saexit -Dfree=safree
12 CPPFLAGS+= -Dopen=saopen -Dclose=saclose -Dread=saread -Dwrite=sawrite
13 CPPFLAGS+= -Dioctl=saioctl -Dlseek=salseek
14 CPPFLAGS+= -Dprintf=saprintf -Dsprintf=sasprintf -Dvprintf=savprintf
15 CPPFLAGS+= -Dputchar=saputchar -Dgets=sagets
16 CPPFLAGS+= -Dstrerror=sastrerror  -Derrno=saerrno
18 CPPFLAGS+= -I$S/lib/libsa -I${I386_STAND_DIR}/libsa -I${I386_STAND_DIR}/lib
19 CPPFLAGS+= -I${I386_STAND_DIR}/lib/test -I$S
21 CPPFLAGS+= -DHEAP_VARIABLE
23 CFLAGS= -O -g -Wall -fwritable-strings
25 LDFLAGS= -g -static -Xlinker -M
26 LDADD= ${LIBSA} -lz -lkvm -li386 >${PROG}.list 2>&1
27 CLEANFILES+= ${PROG}.list
29 .include <bsd.prog.mk>
31 ### find out what to use for libsa
32 SA_AS=          library
33 .include "${S}/lib/libsa/Makefile.inc"
34 LIBSA=          ${SALIB}
36 ${PROG}: ${LIBSA}