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