blob: e950b1f728c214722a97d6b26764e92ccdcc584e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
ifeq ($(KERNELRELEASE),)
LTP_DIR = $(abspath ../../../../)
LTP_FRAMEWORK = $(LTP_DIR)/ltp_framework
SCRIPTS=$(wildcard *.sh)
CFLAGS+= -I$(LTP_FRAMEWORK)/include -I$(abspath ./include)
LOADLIBES+= -L$(LTP_FRAMEWORK)/lib -lltp
TARGETS=dma
OBJS=dma.o
all: $(TARGETS)
$(TARGETS): $(TARGETS) $(OBJS)
install:
@for i in $(TARGETS); do if [ -f $(DESTDIR)/opt/ltp/testcases/bin/$$i ]; then rm $(DESTDIR)/opt/ltp/testcases/bin/$$i; fi ; done
@for i in $(TARGETS); do install -D $$i $(DESTDIR)/opt/ltp/testcases/bin/$$i ; done
@for i in $(SCRIPTS); do if [ -f $(DESTDIR)/opt/ltp/testcases/bin/$$i ]; then rm $(DESTDIR)/opt/ltp/testcases/bin/$$i; fi ; done
@for i in $(SCRIPTS); do install -D $$i $(DESTDIR)/opt/ltp/testcases/bin/$$i ; done
clean:
rm -f $(TARGETS)
rm -f $(OBJS)
endif
|