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