Makefile revision 1.5
11.5Sjoerg# $NetBSD: Makefile,v 1.5 2012/04/04 10:59:48 joerg Exp $
21.1Spgoyette
31.1SpgoyetteNOMAN=		# defined
41.1Spgoyette
51.1Spgoyette.include <bsd.own.mk>
61.1Spgoyette
71.1SpgoyetteWARNS=	4
81.1Spgoyette
91.1SpgoyetteCPPFLAGS+=	-D_FORTIFY_SOURCE=2
101.1Spgoyette
111.5SjoergCOPTS.h_raw.c=	-fstack-protector-all -Wstack-protector
121.5SjoergCOPTS.h_raw.c+=	${${ACTIVE_CC} == "gcc":? --param ssp-buffer-size=1 :}
131.5SjoergCOPTS.h_raw.c+=	${${ACTIVE_CC} == "clang":? -mllvm -stack-protector-buffer-size=1 :}
141.5Sjoerg
151.4Splunky
161.1Spgoyette# Bootstrap hack
171.1Spgoyette
181.1Spgoyette.ifmake !clean && !obj && !cleandir
191.1Spgoyette.BEGIN:
201.1Spgoyette	${AR} cr libssp_nonshared.a
211.1Spgoyette.endif
221.1Spgoyette
231.1SpgoyetteCLEANFILES+= 	libssp_nonshared.a
241.1SpgoyetteLDFLAGS+=	-L.
251.1Spgoyette
261.1SpgoyetteTESTSDIR=	${TESTSBASE}/lib/libc/ssp
271.1Spgoyette
281.1SpgoyetteTESTS_SH+=	t_ssp
291.1Spgoyette
301.1SpgoyetteBINDIR=		${TESTSDIR}
311.1Spgoyette
321.1SpgoyettePROGS=		h_fgets
331.1SpgoyettePROGS+=		h_gets
341.1SpgoyettePROGS+=		h_getcwd
351.1SpgoyettePROGS+=		h_memcpy
361.1SpgoyettePROGS+=		h_memmove
371.1SpgoyettePROGS+=		h_memset
381.4SplunkyPROGS+=		h_raw
391.1SpgoyettePROGS+=		h_read
401.1SpgoyettePROGS+=		h_readlink
411.1SpgoyettePROGS+=		h_snprintf
421.1SpgoyettePROGS+=		h_sprintf
431.1SpgoyettePROGS+=		h_strcat
441.1SpgoyettePROGS+=		h_strcpy
451.1SpgoyettePROGS+=		h_strncat
461.1SpgoyettePROGS+=		h_strncpy
471.1SpgoyettePROGS+=		h_vsnprintf
481.1SpgoyettePROGS+=		h_vsprintf
491.1Spgoyette
501.1Spgoyette.include <bsd.test.mk>
51