Makefile revision 865695bbc89088b9526ea9045410e5afb70a985c
1865695bbc89088b9526ea9045410e5afb70a985cplars#
2865695bbc89088b9526ea9045410e5afb70a985cplars#  Copyright (c) International Business Machines  Corp., 2001
3865695bbc89088b9526ea9045410e5afb70a985cplars#
4865695bbc89088b9526ea9045410e5afb70a985cplars#  This program is free software;  you can redistribute it and/or modify
5865695bbc89088b9526ea9045410e5afb70a985cplars#  it under the terms of the GNU General Public License as published by
6865695bbc89088b9526ea9045410e5afb70a985cplars#  the Free Software Foundation; either version 2 of the License, or
7865695bbc89088b9526ea9045410e5afb70a985cplars#  (at your option) any later version.
8865695bbc89088b9526ea9045410e5afb70a985cplars#
9865695bbc89088b9526ea9045410e5afb70a985cplars#  This program is distributed in the hope that it will be useful,
10865695bbc89088b9526ea9045410e5afb70a985cplars#  but WITHOUT ANY WARRANTY;  without even the implied warranty of
11865695bbc89088b9526ea9045410e5afb70a985cplars#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See
12865695bbc89088b9526ea9045410e5afb70a985cplars#  the GNU General Public License for more details.
13865695bbc89088b9526ea9045410e5afb70a985cplars#
14865695bbc89088b9526ea9045410e5afb70a985cplars#  You should have received a copy of the GNU General Public License
15865695bbc89088b9526ea9045410e5afb70a985cplars#  along with this program;  if not, write to the Free Software
16865695bbc89088b9526ea9045410e5afb70a985cplars#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17865695bbc89088b9526ea9045410e5afb70a985cplars#
18865695bbc89088b9526ea9045410e5afb70a985cplars
19865695bbc89088b9526ea9045410e5afb70a985cplars###########################################################################
20865695bbc89088b9526ea9045410e5afb70a985cplars# name of file	: Makefile						  #
21865695bbc89088b9526ea9045410e5afb70a985cplars# description	: make(1) description file for the send(2) tests.	  #
22865695bbc89088b9526ea9045410e5afb70a985cplars###########################################################################
23865695bbc89088b9526ea9045410e5afb70a985cplarsCFLAGS+=	-I../../../../include
24865695bbc89088b9526ea9045410e5afb70a985cplarsLDFLAGS+=	-L../../../../lib -lltp
25865695bbc89088b9526ea9045410e5afb70a985cplars
26865695bbc89088b9526ea9045410e5afb70a985cplarsSRCS=$(wildcard *.c)
27865695bbc89088b9526ea9045410e5afb70a985cplarsTARGETS=$(patsubst %.c,%,$(SRCS))
28865695bbc89088b9526ea9045410e5afb70a985cplars
29865695bbc89088b9526ea9045410e5afb70a985cplarsall: $(TARGETS)
30865695bbc89088b9526ea9045410e5afb70a985cplars
31865695bbc89088b9526ea9045410e5afb70a985cplars$(TARGETS): $(SRCS)
32865695bbc89088b9526ea9045410e5afb70a985cplars	$(CC) -o $@ $@.c $(CFLAGS) $(LDFLAGS)
33865695bbc89088b9526ea9045410e5afb70a985cplars
34865695bbc89088b9526ea9045410e5afb70a985cplarsinstall: all
35865695bbc89088b9526ea9045410e5afb70a985cplars	@for i in $(TARGETS); do ln -f $$i ../../../bin/$$i ; done
36865695bbc89088b9526ea9045410e5afb70a985cplars
37865695bbc89088b9526ea9045410e5afb70a985cplarsclean:
38865695bbc89088b9526ea9045410e5afb70a985cplars	rm -f $(TARGETS)
39865695bbc89088b9526ea9045410e5afb70a985cplars
40865695bbc89088b9526ea9045410e5afb70a985cplars
41