Makefile.project 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. # This file is auto generated by ./parser.pl, don't modify~~
  2. ROOT_DIR:=/home/sea/ziguang/cecport/nonetv/cecport_nonetv
  3. include $(ROOT_DIR)/env.conf
  4. CFLAGS_TMP = CFLAGS
  5. ifeq ($(VERSION).$(PATCHLEVEL).$(SUBLEVEL), $(filter $(VERSION).$(PATCHLEVEL).$(SUBLEVEL),2.6.27 2.6.35 3.0.8))
  6. CFLAGS_TMP = EXTRA_CFLAGS
  7. endif
  8. ifneq ($(filter drivers kernel,$(subst /, ,$(CURDIR))),)
  9. ifeq ($(filter aps,$(subst /, ,$(CURDIR))), aps)
  10. $(error both aps and drivers found???)
  11. else
  12. # include by driver
  13. $(CFLAGS_TMP) += -include project.h
  14. endif
  15. else
  16. ifeq ($(filter aps,$(subst /, ,$(CURDIR))), aps)
  17. # include by ap
  18. APSDIR=$(shell echo `pwd` | sed 's/aps\/.*/aps/g')
  19. $(CFLAGS_TMP) += -include $(APSDIR)/include/project.h
  20. else
  21. # include by quickbuild
  22. ifneq ($(filter qb,$(subst /, ,$(CURDIR))), qb)
  23. #$(error aps, drivers and qb not found???)
  24. endif
  25. endif
  26. endif