909f139349775ac7d5761fd27fe5f28af8ba9803
[xfstests-dev.git] / dmapi / src / common / cmd / Makefile
1 # SPDX-License-Identifier: GPL-2.0+
2 # Copyright (C) 2011 SGI  All Rights Reserved.
3 #
4 #
5 #
6 TOPDIR = ../../../..
7
8 include $(TOPDIR)/include/builddefs
9
10 TARGETS = read_invis set_region set_return_on_destroy write_invis
11
12 CFILES = $(TARGETS:=.c)
13 LDIRT = $(TARGETS)
14
15 CFLAGS += -I.. -I/usr/include/xfs
16
17 LLDLIBS = $(TOPDIR)/dmapi/src/common/lib/libdmtest.la $(LIBDM)
18
19 default: depend $(TARGETS)
20
21 depend: .dep
22
23 include $(BUILDRULES)
24
25 install install-dev: default
26
27 $(TARGETS):
28         @echo "    [CC]    $@"
29         $(Q)$(LTLINK) $@.c -o $@ $(CFLAGS) $(LDFLAGS) $(LDLIBS)
30
31 -include .dep