Add working director—É to study vertex shader.
[lima:aesok-lima.git] / vertex / varying / Makefile
1 TOP = ../../
2
3 include $(TOP)Makefile.inc
4
5 CFLAGS += -I$(TOP)include -I$(TOP)limare/lib/
6
7 INSTALL_DIR = /system/bin/limare/
8
9 NAME = varying
10
11 all: varying
12
13 .PHONY : limare install run wrap
14
15 LIMARE_LOG_DIR = /mnt/extsd/limare
16 LIMARE_LOG = $(LIMARE_LOG_DIR)/$(NAME).wrap.log
17
18 $(NAME): varying.c
19         $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^  -llimare
20
21 install: $(NAME)
22         $(ADB) push $(NAME) $(INSTALL_DIR)/$(NAME)
23
24 wrap: $(ADB)
25         $(ADB) shell "rm /mnt/extsd/limare/varying.bmp"
26         $(ADB) shell "rm $(LIMARE_LOG)"
27         $(ADB) shell "LD_PRELOAD=libMali_wrap.so LIMA_WRAP_LOG=$(LIMARE_LOG) $(INSTALL_DIR)/limare/$(NAME)"
28         $(ADB) pull $(LIMARE_LOG)
29         $(ADB) pull /mnt/extsd/limare/varying.bmp
30
31 run: $(ADB)
32         $(ADB) shell $(INSTALL_DIR)/$(NAME)
33
34 clean:
35         rm -f $(NAME)
36