18c2ecf20Sopenharmony_ci# PTP 1588 clock support - User space test program
28c2ecf20Sopenharmony_ci#
38c2ecf20Sopenharmony_ci# Copyright (C) 2010 OMICRON electronics GmbH
48c2ecf20Sopenharmony_ci#
58c2ecf20Sopenharmony_ci#  This program is free software; you can redistribute it and/or modify
68c2ecf20Sopenharmony_ci#  it under the terms of the GNU General Public License as published by
78c2ecf20Sopenharmony_ci#  the Free Software Foundation; either version 2 of the License, or
88c2ecf20Sopenharmony_ci#  (at your option) any later version.
98c2ecf20Sopenharmony_ci#
108c2ecf20Sopenharmony_ci#  This program is distributed in the hope that it will be useful,
118c2ecf20Sopenharmony_ci#  but WITHOUT ANY WARRANTY; without even the implied warranty of
128c2ecf20Sopenharmony_ci#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
138c2ecf20Sopenharmony_ci#  GNU General Public License for more details.
148c2ecf20Sopenharmony_ci#
158c2ecf20Sopenharmony_ci#  You should have received a copy of the GNU General Public License
168c2ecf20Sopenharmony_ci#  along with this program; if not, write to the Free Software
178c2ecf20Sopenharmony_ci#  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ciCC        = $(CROSS_COMPILE)gcc
208c2ecf20Sopenharmony_ciINC       = -I$(KBUILD_OUTPUT)/usr/include
218c2ecf20Sopenharmony_ciCFLAGS    = -Wall $(INC)
228c2ecf20Sopenharmony_ciLDLIBS    = -lrt
238c2ecf20Sopenharmony_ciPROGS     = testptp
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ciall: $(PROGS)
268c2ecf20Sopenharmony_ci
278c2ecf20Sopenharmony_citestptp: testptp.o
288c2ecf20Sopenharmony_ci
298c2ecf20Sopenharmony_ciclean:
308c2ecf20Sopenharmony_ci	rm -f testptp.o
318c2ecf20Sopenharmony_ci
328c2ecf20Sopenharmony_cidistclean: clean
338c2ecf20Sopenharmony_ci	rm -f $(PROGS)
34