162306a36Sopenharmony_ci# PTP 1588 clock support - User space test program 262306a36Sopenharmony_ci# 362306a36Sopenharmony_ci# Copyright (C) 2010 OMICRON electronics GmbH 462306a36Sopenharmony_ci# 562306a36Sopenharmony_ci# This program is free software; you can redistribute it and/or modify 662306a36Sopenharmony_ci# it under the terms of the GNU General Public License as published by 762306a36Sopenharmony_ci# the Free Software Foundation; either version 2 of the License, or 862306a36Sopenharmony_ci# (at your option) any later version. 962306a36Sopenharmony_ci# 1062306a36Sopenharmony_ci# This program is distributed in the hope that it will be useful, 1162306a36Sopenharmony_ci# but WITHOUT ANY WARRANTY; without even the implied warranty of 1262306a36Sopenharmony_ci# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1362306a36Sopenharmony_ci# GNU General Public License for more details. 1462306a36Sopenharmony_ci# 1562306a36Sopenharmony_ci# You should have received a copy of the GNU General Public License 1662306a36Sopenharmony_ci# along with this program; if not, write to the Free Software 1762306a36Sopenharmony_ci# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 1862306a36Sopenharmony_ci 1962306a36Sopenharmony_ciCC = $(CROSS_COMPILE)gcc 2062306a36Sopenharmony_ciINC = -I$(KBUILD_OUTPUT)/usr/include 2162306a36Sopenharmony_ciCFLAGS = -Wall $(INC) 2262306a36Sopenharmony_ciLDLIBS = -lrt 2362306a36Sopenharmony_ciPROGS = testptp 2462306a36Sopenharmony_ci 2562306a36Sopenharmony_ciall: $(PROGS) 2662306a36Sopenharmony_ci 2762306a36Sopenharmony_citestptp: testptp.o 2862306a36Sopenharmony_ci 2962306a36Sopenharmony_ciclean: 3062306a36Sopenharmony_ci rm -f testptp.o 3162306a36Sopenharmony_ci 3262306a36Sopenharmony_cidistclean: clean 3362306a36Sopenharmony_ci rm -f $(PROGS) 34