| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.9 2019/10/09 22:05:35 christos Exp $ | | 1 | # $NetBSD: Makefile,v 1.10 2019/10/10 02:39:07 kre Exp $ |
2 | # Copyright 2001 Mark R V Murray | | 2 | # Copyright 2001 Mark R V Murray |
3 | # All rights reserved. | | 3 | # All rights reserved. |
4 | # | | 4 | # |
5 | # Redistribution and use in source and binary forms, with or without | | 5 | # Redistribution and use in source and binary forms, with or without |
6 | # modification, are permitted provided that the following conditions | | 6 | # modification, are permitted provided that the following conditions |
7 | # are met: | | 7 | # are met: |
8 | # 1. Redistributions of source code must retain the above copyright | | 8 | # 1. Redistributions of source code must retain the above copyright |
9 | # notice, this list of conditions and the following disclaimer. | | 9 | # notice, this list of conditions and the following disclaimer. |
10 | # 2. Redistributions in binary form must reproduce the above copyright | | 10 | # 2. Redistributions in binary form must reproduce the above copyright |
11 | # notice, this list of conditions and the following disclaimer in the | | 11 | # notice, this list of conditions and the following disclaimer in the |
12 | # documentation and/or other materials provided with the distribution. | | 12 | # documentation and/or other materials provided with the distribution. |
13 | # | | 13 | # |
14 | # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND | | 14 | # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND |
| @@ -25,16 +25,16 @@ | | | @@ -25,16 +25,16 @@ |
25 | # | | 25 | # |
26 | # $FreeBSD: src/lib/libpam/modules/pam_lastlog/Makefile,v 1.5 2003/03/09 20:06:36 obrien Exp $ | | 26 | # $FreeBSD: src/lib/libpam/modules/pam_lastlog/Makefile,v 1.5 2003/03/09 20:06:36 obrien Exp $ |
27 | | | 27 | |
28 | LIB= pam_lastlog | | 28 | LIB= pam_lastlog |
29 | SRCS= pam_lastlog.c | | 29 | SRCS= pam_lastlog.c |
30 | MAN= pam_lastlog.8 | | 30 | MAN= pam_lastlog.8 |
31 | | | 31 | |
32 | CPPFLAGS+=-DSUPPORT_UTMP -DSUPPORT_UTMPX -DLOGIN_CAP | | 32 | CPPFLAGS+=-DSUPPORT_UTMP -DSUPPORT_UTMPX -DLOGIN_CAP |
33 | | | 33 | |
34 | LIBDPLIBS+= util ${.CURDIR}/../../../libutil | | 34 | LIBDPLIBS+= util ${.CURDIR}/../../../libutil |
35 | | | 35 | |
36 | .include "${.CURDIR}/../mod.mk" | | 36 | .include "${.CURDIR}/../mod.mk" |
37 | | | 37 | |
38 | .if ${ACTIVE_CC} == "gcc" | | 38 | .if defined(HAVE_GCC) && ${HAVE_GCC} >= 8 && ${ACTIVE_CC} == "gcc" |
39 | COPTS.pam_lastlog.c += -Wno-stringop-truncation | | 39 | COPTS.pam_lastlog.c += -Wno-stringop-truncation |
40 | .endif | | 40 | .endif |