| 1 |
# enumcheck Makefile, for libreswan |
| 2 |
# |
| 3 |
# Copyright (C) 2017 Andrew Cagney <[email protected]> |
| 4 |
# |
| 5 |
# This program is free software; you can redistribute it and/or modify it |
| 6 |
# under the terms of the GNU General Public License as published by the |
| 7 |
# Free Software Foundation; either version 2 of the License, or (at your |
| 8 |
# option) any later version. See <https://www.gnu.org/licenses/gpl2.txt>. |
| 9 |
# |
| 10 |
# This program is distributed in the hope that it will be useful, but |
| 11 |
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
| 12 |
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
| 13 |
# for more details. |
| 14 |
|
| 15 |
# XXX: Hack to suppress the man page. Should one be added? |
| 16 |
PROGRAM_MANPAGE = |
| 17 |
|
| 18 |
PROGRAM = _enumcheck |
| 19 |
|
| 20 |
OBJS += enumcheck.o |
| 21 |
|
| 22 |
OBJS += $(LIBRESWANLIB) |
| 23 |
OBJS += $(LSWTOOLLIBS) |
| 24 |
|
| 25 |
ifdef top_srcdir |
| 26 |
include $(top_srcdir)/mk/program.mk |
| 27 |
else |
| 28 |
include ../../../mk/program.mk |
| 29 |
endif |
| 30 |
|
| 31 |
local-check: $(PROGRAM) |
| 32 |
$(builddir)/$(PROGRAM) | diff -u $(srcdir)/OUTPUT.$(PROGRAM).txt - |