Vars.make 644 B

12345678910111213141516171819202122232425262728293031
  1. include $(MODULE_TOPDIR)/include/Make/Platform.make
  2. include $(MODULE_TOPDIR)/include/Make/Grass.make
  3. ifndef BROKEN_MAKE
  4. ifneq ($(MAKE_VERSION),3.81)
  5. BROKEN_MAKE=1
  6. endif
  7. endif
  8. C_SOURCES := $(wildcard *.c)
  9. CPP_SOURCES := $(wildcard *.cpp)
  10. LEX_SOURCES := $(wildcard *.l)
  11. YACC_SOURCES := $(wildcard *.y)
  12. AUTO_OBJS := \
  13. $(sort $(subst .c,.o,$(C_SOURCES))) \
  14. $(sort $(subst .cpp,.o,$(CPP_SOURCES))) \
  15. $(sort $(subst .l,.yy.o,$(LEX_SOURCES))) \
  16. $(sort $(subst .y,.tab.o,$(YACC_SOURCES)))
  17. ifndef MOD_OBJS
  18. MOD_OBJS = $(AUTO_OBJS)
  19. endif
  20. ARCH_OBJS = $(patsubst %.o,$(OBJDIR)/%.o,$(MOD_OBJS))
  21. LOCAL_HEADERS := $(wildcard *.h)
  22. LINK = $(CC)