Makefile revision 1.8
11.8Smrg# $NetBSD: Makefile,v 1.8 2019/02/04 05:24:18 mrg 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.6SjoergCOPTS.h_raw.c+= ${${ACTIVE_CC} == "clang":? --param ssp-buffer-size=1 :} 141.4Splunky 151.1Spgoyette# Bootstrap hack 161.1Spgoyette 171.1Spgoyette.ifmake !clean && !obj && !cleandir 181.1Spgoyette.BEGIN: 191.1Spgoyette ${AR} cr libssp_nonshared.a 201.1Spgoyette.endif 211.1Spgoyette 221.1SpgoyetteCLEANFILES+= libssp_nonshared.a 231.1SpgoyetteLDFLAGS+= -L. 241.1Spgoyette 251.1SpgoyetteTESTSDIR= ${TESTSBASE}/lib/libc/ssp 261.1Spgoyette 271.1SpgoyetteTESTS_SH+= t_ssp 281.1Spgoyette 291.1SpgoyetteBINDIR= ${TESTSDIR} 301.1Spgoyette 311.1SpgoyettePROGS= h_fgets 321.1SpgoyettePROGS+= h_gets 331.1SpgoyettePROGS+= h_getcwd 341.1SpgoyettePROGS+= h_memcpy 351.1SpgoyettePROGS+= h_memmove 361.1SpgoyettePROGS+= h_memset 371.4SplunkyPROGS+= h_raw 381.1SpgoyettePROGS+= h_read 391.1SpgoyettePROGS+= h_readlink 401.1SpgoyettePROGS+= h_snprintf 411.1SpgoyettePROGS+= h_sprintf 421.7SchristosPROGS+= h_stpcpy 431.7SchristosPROGS+= h_stpncpy 441.1SpgoyettePROGS+= h_strcat 451.1SpgoyettePROGS+= h_strcpy 461.1SpgoyettePROGS+= h_strncat 471.1SpgoyettePROGS+= h_strncpy 481.1SpgoyettePROGS+= h_vsnprintf 491.1SpgoyettePROGS+= h_vsprintf 501.1Spgoyette 511.8Smrg.if defined(HAVE_GCC) && ${HAVE_GCC} == 7 && ${ACTIVE_CC} == "gcc" 521.8Smrg# Test exercises truncation 531.8SmrgCOPTS.h_snprintf.c+= -Wno-error=format-truncation 541.8Smrg.endif 551.8Smrg 561.1Spgoyette.include <bsd.test.mk> 57