Home | History | Annotate | Line # | Download | only in ssp
Makefile revision 1.2
      1 # $NetBSD: Makefile,v 1.2 2011/02/26 02:41:33 pgoyette Exp $
      2 
      3 NOMAN=		# defined
      4 
      5 .include <bsd.own.mk>
      6 
      7 WARNS=	4
      8 
      9 CPPFLAGS+=	-D_FORTIFY_SOURCE=2
     10 CFLAGS+=	-fstack-protector-all -Wstack-protector
     11 LDFLAGS+=	-fstack-protector-all -Wstack-protector
     12 
     13 # Bootstrap hack
     14 
     15 .ifmake !clean && !obj && !cleandir
     16 .BEGIN:
     17 	${AR} cr libssp_nonshared.a
     18 .endif
     19 
     20 CLEANFILES+= 	libssp_nonshared.a
     21 LDFLAGS+=	-L.
     22 
     23 TESTSDIR=	${TESTSBASE}/lib/libc/ssp
     24 
     25 TESTS_SH+=	t_ssp
     26 
     27 BINDIR=		${TESTSDIR}
     28 
     29 PROGS=		h_fgets
     30 PROGS+=		h_gets
     31 PROGS+=		h_getcwd
     32 PROGS+=		h_memcpy
     33 PROGS+=		h_memmove
     34 PROGS+=		h_memset
     35 PROGS+=		h_read
     36 PROGS+=		h_readlink
     37 PROGS+=		h_snprintf
     38 PROGS+=		h_sprintf
     39 PROGS+=		h_strcat
     40 PROGS+=		h_strcpy
     41 PROGS+=		h_strncat
     42 PROGS+=		h_strncpy
     43 PROGS+=		h_vsnprintf
     44 PROGS+=		h_vsprintf
     45 
     46 .include <bsd.test.mk>
     47