blob: 77cdbd92b2516ee8c90fe6f7201eacbece7a3d8c [file] [log] [blame]
subrata_modak8dfa1b32008-07-26 04:15:36 +00001#
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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17#
18
19CFLAGS += -I../../../../include -Wall
20LDLIBS += -L../../../../lib -lltp -lnuma -lrt
21
22ifeq ($(HAS_NUMA),yes)
23SRCS = $(wildcard *.c)
24TARGETS = $(patsubst %.c, %, $(wildcard *[0-9].c))
25endif
26
27all: $(TARGETS)
28
29move_pages_support.o: move_pages_support.h move_pages_support.c
30
31$(TARGETS): move_pages_support.o
32
33install: move_page03.mode move_page11.mode
34 @set -e; for i in $(TARGETS); do ln -f $$i ../../../bin/$$i ; done
35 chmod 755 move_pages.sh; cp move_pages.sh ../../../bin/.
36
37clean:
38 rm -f $(TARGETS)
39
40move_page03.mode:
41 @/bin/sh ./move_pages03.mode.sh
42
43move_page11.mode:
44 @/bin/sh ./move_pages11.mode.sh
45
46.PHONY: move_pages03.mode