subrata_modak | 8dfa1b3 | 2008-07-26 04:15:36 +0000 | [diff] [blame^] | 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| 17 | # |
| 18 | |
| 19 | CFLAGS += -I../../../../include -Wall |
| 20 | LDLIBS += -L../../../../lib -lltp -lnuma -lrt |
| 21 | |
| 22 | ifeq ($(HAS_NUMA),yes) |
| 23 | SRCS = $(wildcard *.c) |
| 24 | TARGETS = $(patsubst %.c, %, $(wildcard *[0-9].c)) |
| 25 | endif |
| 26 | |
| 27 | all: $(TARGETS) |
| 28 | |
| 29 | move_pages_support.o: move_pages_support.h move_pages_support.c |
| 30 | |
| 31 | $(TARGETS): move_pages_support.o |
| 32 | |
| 33 | install: 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 | |
| 37 | clean: |
| 38 | rm -f $(TARGETS) |
| 39 | |
| 40 | move_page03.mode: |
| 41 | @/bin/sh ./move_pages03.mode.sh |
| 42 | |
| 43 | move_page11.mode: |
| 44 | @/bin/sh ./move_pages11.mode.sh |
| 45 | |
| 46 | .PHONY: move_pages03.mode |