| 1 |
# *time_t tests Makefile, for libreswan |
| 2 |
# |
| 3 |
# Copyright (C) 2019 Andrew Cagney |
| 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 = _timecheck |
| 19 |
|
| 20 |
OBJS += timecheck.o |
| 21 |
OBJS += check_monotime.o |
| 22 |
OBJS += check_realtime.o |
| 23 |
OBJS += check_deltatime.o |
| 24 |
|
| 25 |
OBJS += $(LIBRESWANLIB) |
| 26 |
OBJS += $(LSWTOOLLIBS) |
| 27 |
|
| 28 |
# Add RT_LDFLAGS for glibc < 2.17 |
| 29 |
USERLAND_LDFLAGS += $(RT_LDFLAGS) |
| 30 |
|
| 31 |
ifdef top_srcdir |
| 32 |
include $(top_srcdir)/mk/program.mk |
| 33 |
else |
| 34 |
include ../../../mk/program.mk |
| 35 |
endif |
| 36 |
|
| 37 |
local-check: $(PROGRAM) |
| 38 |
$(builddir)/$(PROGRAM) |