Makefile revision bc4c2802f95ce7688c94fba372cf5c7b66a20ea7
1#
2#  Copyright (c) International Business Machines  Corp., 2001
3#
4#  This program is free software;  you can redistribute it and/or modify
5#  it under the terms of the GNU General Public License as published by
6#  the Free Software Foundation; either version 2 of the License, or
7#  (at your option) any later version.
8#
9#  This program is distributed in the hope that it will be useful,
10#  but WITHOUT ANY WARRANTY;  without even the implied warranty of
11#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See
12#  the GNU General Public License for more details.
13#
14#  You should have received a copy of the GNU General Public License
15#  along with this program;  if not, write to the Free Software
16#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17#
18
19###########################################################################
20# name of file	: Makefile						  #
21# description	: make(1) description file for the ipc(2) semget tests.	  #
22###########################################################################
23MAINS=semctl01 semctl02 semctl03 semctl04 semctl05
24SRCS=$(MAINS:=.c)
25OBJS=$(MAINS:=.o)
26IPC_LDFLAGS=-L.. -lipc
27
28all: $& $(MAINS)
29
30$(MAINS): $(SRCS)
31	$(CC) -o $@ $@.c $(LTP_CFLAGS) $(LTP_LDFLAGS) $(IPC_LDFLAGS) $(LOADLIBES)
32
33clean:
34	/bin/rm -rf $(OBJS) $(MAINS)
35
36install:
37	@for i in $(MAINS); do ln -f $$i ../../../../bin/$$i ; done
38
39strip_bin:
40	strip $(MAINS) > /dev/null 2>&1
41