Home | History | Annotate | Line # | Download | only in test
      1 # $NetBSD: Makefile.satest,v 1.2 1999/02/19 19:53:01 drochner Exp $
      2 
      3 I386_STAND_DIR?= $S/arch/i386/stand
      4 
      5 .PATH: ${I386_STAND_DIR}/lib/test ${I386_STAND_DIR}/lib ${I386_STAND_DIR}/libsa
      6 
      7 SRCS+= stand_user.c
      8 
      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
     17 
     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
     20 
     21 CPPFLAGS+= -DHEAP_VARIABLE
     22 
     23 CFLAGS= -O -g -Wall -fwritable-strings
     24 
     25 LDFLAGS= -g -static -Xlinker -M
     26 LDADD= ${LIBSA} -lz -lkvm -li386 >${PROG}.list 2>&1
     27 CLEANFILES+= ${PROG}.list
     28 
     29 .include <bsd.prog.mk>
     30 
     31 ### find out what to use for libsa
     32 SA_AS=		library
     33 .include "${S}/lib/libsa/Makefile.inc"
     34 LIBSA=		${SALIB}
     35 
     36 ${PROG}: ${LIBSA}
     37