xref: /linux/tools/testing/selftests/ptp/testptp.mk (revision 8dbbf854202610a033a0788c33d8feb1548d3eeb)
1*5345c1d4SRichard Cochran# PTP 1588 clock support - User space test program
2*5345c1d4SRichard Cochran#
3*5345c1d4SRichard Cochran# Copyright (C) 2010 OMICRON electronics GmbH
4*5345c1d4SRichard Cochran#
5*5345c1d4SRichard Cochran#  This program is free software; you can redistribute it and/or modify
6*5345c1d4SRichard Cochran#  it under the terms of the GNU General Public License as published by
7*5345c1d4SRichard Cochran#  the Free Software Foundation; either version 2 of the License, or
8*5345c1d4SRichard Cochran#  (at your option) any later version.
9*5345c1d4SRichard Cochran#
10*5345c1d4SRichard Cochran#  This program is distributed in the hope that it will be useful,
11*5345c1d4SRichard Cochran#  but WITHOUT ANY WARRANTY; without even the implied warranty of
12*5345c1d4SRichard Cochran#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13*5345c1d4SRichard Cochran#  GNU General Public License for more details.
14*5345c1d4SRichard Cochran#
15*5345c1d4SRichard Cochran#  You should have received a copy of the GNU General Public License
16*5345c1d4SRichard Cochran#  along with this program; if not, write to the Free Software
17*5345c1d4SRichard Cochran#  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18*5345c1d4SRichard Cochran
19*5345c1d4SRichard CochranCC        = $(CROSS_COMPILE)gcc
20*5345c1d4SRichard CochranINC       = -I$(KBUILD_OUTPUT)/usr/include
21*5345c1d4SRichard CochranCFLAGS    = -Wall $(INC)
22*5345c1d4SRichard CochranLDLIBS    = -lrt
23*5345c1d4SRichard CochranPROGS     = testptp
24*5345c1d4SRichard Cochran
25*5345c1d4SRichard Cochranall: $(PROGS)
26*5345c1d4SRichard Cochran
27*5345c1d4SRichard Cochrantestptp: testptp.o
28*5345c1d4SRichard Cochran
29*5345c1d4SRichard Cochranclean:
30*5345c1d4SRichard Cochran	rm -f testptp.o
31*5345c1d4SRichard Cochran
32*5345c1d4SRichard Cochrandistclean: clean
33*5345c1d4SRichard Cochran	rm -f $(PROGS)
34