]> Git Repo - linux.git/blob - tools/vm/Makefile
net: phy: Do not perform software reset for Generic PHY
[linux.git] / tools / vm / Makefile
1 # Makefile for vm tools
2 #
3 TARGETS=page-types slabinfo page_owner_sort
4
5 LIB_DIR = ../lib/api
6 LIBS = $(LIB_DIR)/libapi.a
7
8 CC = $(CROSS_COMPILE)gcc
9 CFLAGS = -Wall -Wextra -I../lib/
10 LDFLAGS = $(LIBS)
11
12 all: $(TARGETS)
13
14 $(TARGETS): $(LIBS)
15
16 $(LIBS):
17         make -C $(LIB_DIR)
18
19 %: %.c
20         $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
21
22 clean:
23         $(RM) page-types slabinfo page_owner_sort
24         make -C $(LIB_DIR) clean
25
26 sbindir ?= /usr/sbin
27
28 install: all
29         install -d $(DESTDIR)$(sbindir)
30         install -m 755 -p $(TARGETS) $(DESTDIR)$(sbindir)
This page took 0.037365 seconds and 4 git commands to generate.