2006-06-18 13:43:12 +08:00
|
|
|
LEVEL = ../..
|
2009-03-17 07:06:59 +08:00
|
|
|
DIRS := include lib Driver docs tools
|
2006-06-18 13:43:12 +08:00
|
|
|
|
|
|
|
include $(LEVEL)/Makefile.common
|
2006-11-21 13:01:56 +08:00
|
|
|
|
2009-01-21 05:10:41 +08:00
|
|
|
ifneq ($(PROJ_SRC_ROOT),$(PROJ_OBJ_ROOT))
|
|
|
|
test::
|
|
|
|
$(Verb) if [ ! -f test/Makefile ]; then \
|
|
|
|
$(MKDIR) test; \
|
|
|
|
$(CP) $(PROJ_SRC_DIR)/test/Makefile test/Makefile; \
|
|
|
|
fi
|
|
|
|
endif
|
|
|
|
|
2006-11-21 13:01:56 +08:00
|
|
|
test::
|
2008-04-07 06:32:01 +08:00
|
|
|
@ $(MAKE) -C test
|
2008-03-18 14:14:16 +08:00
|
|
|
|
|
|
|
report::
|
2008-04-07 06:32:01 +08:00
|
|
|
@ $(MAKE) -C test report
|
2007-01-15 10:06:47 +08:00
|
|
|
|
|
|
|
clean::
|
2008-04-07 06:32:01 +08:00
|
|
|
@ $(MAKE) -C test clean
|
2008-03-20 22:28:22 +08:00
|
|
|
|
2009-02-12 10:25:47 +08:00
|
|
|
tags::
|
|
|
|
$(Verb) etags `find . -type f -name \*.h | grep -v /lib/Headers | grep -v /test/` `find . -type f -name \*.cpp | grep -v /lib/Headers | grep -v /test/`
|
|
|
|
|
2009-03-18 13:59:14 +08:00
|
|
|
cscope.files:
|
|
|
|
find Driver lib include -name '*.cpp' \
|
|
|
|
-or -name '*.def' \
|
|
|
|
-or -name '*.td' \
|
|
|
|
-or -name '*.h' > cscope.files
|
|
|
|
|
|
|
|
.PHONY: test report clean cscope.files
|